Skip to main content
This example demonstrates the full lifecycle of working with encrypted data: initialize the SDK, encrypt a value, send it to a contract, and decrypt the result — both for UI display and for on-chain verification.

The contract

A simple contract that stores an encrypted uint64 balance and allows the owner to set and read it.
contracts/ConfidentialVault.sol

SDK: full flow