Try   HackMD

fxhash IRL Payment Integration Proposal

tags: Autonomy fxhash

Direct pay to buy

Flow:

  1. User pays to buy a token using {Apple,Google} Pay.
  2. Autonomy server receives the payment receipts.
  3. Autonomy server makes request to fxhash API with a signature
    • centralized server to server call
  4. fxhash mints to the destination address
AppleBlockchainfxhashAu ServerAppUserAppleBlockchainfxhashAu ServerAppUserScan QR Code1IRL Page2Click to buy3Prompt Apple Pay4Pay5TX6Receipt7Prepare Mint8airdrop request9mint (fxhash contract)10ok11Wait token12New token13New token14New token15

Mint Pass

Term:

  • Mint pass: A token minted by Autonomy server. A user can use the token to redeem an artwork from fxhash

Flow:

  1. A user pay to by a mint pass using {Apple, Google} Pay.
  2. Autonomy server mints a mint pass to the user's address
  3. User signs a signature to spend the mint token
  4. App requests to fxhash API with a signature
    • App to fxhash direct call
  5. fxhash call to burn the mint pass
    • validate the signature from user
  6. fxhash call to mint to the destination address
AppleBlockchainfxhashAu ServerAppUserAppleBlockchainfxhashAu ServerAppUserPurchaseRedeemClick to buy1Prompt Apple Pay2Pay3TX4Receipt5Prepare Mint6Mint a mint pass (autonomy contract)7Wait confirmation8New token9New token10New token11Scan QR Code12IRL Page13Click to Redeem14Prompt sign to burn15Sign16airdrop request with  a signature for burn instructment17Burn mint pass (autonomy contract)18mint (fxhash contract)19sent20Listen new token21Push token to app22New token23