Skip to main content

Module keypair

Module keypair 

Source
Expand description

Age key pair.

This module defines the KeyPair type, which bundles a validated PublicKey with its corresponding SecretKey. Key pairs are created via the build_keypair function, which handles generation and validation, ensuring that the two keys are mathematically related and conform to the age specification.

Structsยง

KeyPair
An age X25519 key pair consisting of a public key and a secret key.