Crate sp_core[−][src]
Shareable Substrate types.
Re-exports
pub use serde; |
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 sp_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 Substrate 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 |
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
Blake2Hasher | Concrete implementation of Hasher using Blake2b 256-bit hashes |
Bytes | Hex-serialized shim for |
ChangesTrieConfiguration | Substrate changes trie configuration. |
ChangesTrieConfigurationRange | Substrate 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. |
KeccakHasher | Concrete implementation of Hasher using Keccak 256-bit hashes |
OpaqueMetadata | Stores the encoded |
OpaquePeerId | Simple blob to hold a |
U256 | Little-endian large integer type |
U512 | Little-endian large integer type |
Enums
ExecutionContext | Context for executing a call into the runtime. |
LogLevel | A log level matching the one from |
NativeOrEncoded | Something that is either a native or an encoded value. |
NeverNativeValue | A value that is never in a native representation.
This is type is useful in conjunction with |
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 |
TypeId | Provide a simple 4 byte identifier for a type. |
Derive Macros
RuntimeDebug |