Developers
Applications can access to the private state while it can only be written to or decrypted by the TEE maintaing security.
// Deploy standard contracts
await contract.deploy({ network: 'halo' })
// Private transfer (same UX as normal transfer)
await token.privateTransfer(recipient, encryptedAmount)
// Query private balance
const balance = await token.getPrivateBalance(address)
// Public operations work identically
await token.transfer(recipient, amount)Last updated