Module crypto

Module crypto 

Source
Expand description

§Cryptographic Utilities for delta

This module provides cryptographic primitives and utilities for delta, including hash functions, keys, signatures, and message handling.

Modules§

ed25519
ED25519 signing scheme
multisig
Multi-signature signing scheme
passkey
Passkey signing scheme
signing_key
Generic signing key

Structs§

BaseSignedMessage
A basic container for signed messages, parameterized by payload and signature types.
HashDigest
A 32-byte SHA256 hash digest.
OwnerId
The public identity of any actor on the network.
SignatureError
A signature error

Enums§

IoError
Error type for IO operations.
SignError
Error type returned when signing using Signable to sign data
Signature
A generic signature

Traits§

Hash256
A trait for types that can be hashed with Sha256 by directly hashing the bytes exposed as AsRef<[u8]>.
IntoSignatureEnum
An abstraction for the various signature scheme that are available
TryHash256
A trait for types that can be hashed with Sha256 by serializing them fallibly and then hashing.

Functions§

read_keypair
Reads a private key from a JSON file at the specified path

Type Aliases§

SignedMessage
Represents a signed message with some payload that has been signed using one of the supported Signature schemes.