CosmosNist256p1Signer class
Cosmos nist256p1 Signer class for cryptographic operations, including signing and verification.
The CosmosNist256p1Signer class facilitates the creation of Cosmos signatures and provides methods for signing messages, personal messages, and converting to verification keys. It uses the ECDSA (Elliptic Curve Digital Signature Algorithm) for cryptographic operations on the secp256R1 elliptic curve.
Constructors
-
CosmosNist256p1Signer.fromKeyBytes(List<
int> keyBytes) -
Factory method to create a CosmosNist256p1Signer from a byte representation of a private key.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
sign(
List< int> digest, {bool hashMessage = true}) → List<int> - Signs a message digest using the ECDSA algorithm on the secp256R1 curve.
-
toString(
) → String -
A string representation of this object.
inherited
-
toVerifyKey(
) → CosmosNist256p1Verifier - Converts the CosmosNist256p1Signer to a CosmosNist256p1Verifier for verification purposes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited