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

Generate test vectors for batched txs. #4217

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

murisi
Copy link
Collaborator

@murisi murisi commented Jan 6, 2025

Describe your changes

Expanded the test vector generator to generate variable-length batch transactions. This is necessary as a step towards achieving hardware wallet batch transaction (printing and signing) support. See attached the test vectors (which show what the hardware wallet will be required to display) resulting from this change: batched_debugs.txt.gz batched_testvectors.json . This PR should not be merged before hardware wallet batch transaction support is implemented because that would cause the hardware wallet CI tests in this Namada repository to fail. Note: this draft PR was used to generate the following issue: Zondax/ledger-namada#97 .

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 8.00000% with 23 lines in your changes missing coverage. Please review.

Project coverage is 74.47%. Comparing base (490e616) to head (5bcea71).
Report is 97 commits behind head on main.

Files with missing lines Patch % Lines
crates/sdk/src/signing.rs 8.00% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4217      +/-   ##
==========================================
- Coverage   74.54%   74.47%   -0.07%     
==========================================
  Files         341      341              
  Lines      107549   107710     +161     
==========================================
+ Hits        80173    80220      +47     
- Misses      27376    27490     +114     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@murisi murisi requested review from grarco and Fraccaman January 6, 2025 14:36
@murisi murisi force-pushed the murisi/batch-tx-testvectors branch from 6eb8611 to 625b600 Compare January 6, 2025 15:08
@grarco
Copy link
Collaborator

grarco commented Jan 9, 2025

A small comment, we can probably remove this FIXME that I had left back when we introduced batched transactions

// FIXME: need to push some string to differentiate between the

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