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

[ADP-3479] Add input bip32 list to Transaction type #4866

Conversation

paolino
Copy link
Collaborator

@paolino paolino commented Dec 6, 2024

  • Add bip32 input paths to unsigned json to easy external signing

ADP-3479

@paolino paolino changed the title Add input bip32 list to Transaction type [ADP-3479] Add input bip32 list to Transaction type Dec 6, 2024
@paolino paolino self-assigned this Dec 6, 2024
@paolino paolino added Deposit UI UI related changes labels Dec 6, 2024
@paolino paolino force-pushed the paolino/ADP-3479/amend-wallet-page-to-host-wallet-status branch from 6c6d79a to d0a4d38 Compare December 6, 2024 08:56
@paolino paolino force-pushed the paolino/ADP-3479/add-bip32-paths-to-unsigned-and-signed-tx-serialization branch from 6a21e81 to 4b3cfac Compare December 6, 2024 08:56
@paolino paolino force-pushed the paolino/ADP-3479/amend-wallet-page-to-host-wallet-status branch from d0a4d38 to ec9bd83 Compare December 6, 2024 10:13
@paolino paolino force-pushed the paolino/ADP-3479/add-bip32-paths-to-unsigned-and-signed-tx-serialization branch from 4b3cfac to c95fe11 Compare December 6, 2024 10:14
Copy link
Collaborator

@abailly abailly left a comment

Choose a reason for hiding this comment

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

I think we need a roundtrip property test for BIP32Path <-> JSON encoding, and I would add the decodeBip32/encodeBIP32 as proper FromJSON/ToJSON instances to the BIP32Path. With ToJSON/FromJSON/Arbitrary instances available, we can leverage hspec-golden-aeson to add standard tests.

Base automatically changed from paolino/ADP-3479/amend-wallet-page-to-host-wallet-status to paolino/ADP-3479/add-payment-page December 9, 2024 16:32
@abailly abailly force-pushed the paolino/ADP-3479/add-payment-page branch from 5718b41 to 8f6fd06 Compare December 9, 2024 17:09
Base automatically changed from paolino/ADP-3479/add-payment-page to master December 10, 2024 06:44
@abailly abailly force-pushed the paolino/ADP-3479/add-bip32-paths-to-unsigned-and-signed-tx-serialization branch 2 times, most recently from 4a39c7b to 3a17e87 Compare December 14, 2024 09:07
@abailly abailly requested review from paweljakubas and a team December 14, 2024 09:15
@abailly abailly force-pushed the paolino/ADP-3479/add-bip32-paths-to-unsigned-and-signed-tx-serialization branch from 3a17e87 to 1718456 Compare December 14, 2024 11:54
paolino and others added 2 commits December 16, 2024 08:07
The ToJSON/FromJSON/Arbitrary instances for BIP32Path should probably
live alongside the corresponding datatype definition but it's good
enough for now. Interestingly, writing the property showed a bug: The
parsing of `Root` path was incorrect!
@abailly abailly force-pushed the paolino/ADP-3479/add-bip32-paths-to-unsigned-and-signed-tx-serialization branch from 1718456 to 407f32c Compare December 16, 2024 07:07
Copy link
Member

@Anviking Anviking left a comment

Choose a reason for hiding this comment

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

👍

@abailly abailly added this pull request to the merge queue Dec 16, 2024
Merged via the queue into master with commit 885f9e6 Dec 16, 2024
24 checks passed
@abailly abailly deleted the paolino/ADP-3479/add-bip32-paths-to-unsigned-and-signed-tx-serialization branch December 16, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deposit UI UI related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants