BP-WG / bp-std

Modern & lightweight implementation of bitcoin standards without rust-bitcoin/miniscript dependencies
Apache License 2.0
16 stars 17 forks source link

Fix retrieve tapret proof #30

Closed crisdut closed 2 months ago

crisdut commented 2 months ago

Description

This PR intent fix retrieves TapRet Proof from PSBT proprietary.

MISC Furthermore, it is possible to ask a question that is not directly related to PR:

How do I determine the maximum size of a strict_serialized operation?

For example, how do I know that in tapret_proof, I use U16 instead of U24?

Thanks

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 0.0%. Comparing base (2e3c1d1) to head (7758c44). Report is 5 commits behind head on master.

Files Patch % Lines
psbt/src/csval/tapret.rs 0.0% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #30 +/- ## ===================================== Coverage 0.0% 0.0% ===================================== Files 18 18 Lines 3191 3228 +37 ===================================== - Misses 3191 3228 +37 ``` | [Flag](https://app.codecov.io/gh/BP-WG/bp-std/pull/30/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BP-WG) | Coverage Δ | | |---|---|---| | [rust](https://app.codecov.io/gh/BP-WG/bp-std/pull/30/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BP-WG) | `0.0% <0.0%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BP-WG#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

dr-orlovsky commented 2 months ago

@zoedberg @nicbus do you have any idea how we got the tests passing with this bug in place?

crisdut commented 2 months ago

@zoedberg @nicbus do you have any idea how we got the tests passing with this bug in place?

It's because we don't use this method on any calls. I realized this because I'm implementing the PSBT fascia export method. I have other improvements to make involving bp-std and RGB, but I need this one merged first.

PS: None of the other improvements are fixies but instead new methods.