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§
- Message
Signature - A detached Ed25519 signature with algorithm and key metadata.
- Stored
Keypair - An Ed25519 keypair stored as base64-encoded strings with metadata.
Enums§
- Crypto
Error - 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.