AMAXSignature class

AMAX Signature

Constructors

AMAXSignature(int? i, BigInt r, BigInt s)
Default constructor from i, r, s
AMAXSignature.fromBuffer(Uint8List buffer, String? keyType)
Construct AMAX signature from buffer
AMAXSignature.fromString(String signatureStr)
Construct AMAX signature from string
factory

Properties

ecSig ↔ ECSignature
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
i int?
getter/setter pair
keyType String?
getter/setter pairinherited
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
recover(dynamic data) AMAXPublicKey
Recover the public key used to create this signature using full data. @arg {String|Uint8List|List
recoverHash(Digest dataSha256) AMAXPublicKey
@arg {Digest} dataSha256 - sha256 hash 32 byte buffer @return {AMAXPublicKey}
toString() String
A string representation of this object.
override
verify(String data, AMAXPublicKey publicKey) bool
Verify the signature of the string data
verifyHash(Uint8List sha256Data, AMAXPublicKey publicKey) bool
Verify the signature from in SHA256 hashed data

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calcPubKeyRecoveryParam(BigInt e, ECSignature ecSig, AMAXPublicKey publicKey) int
Find the public key recovery factor
ecSigToDER(ECSignature ecSig) Uint8List
ECSignature to DER format bytes
multiplyTwo(ECPoint t, BigInt j, ECPoint x, BigInt k) → ECPoint?
recoverPubKey(BigInt e, ECSignature ecSig, int i) → ECPoint?
Recovery AMAX public key from ECSignature
testBit(BigInt j, int n) bool