Vana SDK - v2.2.2
    Preparing search index...

    Interface FilePermissionParams

    Parameters for granting file decryption access during upload.

    This interface is used to grant decryption access to specific accounts when uploading encrypted files. It only handles encryption key sharing, not operation permissions.

    For granting operation permissions (like "llm_inference"), use the separate vana.permissions.grant() method after uploading.

    // Upload with decryption permission
    const result = await vana.data.upload({
    content: "data",
    permissions: [{
    account: "0xServerAddress...",
    publicKey: "0x04..." // Server's public key
    }]
    });
    interface FilePermissionParams {
        account: `0x${string}`;
        publicKey: string;
    }
    Index

    Properties

    Properties

    account: `0x${string}`

    The account address that will be able to decrypt this file.

    publicKey: string

    The public key to encrypt the file's encryption key with.