Closed arvidn closed 2 weeks ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/base64_ops.rs | 61 | 62 | 98.39% | ||
src/chia_dialect.rs | 7 | 8 | 87.5% | ||
<!-- | Total: | 90 | 92 | 97.83% | --> |
Totals | |
---|---|
Change from base Build 9096453504: | 0.05% |
Covered Lines: | 5895 |
Relevant Lines: | 6257 |
these features were cancelled.
this PR is best reviewed one commit at a time.
It implements CHIP-34.
new operators
There are 3 new operators enabled under softfork
1
:base64url_encode
base64url_decode
keccak256
cost
base64url_encode
base64url_decode
keccak256
As always, there's also a cost of 10 per byte that's allocated for the return value.
activation
Since this is a softfork, the extension will only be available when the
ENABLE_BASE64
flag is set, which it will be after the softfork activates.The operators will only be available for programs (
<prg>
) executing under(softfork <cost> 1 <prg> <arg>)
hard fork
There's an option to hard-fork these operators out of the softfork-guard by specifying
ENABLE_BASE64_OPS_OUTSIDE_GUARD
.keccak-256
The test vectors are generated using the python wheel
from eth_hash.auto import keccak
.