Inspiration
I was eating breakfast at the Liquid Bootcamp and asked my friend if he had received the lunch voucher. He said something like "Yes! A great voucher by the way". And that's when the idea kicked in. What if any event promoter could form partners before-hand and then distribute "vouchers" at the beginning of the event to participants so they could spend during the event only with designated partners?
What it does
It funds addresses controled by participants using a 2-of-m multisig between the participant, the promoter and the partners. Whenever a participant wants to eat or pay a partner they sign a tx spending from the address with 3 outputs. One to the partner (P2PKH), one as a change back to the participant (P2MS with same spending conditions as the parent tx) and a fee to the blockchain.
How we built it
This system is implemented as a Dioxus desktop application (Rust) communicating with Elements (Liquid) via RPC and integrating SimplicityHL and hal-simplicity for covenant creation and validation.
Challenges we ran into
Creating the witnesses and the signatures needed.
Accomplishments that we're proud of
Implementing a Dioxus desktop app and a simplicity covenant contract of a P2MS.
What we learned
- Simplicity
- UI with Dioxus
- Contract building
- Introspection for covenants
What's next for Partnerfy
- Integrate with ease of sign in-between devices
- Make use of a relative timelock spend path so the promoter can claim funds alone
- Counter security flaws
Log in or sign up for Devpost to join the conversation.