Generate an encryption key by signing the canonical Vana encryption seed
This is the standard protocol function for creating encryption keys in Vana. The signature serves as a symmetric encryption key for user data.
The user's wallet client for signing
Optional custom encryption seed (defaults to Vana standard)
The signature that serves as the encryption key
When wallet account is required but not provided
const encryptionKey = await generateEncryptionKey(walletClient);console.log('Generated encryption key:', encryptionKey);// Use with custom seedconst customKey = await generateEncryptionKey(walletClient, 'my-custom-seed'); Copy
const encryptionKey = await generateEncryptionKey(walletClient);console.log('Generated encryption key:', encryptionKey);// Use with custom seedconst customKey = await generateEncryptionKey(walletClient, 'my-custom-seed');
Generate an encryption key by signing the canonical Vana encryption seed
This is the standard protocol function for creating encryption keys in Vana. The signature serves as a symmetric encryption key for user data.