transaction_builder library Null safety

Represent a transaction in pending validation

  • Address: hash of the new generated public key for the given transaction
  • Type: transaction type
  • Data: transaction data zone (identity, keychain, smart contract, etc.)
  • Previous signature: signature from the previous public key
  • Previous public key: previous generated public key matching the previous signature
  • Origin signature: signature from the device which originated the transaction (used in the Proof of work)
  • Version: version of the transaction (used for backward compatiblity) When the transaction is validated the following fields are filled:
  • Validation stamp: coordinator work result
  • Cross validation stamps: endorsements of the validation stamp from the coordinator

Classes

Data
Keys
Ledger
Nft
NftTransfer
TransactionBuilder
Uco
UcoTransfer

Constants

cVersion → const int
1
txTypes → const Map<String, int>
const {'keychain_access' : 254, 'keychain' : 255, 'transfer' : 253, 'hosting' : 252, 'nft' : 251, 'node' : 0, 'node_shared_secrets' : 1, 'or…

Functions

hexAuthorizedKeys(Map authorizedKeys) Map
transactionBuilderFromJson(String str) TransactionBuilder
transactionBuilderToJson(TransactionBuilder data) String