Interface IEncryptData

interface IEncryptData {
    fileName: string;
    content: Buffer;
    nftId: number;
}

Properties

fileName: string

fileName for the encrypted file that will be stored in the bucket

content: Buffer

Contents of the file to encrypt. If the file is an image, the format needs to be base64.

nftId: number

Token ID of the NFT which will be used to decrypt the file's content

The NFT should be a part of the contract's data.nftContractAddress field.