RsaPublicKey class
Implementation of RSA public key
- Implemented types
Constructors
- RsaPublicKey(RSAPublicKey _key)
- RsaPublicKey.fromRawBytes(Uint8List bytes)
-
Creates an RsaPublicKey from raw bytes (DER encoded)
factory
- RsaPublicKey.unmarshal(Uint8List bytes)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- raw → Uint8List
-
The DER-encoded PKIX (SubjectPublicKeyInfo) form of the key, as the
libp2p spec requires and go-libp2p produces. Peer IDs are derived from
these bytes, so any other encoding yields IDs other peers reject.
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 a signature against the given data
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited