Crate scsys_crypto

Crate scsys_crypto 

Source
Expand description

cryptographic primitives and utilities for the scsys ecosystem.

Modules§

error
this module provides error handling utilities for the scsys-crypto crate
hash
this implements various hashing primitives and utilities for cryptographic operations.
prelude
traits
utils
core utilities for the crypto modules

Structs§

H160
A SHA160 hash type.
H256
A SHA256 hash.

Enums§

Error
a custom error type for the scsys-crypto crate

Traits§

Concat
this trait defines a common method for concatenating two entities into some new type.
Hash
The Hash trait establishes a common interface for hashing types.
Hashable
Hasher
A Hasher defines a common interface for defining specific hashing algorithm.
RawHash
RawHash defines a common interface for raw hash types.
SizedHash
SizedHash extends RawHash to include a constant size for the hash output.

Functions§

digest_to_hash
Utility functions for converting between different cryptographic representations

Type Aliases§

GenericHash
the GenericHash type alias defines a standard hash format for the crate
GenericHashOutput
a type alias for a generic hash output
H160Hash
The H160Hash type is a 20-byte hash.
H256Array
The [H256Hash] type is a 32-byte hash.
Result
a type alias for a Result with the error type fixed to Error