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!: ledger metadata signature with receiver adress confirmation #6462

Merged

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Aug 9, 2024

Description

Send the user spend public key to the ledger for script generation and user validation via the ledger device.

Motivation and Context

Initially we though we would need to send all the parts to the ledger, instead we will change the format by hashing the script, and hashing all other fields, then hashing those hashes.
This allows us to hash the other fields, and send just the hash to the ledger instead of serializing all the independent parts (covenants, encrypted data, etc.) As they have variable lengths and it gets messy quick.

Then we can send just the receiver public spend key to the ledger, and use it to generate the entire TariScript for the message, after the user has verified the address on the ledger screen.

How Has This Been Tested?

What process can a PR reviewer use to test or verify this change?

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Copy link

github-actions bot commented Aug 9, 2024

Test Results (CI)

    3 files    126 suites   41m 30s ⏱️
1 303 tests 1 303 ✅ 0 💤 0 ❌
3 901 runs  3 901 ✅ 0 💤 0 ❌

Results for commit 4e6a0d0.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Aug 9, 2024
Copy link

github-actions bot commented Aug 9, 2024

Test Results (Integration tests)

 2 files  + 2   1 errors  9 suites  +9   20m 23s ⏱️ + 20m 23s
19 tests +19  17 ✅ +17  0 💤 ±0  2 ❌ +2 
22 runs  +22  18 ✅ +18  0 💤 ±0  4 ❌ +4 

For more details on these parsing errors and failures, see this check.

Results for commit 4e6a0d0. ± Comparison against base commit 310a470.

♻️ This comment has been updated with latest results.

@hansieodendaal hansieodendaal force-pushed the bp-feat-ledger-script-generation branch from 18b29d2 to 0baae9c Compare August 12, 2024 06:48
@hansieodendaal hansieodendaal force-pushed the bp-feat-ledger-script-generation branch from 0baae9c to 5ce49b1 Compare August 12, 2024 07:39
@hansieodendaal hansieodendaal marked this pull request as ready for review August 12, 2024 07:41
@hansieodendaal hansieodendaal requested a review from a team as a code owner August 12, 2024 07:41
@hansieodendaal hansieodendaal changed the title WIP: Ledger script generation feat: ledger metadata signature with receiver adress confirmation Aug 12, 2024
@hansieodendaal hansieodendaal changed the title feat: ledger metadata signature with receiver adress confirmation feat!: ledger metadata signature with receiver adress confirmation Aug 12, 2024
Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

Looks good

@SWvheerden SWvheerden merged commit 84e7c0a into tari-project:development Aug 12, 2024
15 of 17 checks passed
@brianp brianp deleted the bp-feat-ledger-script-generation branch August 19, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants