EOSSignature class

EOS Signature

Constructors

EOSSignature(int? i, BigInt r, BigInt s)
Default constructor from i, r, s
EOSSignature.fromBuffer(Uint8List buffer, String? keyType)
Construct EOS signature from buffer
EOSSignature.fromString(String signatureStr)
Construct EOS 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) EOSPublicKey
Recover the public key used to create this signature using full data. @arg {String|Uint8List|List
recoverHash(Digest dataSha256) EOSPublicKey
@arg {Digest} dataSha256 - sha256 hash 32 byte buffer @return {EOSPublicKey}
toString() String
A string representation of this object.
override
verify(String data, EOSPublicKey publicKey) bool
Verify the signature of the string data
verifyHash(Uint8List sha256Data, EOSPublicKey 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, EOSPublicKey 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 EOS public key from ECSignature
testBit(BigInt j, int n) bool