Pairs class
A collection of key pairs for managing ed25519-based cryptographic operations.
The Pairs class provides a way to manage key pairs by allowing you to add, remove, and retrieve
key pairs by address or public key. It also offers methods to get lists of all key pairs, public keys,
and addresses within the collection.
Example usages and function descriptions are provided below.
Constructors
- Pairs()
Properties
-
addresses
→ List<
String> -
Get a list of all addresses from the collection.
no setter
-
all
→ List<
KeyPair> -
Get all KeyPairs in the collection.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
publicKeys
→ List<
List< int> > -
Get a list of all public keys from the collection.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
KeyPair pair) → void - Add a KeyPair to the collection of pairs.
-
clear(
) → void - Remove all KeyPairs from the collection.
-
getByAddress(
String address) → KeyPair - Get a KeyPair from the collection by its address.
-
getByPublicKey(
List< int> publicKey) → KeyPair - Get a KeyPair from the collection by its public key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String address) → void - Remove a KeyPair from the collection by its address.
-
removeByPublicKey(
List< int> publicKey) → void - Remove a KeyPair from the collection by its public key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited