Function signPODRoot

  • Signs a POD's root hash.

    Parameters

    • root: bigint

      the root hash (content ID) of the POD.

    • privateKey: string

      the signer's private key, which is 32 bytes encoded as per encodePrivateKey.

    Returns {
        publicKey: string;
        signature: string;
    }

    The signature as well as the signer's public key for inclusion in the POD. The signature is 64 bytes represented in unpadded Base64.

    • publicKey: string
    • signature: string

    Throws

    TypeError if any of the individual arguments is incorrectly formatted

Generated using TypeDoc