Type alias MxBytesSigner

MxBytesSigner: ((bytesToSign) => Promise<Uint8Array>)

This type represents a function which can sign arbitrary bytes, for use with verifyBytes.

Type declaration

    • (bytesToSign): Promise<Uint8Array>
    • Parameters

      • bytesToSign: Uint8Array

        The bytes to sign, without any domain-separation prefix

      Returns Promise<Uint8Array>

Remarks

The implementation is responsible for prepending the "MX" domain-separation prefix (SIGN_BYTES_PREFIX) before signing, so bytesToSign is the caller's bytes alone.

Returns

A promise which resolves to the raw signature

Generated using TypeDoc