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

Baid58 parse to TapretCommitment not work #37

Closed
crisdut opened this issue Apr 19, 2023 · 1 comment · Fixed by #39
Closed

Baid58 parse to TapretCommitment not work #37

crisdut opened this issue Apr 19, 2023 · 1 comment · Fixed by #39
Labels
bug Something isn't working

Comments

@crisdut
Copy link
Member

crisdut commented Apr 19, 2023

Hi @dr-orlovsky,

I tried use baid58 parse to TapretCommitment and received the follow error:

running 1 test
thread 'tapret::tapscript::test::commiment_serialization' panicked at 'exact size match: Decode(Io(Kind(InvalidInput)))', dbc/src/tapret/tapscript.rs:66:10

Test Code

#[test]
pub fn tapret_commitment_baid58() {
    let commitment = commitment();
    let _ =  TapretCommitment::from_baid58(commitment.to_baid58()).unwrap();
}
@crisdut crisdut changed the title TapretCommitment Baid58 not work! TapretCommitment Baid58 not work Apr 19, 2023
@crisdut crisdut changed the title TapretCommitment Baid58 not work Baid58 parse to TapretCommitment not work Apr 19, 2023
@dr-orlovsky dr-orlovsky added the bug Something isn't working label Apr 19, 2023
@dr-orlovsky
Copy link
Member

This was caused by a bug in strict encoding: strict-types/strict-encoding#13

Fixed in #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants