NotePutting PR in draft until #144 and #145 get merged. This branch builds on the code in those two, so will need to rebase this work after merging those.
Motivations
Updates the spec tests and code to remove all JS glue code that was being implemented to get specs to pass. Originally this repo was based on the SWIG version of the code which was not editable. To accommodate the specs some try/catch and conditionals were added to get things compliant.
This PR removed all the glue code in the testing files and ensured that all conditions are handled directly by the native code.
These changes were driven by the removal of bls from lodestar. There was some glue code in there in addition to the spec tests.
Now all functions take the spec data input and pass it directly to the function calls. All output is also directly taken and passed to the expectation to ensure the base layer is 100% compliant with the spec.
Split off from https://github.com/ChainSafe/blst-ts/pull/143
Note
Putting PR in draft until #144 and #145 get merged. This branch builds on the code in those two, so will need to rebase this work after merging those.Motivations
Updates the spec tests and code to remove all JS glue code that was being implemented to get specs to pass. Originally this repo was based on the SWIG version of the code which was not editable. To accommodate the specs some try/catch and conditionals were added to get things compliant.
This PR removed all the glue code in the testing files and ensured that all conditions are handled directly by the native code.
These changes were driven by the removal of bls from lodestar. There was some glue code in there in addition to the spec tests.
Now all functions take the spec data
input
and pass it directly to the function calls. All output is also directly taken and passed to the expectation to ensure the base layer is 100% compliant with the spec.