PublicKey class final
An Ed25519 public key.
- Implemented types
Constructors
- PublicKey(Uint8List bytes)
- Parses a public key from its 32 bytes, throwing RindError.keyRejected for a malformed one.
- PublicKey.fromSpki(Uint8List der)
-
Parses a
SubjectPublicKeyInfo, throwing RindError.keyRejected for a malformed one or one naming another algorithm.
Properties
- bytes → Uint8List
-
The key's 32 bytes, as PublicKey.new takes them.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSpki(
) → Uint8List -
Encodes the key as a
SubjectPublicKeyInfo. -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Uint8List message, Uint8List signature) → void -
Checks that
signatureis the key's signature ofmessage, throwing RindError.badSignature if not.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited