ToplSigningKey class
Credentials that can sign payloads with a Topl private key.
- Inheritance
-
- Object
- Credentials
- CredentialsWithKnownAddress
- ToplSigningKey
Constructors
- ToplSigningKey(Bip32SigningKey privateKey, NetworkId network, PropositionType propositionType)
- Creates a Topl Signing Key from a Bip32SigningKey
- ToplSigningKey.createRandom(NetworkId n, PropositionType p)
-
Creates a new, random private key from the random number generator.
factory
- ToplSigningKey.fromHex(String hex, NetworkId network, PropositionType propositionType)
- Parses a private key from the a hexadecimal representation
- ToplSigningKey.fromString(String base58, NetworkId network, PropositionType propositionType)
Properties
- address → ToplAddress
-
The topl address belonging to this credential.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- isolateSafe → bool
-
Whether these Credentials are safe to be copied to another isolate and
can operate there.
If this getter returns true, the client might chose to perform the
expensive signing operations on another isolate.
final
- network → NetworkId
-
final
- privateKey → Bip32SigningKey
-
final
- proposition → Proposition
-
The proposition that matches the evidence which is contained in the given credential
no setteroverride
- propositionType → PropositionType
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
extractAddress(
) → Future< ToplAddress> -
Loads the ethereum address specified by these credentials.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signToSignature(
List< int> payload) → Future<SignatureBase> -
Signs the
payload
with a private key and returns the obtained signature.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override