-
Notifications
You must be signed in to change notification settings - Fork 217
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
[ADP-3479] Add input bip32 list to Transaction type #4866
Conversation
6c6d79a
to
d0a4d38
Compare
6a21e81
to
4b3cfac
Compare
d0a4d38
to
ec9bd83
Compare
4b3cfac
to
c95fe11
Compare
There was a problem hiding this 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.
5718b41
to
8f6fd06
Compare
4a39c7b
to
3a17e87
Compare
3a17e87
to
1718456
Compare
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!
1718456
to
407f32c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ADP-3479