This crate contains types that are used across the Tari Template ecosystem.
This includes:
- Substate address types (e.g.
ComponentAddress,ResourceAddress,NonFungibleAddressetc.) - Auth and access rules (e.g.
AccessRule,OwnerRule) - a 128-bit unsigned
Amounttype and a 192-bit signedPrecisionAmounttype (if theprecisionfeature is enabled) - stealth crypto types and traits (e.g.
EncryptedData,StealthTransferStatementetc.) - various utility types and traits (e.g.
Metadata,Hash,MaxBytes,MaxStringetc.)
Include this crate when you need these types but aren't authoring a template (e.g. building a wallet).
For template authors, you typically want to use the tari_template_lib crate instead, which re-exports this crate.
no_std is supported by excluding the std feature and enabling the alloc feature.