Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HF2 Slate Changes #258

Merged
merged 6 commits into from
Nov 20, 2019
Merged

Conversation

yeastplume
Copy link
Member

This PR aims to include all slate changes for HF2 in a single place. These changes are:

  • Addition of the payment_proof struct as outlined in 0006-payment-proofs.md grin-rfcs#31 - This is an option field and contains
    • sender_address - an ed25519 Public key
    • receiver_address - an ed25519 Public key, optional as it will be filled at some stage in the exchange process, not necessarily up front
    • receiver_signature - secp256k1 Schnorr signature, optional for the same reason
    • message as outlined in the RFC not included, pending (or rather not) based on discussion of the significant drawbacks to including it.
  • Addition of ttl_cutoff_height as described in Improved Wallet State Management grin-rfcs#30

Note while it's perfectly possible now to detect and convert between V3 and V2 slates, there's quite a lot of cruft code involved in the conversion and quite a bit of testing effort required, as well as knock-on checks that will be required when implementing the RFC functionality, all of which becomes a bit of a wasted effort given that everyone will need to upgrade anyhow at HF2 time. Therefore I've just elected to keep it simple and just include compatibility with the latest slate format, V3. Unfortunately, this will mean master will be unusable with older wallets once this PR is merged.

@yeastplume yeastplume merged commit 9c2177e into mimblewimble:master Nov 20, 2019
@yeastplume yeastplume deleted the hf3_slate_changes branch January 6, 2020 09:57
yyangli pushed a commit to mwcproject/mwc-wallet that referenced this pull request May 13, 2020
* Update slate version to V3, define PaymentInfoV3 and add needed serialization

* rustfmt

* add ttl and payment proof info to slate

* rustfmt

* add documentation for updated fields

* doc test fixes
antiochp pushed a commit to antiochp/grin-wallet that referenced this pull request Aug 7, 2020
* Update slate version to V3, define PaymentInfoV3 and add needed serialization

* rustfmt

* add ttl and payment proof info to slate

* rustfmt

* add documentation for updated fields

* doc test fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant