This PR continues the effort of merging #705 in multiple pieces.
This PR introduces the core hashchain logic as a library crate. The reasons to factor the code in this way are:
Allows this PR to be safely merged because it has no impact on existing engine code
The same core logic will be reusable between components that will perform the hashchain computation in the future, namely: Aurora Engine smart contract, standalone engine, Borealis Refiner.
In the next PR I'll pull in the changes from #705 which actually introduce the hashchain calculation into the Aurora Engine smart contract and standalone engine.
Description
This PR continues the effort of merging #705 in multiple pieces.
This PR introduces the core hashchain logic as a library crate. The reasons to factor the code in this way are:
In the next PR I'll pull in the changes from #705 which actually introduce the hashchain calculation into the Aurora Engine smart contract and standalone engine.
Performance / NEAR gas cost considerations
N/A
Testing
New hashchain tests