Skip to main content

Crate starweft_crypto

Crate starweft_crypto 

Source
Expand description

Cryptographic primitives for the Starweft protocol.

Provides Ed25519 key generation, message signing, signature verification, and deterministic canonical JSON serialization for envelope integrity.

Structs§

MessageSignature
A detached Ed25519 signature with algorithm and key metadata.
StoredKeypair
An Ed25519 keypair stored as base64-encoded strings with metadata.

Enums§

CryptoError
Errors that can occur during cryptographic operations.

Functions§

canonical_json
Serializes a value to deterministic canonical JSON bytes.
read_json_file
Reads and deserializes a JSON file from the given path.
verify_bytes
Verifies a signature against raw payload bytes.
verify_json
Verifies a signature against canonical JSON of the payload.
verifying_key_from_base64
Decodes a base64-encoded Ed25519 public key into a VerifyingKey.