Expand description
Shareable Tetcore types.
Re-exports§
pub use hashing::blake2_128;
pub use hashing::blake2_256;
pub use hashing::twox_64;
pub use hashing::twox_128;
pub use hashing::twox_256;
pub use hashing::keccak_256;
pub use self::hash::convert_hash;
pub use crypto::DeriveJunction;
pub use crypto::Pair;
pub use crypto::Public;
pub use serde;
pub use tetcore_storage as storage;
Modules§
- crypto
- Cryptographic utilities.
- ecdsa
- Simple ECDSA API.
- ed25519
- Simple Ed25519 API.
- hash
- A fixed hash type.
- hashing
- Hashing functions.
- hexdisplay
- Wrapper type for byte collections that outputs hex.
- offchain
- Offchain workers types
- sandbox
- Definition of a sandbox environment.
- sr25519
- Simple sr25519 (Schnorr-Ristretto) API.
- testing
- Types that should only be used for testing!
- traits
- Shareable Tetcore traits.
- u32_
trait - An u32 trait with “values” as impl’d types.
- uint
- An unsigned fixed-size integer.
Macros§
- impl_
maybe_ marker - Macro for creating
Maybe*
marker traits. - map
- Initialize a key-value collection from array.
- wasm_
export_ functions - Macro for exporting functions from wasm in with the expected signature for using it with the wasm executor. This is useful for tests where you need to call a function in wasm.
Structs§
- Blake2
Hasher - Concrete implementation of Hasher using Blake2b 256-bit hashes
- Bytes
- Hex-serialized shim for
Vec<u8>
. - Changes
Trie Configuration - Tetcore changes trie configuration.
- Changes
Trie Configuration Range - Tetcore changes trie configuration range.
- H160
- Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
- H256
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- H512
- Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
- Keccak
Hasher - Concrete implementation of Hasher using Keccak 256-bit hashes
- Opaque
Metadata - Stores the encoded
RuntimeMetadata
for the native side as opaque type. - Opaque
Peer Id - Simple blob to hold a
PeerId
without committing to its format. - U256
- Little-endian large integer type 256-bit unsigned integer.
- U512
- Little-endian large integer type 512-bits unsigned integer.
Enums§
- Execution
Context - Context for executing a call into the runtime.
- LogLevel
- A log level matching the one from
log
crate. - Native
OrEncoded - Something that is either a native or an encoded value.
- Never
Native Value - A value that is never in a native representation.
This is type is useful in conjunction with
NativeOrEncoded
. - Void
- The void type - it cannot exist.
Traits§
- Hasher
- Trait describing an object that can hash a slice of bytes. Used to abstract
other types over the hashing algorithm. Defines a single
hash
method and anOut
associated type with the necessary bounds. - TypeId
- Provide a simple 4 byte identifier for a type.