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

feat!: add claim public key to OutputFeatures #5239

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 10, 2023

Description

  • Adds confidential claim data to chain when burn_tari is invoked with claim_public_key set.
  • Updates output recovery in wallet to recover burnt outputs

Motivation and Context

Claim key is required for mask and value recovery of burnt funds on L2.
Unfortunately, since burnt outputs are not part of the utxo set, the wallet does not receive these outputs when recovering. Resolving this is out of scope for this PR.

How Has This Been Tested?

Manually: normal wallet recovery OK. Resync base node OK.

BREAKING CHANGE: Not database or network breaking, but a chain split will occur if a burnt utxo with the claim public key set is broadcast and some nodes have not upgraded.

@sdbondi sdbondi force-pushed the burn-add-claim-key-to-chain branch from 48106ae to d4f7121 Compare March 10, 2023 11:56
@stringhandler stringhandler merged commit 3e7d82c into tari-project:development Mar 13, 2023
@sdbondi sdbondi deleted the burn-add-claim-key-to-chain branch March 13, 2023 10:48
stringhandler pushed a commit that referenced this pull request Mar 15, 2023
### ⚠ BREAKING CHANGES

* **wallet:** ensure burn shared keys and hashes match dan layer (5245)
* add claim public key to OutputFeatures (5239)
* reset esmeralda (5247)

### Features

* add claim public key to OutputFeatures
([5239](#5239))
([3e7d82c](3e7d82c))
* reset esmeralda
([5247](#5247))
([aa2a3ad](aa2a3ad))


### Bug Fixes

* added transaction revalidation to the wallet startup sequence
[5227](#5227)
([5246](#5246))
([7b4e2d2](7b4e2d2))
* immediately fail to compile on 32-bit systems
([5237](#5237))
([76aeed7](76aeed7))
* **wallet:** correct change checks in transaction builder
([5235](#5235))
([768a0cf](768a0cf))
* **wallet:** ensure burn shared keys and hashes match dan layer
([5245](#5245))
([024ce64](024ce64))
* windows path format in log4rs files
([5234](#5234))
([acfecfb](acfecfb))
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.

2 participants