Function formatStorePayload

  • Name

    formatStorePayload

    Summary

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

    Returns

    Payload object ready to be submitted to TEE enclaves.

    Parameters

    • ownerAddress: string

      Address of the NFT's owner.

    • signerAuthMessage: string

      The message to be signed by the owner to autenticate the tempory signer used to sign shares.

    • signerAuthSignature: string

      The signerAuthMessage message signed by the NFT owner.

    • signerPair: IKeyringPair

      The temporary signer account used to sign shares.

    • nftId: number

      The ID of the NFT.

    • share: string

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

    • blockId: number

      The current block header id on-chain.

    • blockValidity: number = SIGNER_BLOCK_VALIDITY

      A block duration validity for the temporay signer account to be valid; default SIGNER_BLOCK_VALIDITY = 100 blocks.

    Returns TernoaHelpers.StorePayloadType

Generated using TypeDoc