forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ripemd_160
builtin (IntersectMBO#6378)
* Add ripemd-160 builtin with artificial cost model (copy of keccak_256) * Add conformance tests * More merging * Merge metatheory * Remove ripemd_160 from V3 ParamNames * Update plutus-tx-plugin-tests results * Update cardano-constitution-test results * Add bench results and generate new model for RIPEMD-160 * Update conformance results for new ripemd-160 costs * Add changelog entries * Add changelog entries * Uncomment changleog entries * Fix JSON file * Update defaultCostModelParams.json * Remove entry from sha256_map in project.nix * "Fix" plutus-ledger-api tests * Remove comment about failing test --------- Co-authored-by: Tomasz Rybarczyk <[email protected]>
- Loading branch information
Showing
61 changed files
with
1,264 additions
and
1,045 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
cardano-constitution/test/Cardano/Constitution/Validator/GoldenTests/sorted.cbor.size.golden
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2132 | ||
2135 |
2 changes: 1 addition & 1 deletion
2
...o-constitution/test/Cardano/Constitution/Validator/GoldenTests/sorted.large.budget.golden
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ExBudget {exBudgetCPU = ExCPU 601476171, exBudgetMemory = ExMemory 2971818} | ||
ExBudget {exBudgetCPU = ExCPU 601524171, exBudgetMemory = ExMemory 2972118} |
2 changes: 1 addition & 1 deletion
2
...o-constitution/test/Cardano/Constitution/Validator/GoldenTests/sorted.small.budget.golden
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ExBudget {exBudgetCPU = ExCPU 91525157, exBudgetMemory = ExMemory 413605} | ||
ExBudget {exBudgetCPU = ExCPU 91573157, exBudgetMemory = ExMemory 413905} |
1,549 changes: 775 additions & 774 deletions
1,549
cardano-constitution/test/Cardano/Constitution/Validator/GoldenTests/sorted.uplc.golden
Large diffs are not rendered by default.
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
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
14 changes: 14 additions & 0 deletions
14
...cases/uplc/evaluation/builtin/semantics/ripemd_160/ripemd_160-empty/ripemd_160-empty.uplc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- Test vector (0-bit input) for Ripemd_160. | ||
-- Output obtained using the online tool https://emn178.github.io/online-tools/ripemd_160.html | ||
(program 1.0.0 | ||
[ | ||
[ | ||
(builtin equalsByteString) | ||
[ | ||
(builtin ripemd_160) | ||
(con bytestring #) | ||
] | ||
] | ||
(con bytestring #9c1185a5c5e9fc54612808977ee8f548b2258d31) | ||
] | ||
) |
2 changes: 2 additions & 0 deletions
2
...ation/builtin/semantics/ripemd_160/ripemd_160-empty/ripemd_160-empty.uplc.budget.expected
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
({cpu: 2130451 | ||
| mem: 804}) |
1 change: 1 addition & 0 deletions
1
...c/evaluation/builtin/semantics/ripemd_160/ripemd_160-empty/ripemd_160-empty.uplc.expected
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 1.0.0 (con bool True)) |
14 changes: 14 additions & 0 deletions
14
.../evaluation/builtin/semantics/ripemd_160/ripemd_160-length-200/ripemd_160-length-200.uplc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- Test vector (0-bit input) for Ripemd_160. | ||
-- Output obtained using the online tool https://emn178.github.io/online-tools/ripemd_160.html | ||
(program 1.0.0 | ||
[ | ||
[ | ||
(builtin equalsByteString) | ||
[ | ||
(builtin ripemd_160) | ||
(con bytestring #2e7ea84da4bc4d7cfb463e3f2c8647057afff3fbececa1d200) | ||
] | ||
] | ||
(con bytestring #f18921115370b049e99dfdd49fc92b371dd7c7e9) | ||
] | ||
) |
2 changes: 2 additions & 0 deletions
2
...tin/semantics/ripemd_160/ripemd_160-length-200/ripemd_160-length-200.uplc.budget.expected
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
({cpu: 2204011 | ||
| mem: 804}) |
1 change: 1 addition & 0 deletions
1
...on/builtin/semantics/ripemd_160/ripemd_160-length-200/ripemd_160-length-200.uplc.expected
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(program 1.0.0 (con bool True)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Added | ||
|
||
- Builtin function `ripemd_160` implementing RIPEMD-160 hashing. |
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
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.