ddn.crypto.key.ed25519

Ed25519 Keys.

Types 2

Ed25519 Public Key.

Fields
ubyte[32] data
Methods
string algorithm() @property const nothrow @safe @nogc pure
string format() @property const nothrow @safe @nogc pure
const(ubyte)[] encoded() @property const
size_t toHash() const nothrow
bool opEquals(const Key other) const
Constructors
this(const(ubyte)[] encodedKey)

Ed25519 Private Key.

Fields
ubyte[32] seed
Methods
string algorithm() @property const nothrow @safe @nogc pure
string format() @property const nothrow @safe @nogc pure
const(ubyte)[] encoded() @property const
size_t toHash() const nothrow
bool opEquals(const Key other) const
Constructors
this(const(ubyte)[] seedBytes)
Destructors

Functions 4

fnubyte[] encodeEd25519Spki(Ed25519PublicKey key)Encodes an Ed25519 public key as DER SubjectPublicKeyInfo (RFC 8410).
fnEd25519PublicKey decodeEd25519Spki(const(ubyte)[] der)Decodes an Ed25519 public key from DER SubjectPublicKeyInfo (RFC 8410).
fnubyte[] encodeEd25519Pkcs8(Ed25519PrivateKey key)Encodes an Ed25519 private key as DER PKCS#8 PrivateKeyInfo (RFC 8410).
fnEd25519PrivateKey decodeEd25519Pkcs8(const(ubyte)[] der)Decodes an Ed25519 private key from DER PKCS#8 PrivateKeyInfo (RFC 8410).