sp_core
28.0.0
Modules
bandersnatch
bls
bounded_btree_map
bounded_vec
const_hex2array
crypto
crypto_bytes
defer
ecdsa
ed25519
hash
hexdisplay
offchain
paired_crypto
sr25519
testing
traits
uint
Macros
bounded_btree_map
bounded_vec
defer
generate_feature_enabled_macro
hex2array
impl_maybe_marker
impl_maybe_marker_std_or_serde
map
parameter_types
wasm_export_functions
Structs
Blake2Hasher
Bytes
ConstBool
ConstI128
ConstI16
ConstI32
ConstI64
ConstI8
ConstInt
ConstU128
ConstU16
ConstU32
ConstU64
ConstU8
ConstUint
GetDefault
H160
H256
H512
KeccakHasher
OpaqueMetadata
OpaquePeerId
U256
U512
Enums
LogLevel
LogLevelFilter
Void
Constants
MAX_POSSIBLE_ALLOCATION
Traits
Get
Hasher
TryCollect
TypeId
TypedGet
Functions
blake2_128
blake2_256
blake2_512
blake2_512_into
blake2_64
keccak_256
keccak_512
sha2_256
twox_128
twox_128_into
twox_256
twox_256_into
twox_64
twox_64_into
Derive Macros
RuntimeDebug
sp_core
Function
sha2_256
Copy item path
Settings
Help
Summary
pub fn sha2_256(data: &[
u8
]) -> [
u8
;
32
]
Expand description
Do a sha2 256-bit hash and return result.