PublicKey class final

An ECDSA public key, which verifies with the algorithm it was parsed for.

Implemented types

Constructors

PublicKey(VerificationAlgorithm algorithm, Uint8List point)
Parses an X9.62 uncompressed point for algorithm, throwing RindError.keyRejected for a malformed one or one off the curve.
PublicKey.fromSpki(VerificationAlgorithm algorithm, Uint8List der)
Parses a SubjectPublicKeyInfo for algorithm, throwing RindError.keyRejected for a malformed one or one naming another algorithm or curve.

Properties

bytes → Uint8List
The key's X9.62 uncompressed point, as PublicKey.new takes it.
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 signature is the key's signature of message, throwing RindError.badSignature if not.

Operators

operator ==(Object other) → bool
The equality operator.
inherited