TransactionAndProof class
A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create the signing message for Keyless transactions. We sign over the proof to ensure non-malleability.
- Inheritance
-
- Object
- Serializable
- TransactionAndProof
Constructors
- TransactionAndProof(Serializable transaction, [ZkProof? proof])
Properties
- domainSeparator → String
-
The domain separator prefix used when hashing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- proof → ZkProof?
-
The zero knowledge proof used in signing the transaction.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transaction → Serializable
-
The transaction to sign (a BCS-serializable raw transaction instance —
RawTransaction,MultiAgentRawTransaction, orFeePayerRawTransaction).final
Methods
-
bcsToBytes(
) → Uint8List -
Serializes a Serializable value to its BCS representation.
This function is the Dart SDK equivalent of
bcs::to_bytesin Move.inherited -
bcsToHex(
) → Hex -
Converts the BCS-serialized bytes of a value into a Hex instance.
inherited
-
hash(
) → Uint8List -
Hashes the bcs serialized form of the class. This is the Dart corollary
to the BCSCryptoHash macro in aptos-core.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
Serializer serializer) → void -
Serializes the transaction bytes followed by the optional proof.
override
-
toString(
) → String -
Returns the hex string representation of the value with the 0x prefix.
inherited
-
toStringWithoutPrefix(
) → String -
Returns the hex string representation of the value without the 0x prefix.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited