BodyDigest.verify
Verify a body digest hash
Verifies that a digest matches the given body.
Usage
import { } from 'mppx'
const = .({ : '1000' })
const = .(, '{"amount":"1000"}')
// => trueReturn type
type ReturnType = booleantrue if the digest matches, false otherwise.
Parameters
body
- Type:
Record<string, unknown> | string
The body to verify against.
digest
- Type:
`sha-256=${string}`
The digest to verify.