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

fix: use PlutusBytes to encode BigUInt/BigNInt #216

Merged
merged 3 commits into from
Jan 26, 2023

Conversation

jmhrpr
Copy link
Member

@jmhrpr jmhrpr commented Jan 25, 2023

Currently, BigU/NInt is encoded with Bytes which is just a wrapper around minicbor Bytes. But it should be using PlutusBytes, which supports this "if the bytestring is longer than 64 bytes then break up the bytestring into bytestrings of length 64 and put them into an indefinite byte string" pattern.

@jmhrpr jmhrpr requested a review from scarmuega January 25, 2023 20:14
@jmhrpr jmhrpr marked this pull request as ready for review January 25, 2023 20:15
@scarmuega scarmuega merged commit c673034 into main Jan 26, 2023
@scarmuega scarmuega deleted the fix/plutus-bignum-encoding branch January 26, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants