Module grin_wallet_libwallet::slate_versions::v4

source ·
Expand description

Contains V4 of the slate (grin-wallet 4.0.0) Changes from V3: /#### Top-Level Slate Struct

  • The version_info struct is removed, and is replaced with ver, which has the format “[version]:[block header version]”
  • sta is added, with possible values S1|S2|S3|I1|I2|I3|NA
  • num_participants is renamed to num_parts
  • num_parts may be omitted from the slate. If omitted its value is assumed to be 2.
  • amount is renamed to amt
  • amt may be removed from the slate on the S2 phase of a transaction.
  • fee may be removed from the slate on the S2 phase of a transaction. It may also be ommited when intiating an I1 transaction, and added during the I2 phase.
  • lock_height is removed
  • feat is added to the slate denoting the Kernel feature set. May be omitted from the slate if kernel is plain (0)
  • ttl_cutoff_height is renamed to ttl
  • ttl may be omitted from the slate. If omitted its value is assumed to be 0 (no TTL).
  • The participant_data struct is renamed to sigs
  • tx is removed
  • The coms (commitments) array is added, from which the final transaction object can be reconstructed
  • The payment_proof struct is renamed to proof
  • The feat_args struct is added, which may be populated for non-Plain kernels
  • proof may be omitted from the slate if it is None (null),
  • off (offset) is added, and will be modified by every participant in the transaction with a random value - the value of their inputs’ blinding factors
§Participant Data (sigs)
  • public_blind_excess is renamed to xs
  • public_nonce is renamed to nonce
  • part_sig is renamed to part
  • part may be omitted if it has not yet been filled out
  • message is removed
  • message_sig is removed
  • id is removed. Parties can identify themselves via the keys stored in their transaction context
§Payment Proof Data (proof)
  • The sender_address field is renamed to saddr
  • The receiver_address field is renamed to raddr
  • The receiver_signature field is renamed to rsig
  • rsig may be omitted if it has not yet been filled out

Structs§

Enums§

Functions§