ECDSASignature class
Represents an ECDSA (Elliptic Curve Digital Signature Algorithm) signature
containing r and s components.
Constructors
- ECDSASignature(BigInt r, BigInt s)
-
Creates an ECDSA signature with
randscomponents.const -
ECDSASignature.fromBytes(List<
int> signature, ProjectiveECCPoint generator) -
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recoverId(
{required List< int> hash, required ECDSAPublicKey publicKey}) → int? - find correct recovery id from signature.
-
recoverPublicKey(
List< int> hash, ProjectiveECCPoint generator, int recId) → ECDSAPublicKey - Recovers public key from the ECDSA signature and a hash of the message.
-
recoverPublicKeys(
List< int> hash, ProjectiveECCPoint generator) → List<ECDSAPublicKey> - Recovers public keys from the ECDSA signature and a hash of the message.
-
toBytes(
int baselen) → List< int> - convert signature to bytes.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited