TransactionModel class Null safety

A transaction in the blockchain.

Constructors

TransactionModel({Uint8List? id, int version = 1, required Uint8List address, required Uint8List contents, String assetRef = "AA==", DateTime? timestamp, Uint8List? merkelProof, BlockModel? block, Uint8List? signature})
Builds a new TransactionModel
TransactionModel.deserialize(Uint8List transaction)
Builds a TransactionModel from a transaction list of bytes.
TransactionModel.fromMap(Map<String, dynamic> map)
Builds a BlockModel from a map.

Properties

address ↔ Uint8List
The SHA-3 hash of the public key used for signature.
late, final
assetRef ↔ String
The path of the asset to which this refers to. AA== if null.
late, final
block BlockModel?
The BlockModel in which this TransactionModel is included.
read / write
contents ↔ Uint8List
The binary encoded transaction payload.
late, final
hashCode → int
The hash code for this object.
read-only, inherited
id ↔ Uint8List?
The SHA-3 256 hash of the serialize Uint8List.
read / write
merkelProof ↔ Uint8List?
The list of hashes that is used in MerkelTree.validate to verify that this TransactionModel is included in block.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
signature ↔ Uint8List?
The asymmetric digital signature (RSA) for the serialize transaction.
read / write
timestamp ↔ DateTime
The timestamp of the creation of this.
late, final
version ↔ int
The version number indicating the set of validation rules to follow.
late, final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
serialize({dynamic includeSignature = true}) → Uint8List
Creates a Uint8List representation of this.
toString() → String
Overrides toString() method for useful error messages
override

Operators

operator ==(Object other) → bool
Overrides == operator to use id as the diferentiation parameter.
override