Cowboy Escrow is a censorship resistant peer to peer escrow built with bitcoin and nostr. It allows two parties to create an escrow contract, with an impartial third party "cowboy" acting as the escrow.
You'll need to gather this information:
- 1. Maker (your) nostr npub (you can create one new from here https://nstart.me)
- 2. Maker (your) bitcoin onchain address to receive founds back in case something goes wrong
- 3. Taker's nostr npub
- 4. Taker's bitcoin onchain address
- 3. @AGORA's nostr npub
npub13kkpytvjcxsqka9pdshw3094urgh8fxwx7ru258lved9wr7f35mspal584
- 4. @AGORA's bitcoin onchain public address
bc1qrn8p4sn7hhng95pmvdkpnm4eqx0jv6ql2t98wf
-
The maker creates a new contract by entering their details, the taker's details, escrow's details, contract terms and stake amounts. They then publish this to the Nostr protocol.
-
The taker views the contract details and can choose to accept the contract. If they accept, they enter their nsec and sign the contract with their Bitcoin private key. They then publish this acceptance to Nostr, referencing the original contract event.
-
If there is a dispute, the escrow can view the contract details and decide on the outcome. They declare either the maker or taker as the winner by publishing to Nostr.
-
The contract funds are then released to the winner's Bitcoin address.
- Nostr for encrypted event publishing
- Noble Secp256k1 for encryption/decryption and signing
- Bech32 for npub/nsec encoding
- BitcoinJS/TaprootJS for Bitcoin script construction and signing
- TailwindCSS for styling
-
Clone the repo
-
Open
index.html
in your browser to access the app -
There is no step 3