An Ed25519 secret key.

Fields

bytes: [encoded_length]u8,

Functions

fn fromBytes(bytes: [encoded_length]u8) !SecretKey

Create a secret key from raw bytes.

fn publicKeyBytes(self: SecretKey) [PublicKey.encoded_length]u8

Return the raw public key bytes corresponding to this secret key.

fn seed(self: SecretKey) [KeyPair.seed_length]u8

Return the seed used to generate this secret key.

fn toBytes(sk: SecretKey) [encoded_length]u8

Return the secret key as raw bytes.

Values

encoded_length
comptime_int

Length (in bytes) of a raw secret key.