Crate tet_core

Source
Expand description

Shareable Tetcore types.

Re-exports§

Modules§

  • Cryptographic utilities.
  • Simple ECDSA API.
  • Simple Ed25519 API.
  • A fixed hash type.
  • Hashing functions.
  • Wrapper type for byte collections that outputs hex.
  • Offchain workers types
  • Definition of a sandbox environment.
  • Simple sr25519 (Schnorr-Ristretto) API.
  • Types that should only be used for testing!
  • Shareable Tetcore traits.
  • An u32 trait with “values” as impl’d types.
  • An unsigned fixed-size integer.

Macros§

  • Macro for creating Maybe* marker traits.
  • Initialize a key-value collection from array.
  • 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§

  • Concrete implementation of Hasher using Blake2b 256-bit hashes
  • Hex-serialized shim for Vec<u8>.
  • Tetcore changes trie configuration.
  • Tetcore changes trie configuration range.
  • Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
  • Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
  • Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
  • Concrete implementation of Hasher using Keccak 256-bit hashes
  • Stores the encoded RuntimeMetadata for the native side as opaque type.
  • Simple blob to hold a PeerId without committing to its format.
  • Little-endian large integer type 256-bit unsigned integer.
  • Little-endian large integer type 512-bits unsigned integer.

Enums§

  • Context for executing a call into the runtime.
  • A log level matching the one from log crate.
  • Something that is either a native or an encoded value.
  • A value that is never in a native representation. This is type is useful in conjunction with NativeOrEncoded.
  • The void type - it cannot exist.

Traits§

  • 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 an Out associated type with the necessary bounds.
  • Provide a simple 4 byte identifier for a type.

Derive Macros§