Skip to main content

isInitialized

Checks whether an encrypted value has been initialized (i.e., is not a zero/empty handle). Works on all encrypted types.

unwrap

Extracts the raw bytes32 handle from a typed encrypted value.

wrap

Wraps a raw bytes32 handle into a typed encrypted value. One function per type:
Use wrap when you have a raw handle from storage or an event and need to convert it back to a typed encrypted value.

Random Number Generation

Generate random encrypted values. An optional securityZone parameter is supported.