Skip to content

NUTs for prediction markets#337

Open
joemphilips wants to merge 2 commits intocashubtc:mainfrom
joemphilips:nuts_for_prediction_markets
Open

NUTs for prediction markets#337
joemphilips wants to merge 2 commits intocashubtc:mainfrom
joemphilips:nuts_for_prediction_markets

Conversation

@joemphilips
Copy link

@joemphilips joemphilips commented Feb 7, 2026

This is my ongoing attempt to support encoding Prediction Market Token with cashu.
My primary motivation is to

There have been previous attempts to support DLCs on Cashu, for example:
#128

The purpose of those attempts was essentially to emulate a two-party DLC transaction using eCash tokens.

This approach is completely different. Each outcome is encoded as a separate token, and the mint is agnostic to the oracles. I believe this is a more natural representation of a prediction-market security token and enables a more liquid market.

This PR contains three NUTs

  • NUT-28: Conditional token redemption via oracle-attested outcome keysets
  • NUT-29: Conditional token split and merge for trading positions
  • NUT-30: Numeric outcome conditions with digit decomposition

Done self-reviewing, it is now ready for review from others. I will try to have a reference implementation ready when I have time. I may update the spec based on what I've learn during implementation.

It is possible to split 28.md (Condition Token) into an independent PR if the maintainer wishes. Since this is quite a huge PR.

@github-project-automation github-project-automation bot moved this to Backlog in nuts Feb 7, 2026
Add three new optional NUT specs based on the Gnosis Conditional Token Framework:

- NUT-28: Conditional token redemption via oracle-attested outcome keysets
- NUT-29: Conditional token split and merge for trading positions
- NUT-30: Numeric outcome conditions with digit decomposition

Includes test vectors, error codes, and README updates.
@joemphilips joemphilips force-pushed the nuts_for_prediction_markets branch from 2657a60 to 3f6850a Compare February 15, 2026 14:10
@joemphilips joemphilips marked this pull request as ready for review February 15, 2026 14:11
@joemphilips joemphilips changed the title WIP: NUTs for prediction markets NUTs for prediction markets Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant