Expand description
AIngle Zome Types: only the types needed by AIngle application developers to use in their Zome code, and nothing more.
This crate is intentionally kept as minimal as possible, since it is typically included as a dependency in AIngle Zomes, which are distributed as chunks of Wasm. In contrast, the aingle_types crate contains more types which are used by AIngle itself.
Re-exports§
Modules§
- agent_
activity - bytes
- represent arbitrary bytes (not serialized) e.g. totally random crypto bytes from random_bytes
- call
- call_
remote - capability
- Capability Grants and Claims
- cell
- A “Cell” represents a SAF/AgentId pair - a space where one saf/agent can track its source chain and service network requests / responses.
- crdt
- dependencies
- Re-exported dependencies
- element
- Defines a Element, the basic unit of AIngle data.
- entry
- An Entry is a unit of data in a AIngle Source Chain.
- entry_
def - fixt
- Fixturators for zome types
- genesis
- Types related to the genesis process whereby a user commits their initial elements and validates them to the best of their ability. Full validation may not be possible if network access is required, so they perform a “self-check” (as in “check yourself before you wreck yourself”) before joining to ensure that they can catch any problems they can before being subject to the scrutiny of their peers and facing possible rejection.
- graph
- Types for semantic graph operations across the WASM boundary.
- header
- info
- init
- judged
- Wrapper type to indicate some data which has a ValidationStatus associated with it.
- link
- metadata
- Metadata types for use in wasm
- migrate_
agent - post_
commit - prelude
- Common types
- query
- Types for source chain queries
- request
- Types for requesting metadata
- saf_def
- Defines SafDef struct
- signal
- App-defined signals
- signature
- Signature for authenticity of data
- test_
utils - Common helpers for writing tests against zome types
- timestamp
- Timestamp
- trace
- Types related to the
debughost function - validate
- validate_
link - version
- Tracking versions between the WASM host and guests and other interfaces.
- warrant
- Types for warrants
- x_
salsa20_ poly1305 - zome
- A
Zomeis a module of app-defined code which can be run by AIngle. A group of Zomes are composed to form aSafDef. - zome_io
Macros§
- fixed_
array_ serialization - Serialization for fixed arrays is generally not available in a way that can be derived. Being able to wrap fixed size arrays is important e.g. for crypto safety etc. so this is a simple way to implement serialization so that we can send these types between the host/guest.
- impl_
to_ sql_ via_ as_ ref - Helper macro for implementing ToSql, when using rusqlite as a dependency
- impl_
to_ sql_ via_ display - Helper macro for implementing ToSql, when using rusqlite as a dependency
- secure_
primitive - Cryptographic secrets are fiddly at the best of times.
Enums§
- Secure
Primitive Error - Errors related to the secure primitive macro.