File to encrypt and then upload on IPFS.
Public Key to encrypt the file.
A TernoaIPFS instance.
Optional
nftMetadata: Partial<TernoaHelpers.NftMetadataType>Optional secret NFT metadata (Title, Description, (...)) here.
Optional
mediaMetadata: TernoaHelpers.MediaMetadataTypeOptional asset NFT metadata (Name, Description, (...)) here.
Generated using TypeDoc
Name
secretNftEncryptAndUploadFile
Summary
Encrypts and uploads a file on an IFPS gateway.
Returns
The data object with the secret NFT IPFS hash (ex: to add as offchain secret metadatas in the extrinsic).