EcdsaPublicKey class
Implementation of ECDSA public key
- Implemented types
Constructors
- EcdsaPublicKey(ECPublicKey _key)
- EcdsaPublicKey.fromRawBytes(Uint8List bytes)
-
Creates an EcdsaPublicKey from its DER encoding.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- raw → Uint8List
-
The key as DER PKIX (SubjectPublicKeyInfo), as go-libp2p marshals it.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → KeyType
-
Returns the key's type
no setteroverride
Methods
-
equals(
PublicKey other) → Future< bool> -
Checks if this public key is equal to another
override
-
marshal(
) → Uint8List -
Returns the protobuf bytes of the key
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Uint8List data, Uint8List signature) → Future< bool> -
Verifies an ASN.1 DER signature over the SHA-256 hash of
data, as go-libp2p signs for every curve.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited