Secp256k1Signature class

Represents a signature of a message signed using a Secp256k1 ECDSA private key.

Inheritance

Constructors

Secp256k1Signature(HexInput hexInput)
Create a new Signature instance from a Uint8List or String.

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

bcsToBytes() → Uint8List
Serializes a Serializable value to its BCS representation. This function is the Dart SDK equivalent of bcs::to_bytes in Move.
inherited
bcsToHex() → Hex
Converts the BCS-serialized bytes of a value into a Hex instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(Serializer serializer) → void
override
toString() → String
Get the signature as a hex string with a 0x prefix e.g. 0x123456...
inherited
toStringWithoutPrefix() → String
Get the signature as a hex string without the 0x prefix.
inherited
toUint8Array() → Uint8List
Get the raw signature bytes.
override

Operators

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

Static Methods

deserialize(Deserializer deserializer) → Secp256k1Signature

Constants

length → const int
Secp256k1 ecdsa signatures are 256-bit.