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

    Function encryptWithWalletPublicKey

    • Encrypt data with a wallet's public key using platform-appropriate cryptography

      Parameters

      • data: string | Blob

        The data to encrypt (as string or Blob)

      • publicKey: string

        The public key for encryption

      • platformAdapter: VanaPlatformAdapter

        The platform adapter for crypto operations

      Returns Promise<string>

      The encrypted data