An Ed25519 public key.

Fields

bytes: [encoded_length]u8,

Functions

fn fromBytes(bytes: [encoded_length]u8) NonCanonicalError!PublicKey

Create a public key from raw bytes.

fn toBytes(pk: PublicKey) [encoded_length]u8

Convert a public key to raw bytes.

Values

encoded_length
comptime_int

Length (in bytes) of a raw public key.