FairCrypto / XEN-crypto

XEN Crypto
https://faircrypto.org/xencryptolp.pdf
MIT License
226 stars 70 forks source link

Expose pure functions #29

Open joeblau opened 2 years ago

joeblau commented 2 years ago

There are a few pure functions without side effects that are private. I'm not sure why, but it makes building UI's a lot harder because you have to re-build the internal calculations.

Here are the list of pure functions that should be exposed

The proposal is to copy the pattern the get function. getMintReward getStakeReward