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

Shield Activity Support #81

Merged
merged 12 commits into from
Oct 19, 2024
Merged

Shield Activity Support #81

merged 12 commits into from
Oct 19, 2024

Conversation

panleone
Copy link
Member

@panleone panleone commented Mar 6, 2024

This PR is needed to support shield activity on MPW, it is divided in 4 main parts:

  • Add the interface SimplifiedNote which is the structure we are actually going to send to MPW
  • All nullifiers belonging to the wallet are stored in a map f: nullifier --> SimplifiedNote. In this way we can decrypt a ShieldSpent only by its nullifier.
  • Add a function decryptTransactionOutputs which tries to decrypt the ShieldOutput of a transaction and returns their simplified version
  • Make handle block return the list of transactions that belongs to the wallet

@panleone panleone self-assigned this Mar 6, 2024
@panleone panleone added the enhancement New feature or request label Mar 6, 2024
@panleone panleone requested a review from Duddino March 6, 2024 18:05
@panleone panleone force-pushed the nullifier_map branch 2 times, most recently from ae2921a to 61b6f01 Compare March 10, 2024 18:02
@panleone panleone changed the title Store all nullifiers belonging to the wallet Shield Activity Support Mar 10, 2024
js/pivx_shield.ts Outdated Show resolved Hide resolved
js/pivx_shield.ts Show resolved Hide resolved
src/transaction.rs Show resolved Hide resolved
Copy link
Member

@Duddino Duddino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK, clear to merge when PIVX-Labs/MyPIVXWallet#416 gets approved as well

@panleone
Copy link
Member Author

rebased to get rid of the git merge commit. You can check that the diff is trivial with

git diff 438fb04

and check the files modified by this PR

@Duddino Duddino mentioned this pull request Oct 18, 2024
@Duddino Duddino merged commit ddfbceb into master Oct 19, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants