Vana SDK - v0.1.0
    Preparing search index...

    Function encryptFileKey

    • Encrypt a file key with a DLP's public key using platform-appropriate cryptography

      Parameters

      • fileKey: string

        The symmetric key used to encrypt the file

      • publicKey: string

        The DLP's public key

      • platformAdapter: VanaPlatformAdapter

        The platform adapter for crypto operations

      Returns Promise<string>

      The encrypted key that can be stored on-chain