MultiEd25519Signature class

Represents the signature of a K-of-N Ed25519 multi-sig transaction.

See https://aptos.dev/integration/creating-a-signed-transaction/#multisignature-transactions

Inheritance

Constructors

MultiEd25519Signature({required List<Ed25519Signature> signatures, required List<int> bitmap})
Signature for a K-of-N multi-sig transaction.

Properties

bitmap → Uint8List
32-bit Bitmap representing who signed the transaction.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signatures → List<Ed25519Signature>
The list of underlying Ed25519 signatures.
final

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
Converts a MultiSignature into Uint8Array (bytes) with bytes = s1_bytes | ... | sn_bytes | bitmap
override

Operators

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

Static Methods

createBitmap({required List<int> bits}) → Uint8List
Helper method to create a bitmap out of the specified bit positions. This function allows you to set specific bits in a 32-bit long bitmap based on the provided positions.
deserialize(Deserializer deserializer) → MultiEd25519Signature

Constants

bitmapLen → const int
Number of bytes in the bitmap representing who signed the transaction (32-bits).
maxSignaturesSupported → const int
Maximum number of Ed25519 signatures supported.