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

Support for hard-fork contract #93

Closed
agaffney opened this issue Dec 3, 2023 · 2 comments
Closed

Support for hard-fork contract #93

agaffney opened this issue Dec 3, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@agaffney
Copy link
Contributor

agaffney commented Dec 3, 2023

There's a TUNAv2 contract with some changes. We want to be able to support both.

I've looked through the TUNA hard-fork contract, and I've noticed a few differences:

  • the TargetState object (used by the miner internally) has its fields reordered and a new miner bytestring field added
  • the miner bytestring is a blake2b hash of either a public key hash or a NFT (for mining pools, I think)
  • if using a PKH for the miner field, the contract will verify that it matches one of the signers on the transaction
  • the on-chain datum fields have been reordered to put extra (message) last instead of before the interlink

It's harder to determine what changes we'll need in the TX building (extra redeemers or whatever) from looking at the smart contract, so we may need to wait until Fortuna is updated to see what's needed

agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 3, 2023
agaffney added a commit that referenced this issue Dec 4, 2023
agaffney added a commit that referenced this issue Dec 4, 2023
agaffney added a commit that referenced this issue Dec 4, 2023
agaffney added a commit that referenced this issue Dec 4, 2023
agaffney added a commit that referenced this issue Dec 4, 2023
agaffney added a commit that referenced this issue Dec 4, 2023
@agaffney
Copy link
Contributor Author

agaffney commented Dec 4, 2023

This was done partially in #98

@wolf31o2 wolf31o2 added the enhancement New feature or request label Mar 4, 2024
@agaffney
Copy link
Contributor Author

agaffney commented Jul 3, 2024

This was finished in #192

@agaffney agaffney closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants