Function formatPayload

  • Name

    formatPayload

    Summary

    Prepares post request payload to store secret NFT data into TEE enclaves.

    Returns

    Payload ready to be submitted to TEE enclaves.

    Parameters

    • owner: IKeyringPair
    • signer: IKeyringPair
    • nftId: number

      The ID of the secret NFT.

    • share: string

      A share of the private key used to decrypt the secret NFT.

    • blockId: number
    • blockValidity: number = SIGNER_BLOCK_VALIDITY

    Returns TernoaHelpers.SecretPayloadType

Generated using TypeDoc