Skip to main content

Crate aingle_zome_types

Crate aingle_zome_types 

Source
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§

pub use entry::Entry;
pub use header::Header;
pub use prelude::*;

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 debug host 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 Zome is a module of app-defined code which can be run by AIngle. A group of Zomes are composed to form a SafDef.
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§

SecurePrimitiveError
Errors related to the secure primitive macro.

Traits§

CallbackResult