KeyPair class final
An Ed25519 key pair.
- Implemented types
Constructors
- KeyPair.fromPkcs8(Uint8List der)
- Parses a PKCS#8 v1 or v2 private key.
- KeyPair.fromSeed(Uint8List seed)
- Loads a key pair from its 32-byte seed.
- KeyPair.fromSeedAndPublicKey(Uint8List seed, Uint8List publicKey)
-
Loads a key pair from its 32-byte seed, refused unless
publicKeyis its public key. - KeyPair.generate()
- Generates a random key pair.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
Uint8List message) → Uint8List -
Signs
message. -
toPkcs8(
) → Uint8List - Encodes the private key as PKCS#8 v2, with its public key.
-
toPkcs8v1(
) → Uint8List - Encodes the private key as PKCS#8 v1, without its public key.
-
toSeed(
) → Uint8List - The private key's 32-byte seed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited