pull down to refresh

I haven't used Bisq in a minute, but it's very cool to see it getting polished up a little. Here's a way to let two trading partners agree on which price oracle they want to trust.

Bisq pricenodes serve market reference prices over Tor but do not sign their responses. This script periodically fetches prices from a pricenode and publishes them as signed Nostr events, creating a verifiable trail that trading parties can reference to agree on a price.
Two parties trading P2P can use these attestations to agree on a reference price:
  1. Alice publishes an offer: "selling BTC at market price + 7%"
  2. Bob wants to accept. He queries the bot for the latest attestation, gets event abc123 with USD price 62,610
  3. Bob sends a TakeOffer to Alice including event abc123 as the price reference. The agreed price is 62,610 * 1.07 = 66,992 USD
  4. Alice fetches event abc123 from any relay, verifies the signature, timestamps, and confirms the price
Both parties trust the bot's public key, not each other or any relay.