DelicioiusHair
15229d31cf
Add ultra-fancy payout curve module
3 years ago
Lucas Soriano del Pino
27727cdb03
Use olivia's attestation scheme instead of dlcspecs'
We also stopped generating random oracle-related values for the
protocol tests, greatly simplifying the test suite. This has the
side-effect that we no longer verify that _all_ CETs can be unlocked.
Re-introducing random oracle-related data in the future should be
considered.
3 years ago
Thomas Eizinger
296fd98cf0
Add dummy payouts
This is only temporary until we have the payout-curve module ready.
3 years ago
Lucas Soriano del Pino
d168b07065
Fix MAX_PRICE_DEC
2^20 is 21 bits long, _not_ 20 bits long. If we allow a bound equal to
2^20 we would need 21 bits to represent it, past our limit of 20.
3 years ago
Lucas Soriano del Pino
1eb237faaa
Take RangeInclusive<u64> as argument to Payout constructor
3 years ago
Lucas Soriano del Pino
4fdbe89898
Refactor cfd_protocol crate
3 years ago
Lucas Soriano del Pino
8122cd7b79
Prove that signing a price works
And fix bugs along the way.
3 years ago
Lucas Soriano del Pino
0b6336c13d
Add interval module
3 years ago