Encryption
The encryption module provides client-side data encryption using Inco JS SDK for Inco-compatible values.Import
Basic Usage
Example: Encrypt for Confidential Token Transfer
Real-World Example: Encrypt Multiple Values
API Reference
encryptValue(value)
Encrypts a single value for use with Inco’s TEE infrastructure.
Parameters:
value:EncryptableValue- The value to encrypt
Promise<string> - Hex-encoded encrypted data
Types
EncryptableValue
Error Handling
Encryption Errors
Thrown byencryptValue() as EncryptionError.