You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
478a53c Use ScriptPubKey model in GetDescriptorActivity (Jamil Lambert, PhD)
267c004 Add ScriptPubKey model, error and into_model (Jamil Lambert, PhD)
Pull request description:
`ScriptPubKey` has fields that can be modelled with rust-bitcoin types. And says in it's own rustdoc ```The `mtype::ScriptPubkey` mirrors this design```, but there is none.
Two RPCs use this type, `getdescriptoractivity` and `gettxout`. The `GetTxOut` model extracts individual fields from the `ScriptPubKey` to create a `TxOut` and `Address`, and does not model a `ScriptPubKey` type.
- Add the `ScriptPubKey` model, error and into function.
- Use the model in `GetDescriptorActivity`.
ACKs for top commit:
tcharding:
ACK 478a53c
Tree-SHA512: b466b99f4d609778b3d98e520610b186b65bee7c2fdfee11b37536e778bafe713a3b2686ac29cec8e8747fb6732a68fbc455f40aa07ab4fcb5ceb6522d896e83
0 commit comments