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

Murisi/masp for namadillo #4127

Merged
merged 18 commits into from
Dec 5, 2024
Merged

Murisi/masp for namadillo #4127

merged 18 commits into from
Dec 5, 2024

Conversation

murisi
Copy link
Collaborator

@murisi murisi commented Dec 2, 2024

Describe your changes

Essentially #3797, but with MASP hardware wallet integration disabled. Hardware wallet integration was disabled because (modified) ZIP 32 derivations are not yet supported by the device. Despite this, this PR is still useful because it separates MASP transaction building from MASP transaction signing, which is required for securely implementing MASP transactions on Namadillo.

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 Dec 2, 2024

Codecov Report

Attention: Patch coverage is 48.14815% with 140 lines in your changes missing coverage. Please review.

Project coverage is 74.49%. Comparing base (cc531ec) to head (49a4a5d).
Report is 121 commits behind head on main.

Files with missing lines Patch % Lines
crates/wallet/src/store.rs 25.00% 60 Missing ⚠️
crates/wallet/src/lib.rs 33.33% 32 Missing ⚠️
crates/wallet/src/keys.rs 32.14% 19 Missing ⚠️
crates/sdk/src/tx.rs 73.91% 6 Missing ⚠️
crates/core/src/masp.rs 78.26% 5 Missing ⚠️
crates/apps_lib/src/wallet/defaults.rs 0.00% 4 Missing ⚠️
crates/sdk/src/lib.rs 0.00% 4 Missing ⚠️
crates/tx/src/types.rs 84.21% 3 Missing ⚠️
crates/apps_lib/src/config/genesis/transactions.rs 0.00% 2 Missing ⚠️
crates/apps_lib/src/config/genesis/utils.rs 0.00% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4127      +/-   ##
==========================================
- Coverage   74.58%   74.49%   -0.09%     
==========================================
  Files         341      341              
  Lines      107484   107645     +161     
==========================================
+ Hits        80167    80192      +25     
- Misses      27317    27453     +136     

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

Cargo.toml Outdated Show resolved Hide resolved
@@ -184,13 +184,14 @@ fn payment_addresses_list(
}

/// Derives a masp spending key from the mnemonic code in the wallet.
fn shielded_key_derive(
async fn shielded_key_derive(
Copy link
Member

Choose a reason for hiding this comment

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

why did this become async?

Copy link
Member

Choose a reason for hiding this comment

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

it's taken from #3797 without shielded keys support in HW wallet - we unfortunately already have some blocking calls mixed in the client already (e.g. wallet load) but I think we should just go with it and convert the blocking stuff to async

crates/core/src/masp.rs Outdated Show resolved Hide resolved
@murisi murisi force-pushed the murisi/masp-for-namadillo branch from 822426b to 53940be Compare December 3, 2024 08:35
@murisi murisi force-pushed the murisi/masp-for-namadillo branch from 53940be to 49a4a5d Compare December 3, 2024 08:56
Copy link
Contributor

@mateuszjasiuk mateuszjasiuk left a comment

Choose a reason for hiding this comment

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

Everything works great from perspective of frontend integration :)!

@murisi murisi added MASP SDK merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass and removed merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass labels Dec 5, 2024
mergify bot added a commit that referenced this pull request Dec 5, 2024
@mergify mergify bot merged commit 7a730d6 into main Dec 5, 2024
21 of 24 checks passed
@mergify mergify bot deleted the murisi/masp-for-namadillo branch December 5, 2024 08:59
@tzemanovic tzemanovic added the backport-libs-0.46 Backport libraries to 0.46 maintenance branch label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-libs-0.46 Backport libraries to 0.46 maintenance branch MASP merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants