guldcoin / io-http-guld.io

Guld.io website
MIT License
0 stars 2 forks source link

GULD P2P SALES CONTRACT INTERFACE #39

Open ferdreyfus opened 6 years ago

ferdreyfus commented 6 years ago

Objective

We need to build and deploy a simple user interface to allow the purchase of GULD using BTC via valid, legal P2P smart contracts that will be executed, signed and validated with the process we will develop.

This widget will allow 2 parties to initiate a contract, fill variables, sign and validate contract details and obtain a time sensitive address for the sales process to be fulfilled.

HTML and JS purchase contract widget.

This will obtain from buyer:

  1. DATE 1 - Date of purchase
  2. PARTY 1 - Seller - from the Oficial Guld Queue.
  3. PARTY 2 - Buyer - from field GULD USER NAME
  4. PARTY 1 Account Type - Assume individual for now
  5. PARTY 1 Key - PGP Fingerprint
  6. PARTY 2 Key - From Official sales channel queue
  7. PARTY 1 COUNTRY - We'll have to collect country from both parties and neither can be in North Korea or Iran
  8. PARTY 2 COUNTRY
  9. DATE 2 - Day of Delivery of assets. - assume 15 minute window
  10. QUANTITY - Cuantity of asset from Input

Order in which the data will be gathered.

  1. Prior to initiating contract, PARTY1 and PARTY2 register addresses on guld for the two currencies.
  2. PARTY1 signs partial variable list, leaving out PARTY2, PRICE_UNIT, PRICE_TOTAL, and LOCATION3
  3. PARTY2 fills in the missing variables using oracle for price
  4. PARTY2 reserves one of PARTY1's addresses for 10-20 minutes, depending on the current time.
  5. PARTY2 sends sufficient funds to address from #3
  6. Upon confirmed receipt of funds, PARTY1 must transfer the GOODS1 to LOCATION3. If this is a guld-ledger transaction, either party may do this.

Tasks

polarweasel commented 6 years ago

End of the second paragraph: "If" what?

ferdreyfus commented 6 years ago

Typo was edited. Thanks!