Function mintSecretNFT

  • Name

    mintSecretNFT

    Summary

    Encrypts your data to create a secret NFT and uploads your key's shards on a TEE.

    Returns

    TEE enclave response including both the shards datas, and the enclave response.

    Type Parameters

    • T

    Parameters

    • nftFile: File

      File to upload as the preview of the encrypted NFT.

    • nftMetadata: TernoaHelpers.NftMetadataType<T>

      NFT metadata (Title, Description).

    • secretNftFile: File

      File to encrypt and then upload on IPFS.

    • secretNftMetadata: TernoaHelpers.NftMetadataType<T>

      Secret NFT metadata (Title, Description).

    • ipfsClient: TernoaHelpers.TernoaIPFS

      A TernoaIPFS instance.

    • owner: IKeyringPair

      Account of the secret NFT's owner.

    • clusterId: number = 0

      The TEE Cluster id.

    Returns Promise<({
        message: string;
        name: string;
        owner_address: string;
        secret_data: string;
        signature: string;
        signer_address: string;
        signersig: string;
        stack?: string;
    } | {
        description: string;
        enclave_id: number;
        nft_id: number;
        owner_address: string;
        secret_data: string;
        signature: string;
        signer_address: string;
        signersig: string;
        status: string;
    })[]>

Generated using TypeDoc