Type alias ProgramDataSigner

ProgramDataSigner: ((data, lsig) => Promise<Uint8Array>)

This type represents a function which can sign data for use with the ed25519verify opcode from within a LogicSig's program.

Type declaration

    • (data, lsig): Promise<Uint8Array>
    • Parameters

      • data: Uint8Array

        The data to sign, without any prefix

      • lsig: LogicSig

        The LogicSig whose program will verify the signature

      Returns Promise<Uint8Array>

Remarks

The implementation is responsible for prepending the "ProgData" prefix (SIGN_PROGRAM_DATA_PREFIX) and the LogicSig's address before signing.

Returns

A promise which resolves to the raw signature

Generated using TypeDoc