discreetlogcontracts / dlcspecs

Specification for Discreet Log Contracts
Creative Commons Attribution 4.0 International
238 stars 36 forks source link

Hyperbola (1/x) shaped payout curve support #144

Closed nkohen closed 3 years ago

nkohen commented 3 years ago

Two big changes to payout functions are introduced:

  1. Payout functions are not specified as a set of endpoints with TLV-serialized curve pieces in-between.
  2. Curve pieces now include hyperbolas and not only polynomials (which was all there was before this).

This allows contract determined as some hyperbola in the outcome to be specified succinctly.