Function verifyPODRootSignature

  • Verifies the signature of a POD root hash.

    Parameters

    • root: bigint

      the root hash (content ID) of the POD.

    • signature: string

      the signature in packed form, which is 64 bytes represented in hex or Base64. Base64 padding is optional.

    • publicKey: string

      the signer's public key in packed form, which is 32 bytes represented in hex or Base64. Base64 padding is optional.

    Returns boolean

    true if the signature is valid

    Throws

    TypeError if any of the individual arguments incorrectly formatted

Generated using TypeDoc