Conversation
2657a60 to
3f6850a
Compare
|
Reference implementation (WIP): cashubtc/cdk#1648 |
ee15247 to
63af400
Compare
|
@joemphilips have you taken a look at this PR: #128? its a previous standard for DLCs in cashu. you might want to take a look |
|
Hi @lescuer97, thanks for pointing it out. Yes, I've read it. I didn't go into detail because the approach is quite different from mine. IIUC, PR #128 proposes an My concern with that approach is that it's primarily suited for bilateral contracts (two parties
They're not in conflict. In fact, both can share the same oracle infrastructure (DLC oracle |
94336aa to
16b650c
Compare
|
In case anyone's interested, I've been building a PoC application based on this protocol.
|
| [22]: 22.md | ||
| [CTF-split-merge]: CTF-split-merge.md | ||
| [CTF-numeric]: CTF-numeric.md | ||
| [NIP-88]: https://github.com/nostr-protocol/nips/pull/1681 |
There was a problem hiding this comment.
This link should be replaced with an actual NIP after nostr-protocol/nips#1681 gets merged.
Add NUT-CTF (Conditional Token Framework), NUT-CTF-split-merge (split/merge operations), and NUT-CTF-numeric (numeric outcome conditions) specs with test vectors, supplementary material, error codes, and README entries. Squashed from 9 commits after rebasing onto upstream/main to resolve NUT-28/29 filename conflicts (upstream now uses those numbers for P2BK and Batched Mint).
f94f19e to
618bf78
Compare
|
squashed and rebased |
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
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 CTF.md (Conditional Token Framework) into an independent PR if the maintainer wishes. Since this is quite a huge PR.
Reference implementation: cashubtc/cdk#1666