- Preparing search index...
- The search index is not available
ternoa-js
- mintSecretNFT<T>(nftFile: File, nftMetadata: TernoaHelpers.NftMetadataType<T>, secretNftFile: File, secretNftMetadata: TernoaHelpers.NftMetadataType<T>, ipfsClient: TernoaHelpers.TernoaIPFS, owner: IKeyringPair, clusterId?: number): 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: number;
})[]>
-
Parameters
-
nftFile: File
-
-
secretNftFile: File
-
-
-
owner: IKeyringPair
-
clusterId: number = 0
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: number;
})[]>
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.