-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement sane wrapper over all the plutus integer types
CDDL defines: ``` int = uint / nint biguint = #6.2(bstr) bignint = #6.3(bstr) bigint = biguint / bignint integer = int / bigint unsigned = uint / biguint ``` which is very unwieldly to use and not to mention to have to interpret the bytes correctly and everything so this commit introduces a single wrapper type `BigInt` that covers all of these cases and tries to encode the integer in the smallest possible type.
- Loading branch information
1 parent
d6619be
commit 3b68540
Showing
6 changed files
with
222 additions
and
396 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.