Ed25519PublicKey class
- Implemented types
Constructors
- Ed25519PublicKey(BinaryBlob rawKey)
- Ed25519PublicKey.fromRaw and Ed25519PublicKey.fromDer should not be used for instantiation in this constructor.
- Ed25519PublicKey.from(PublicKey key)
-
factory
- Ed25519PublicKey.fromDer(BinaryBlob derKey)
-
factory
- Ed25519PublicKey.fromRaw(BinaryBlob rawKey)
-
factory
Properties
- derKey → DerEncodedBlob
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- rawKey → BinaryBlob
-
final
- 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
-
toDer(
) → DerEncodedBlob -
override
-
toRaw(
) → BinaryBlob -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- derPrefix → Uint8List
-
Adding this prefix to a raw public key is sufficient to DER-encode it.
See https://github.com/dfinity/agent-js/issues/42#issuecomment-716356288
final
- rawKeyLength ↔ int
-
The length of Ed25519 public keys is always 32 bytes.
getter/setter pair
Static Methods
-
derDecode(
BinaryBlob key) → BinaryBlob -
derEncode(
BinaryBlob publicKey) → DerEncodedBlob