Skip to content
LogoLogo

BodyDigest.verify

Verify a body digest hash

Verifies that a digest matches the given body.

Usage

import {  } from 'mppx'
 
const  = .({ : '1000' })
const  = .(, '{"amount":"1000"}')
// => true

Return type

type ReturnType = boolean

true 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.