Closed yeastplume closed 1 year ago
Initial pass at defining all fields and serialization done, see edited comments above. Given that all versions of the slate previous to V4 were removed, should likely implement some tests to validate upgrading and downgrading of slates between V4 and V5
Going to merge shortly into contracts branch
Slate V5 changes in order to provide experimental support to Early Payment Proofs for use with contract transaction workflows. This aims to provide the new slate fields in a V5 Slate as well as provide all needed v4 conversions and tests.
Specific slate changes are [WIP]:
PaymentInfoV5 Struct
saddr
, i.e.sender_address
in main Slate becomes optionalrsig
is renamed topsig
, corresponding to rename ofreceiver_signature
topromise_signature
in main Slatets
added (timestamp
in main slate). Serialized as i64 representing epoch time in secondsmemo
added as optional MemoV5 Struct, which contains:memo_type
: u8memo
: [u8;32] the memo data itself[WIP] Outstanding task remains to implement additional tests that convert back and forth between slate versions.