B2Bitcoin / beBOP

Marvelous p2p bitcoin-based online sales platform
https://be-bop.io
GNU Affero General Public License v3.0
15 stars 3 forks source link

Verify signed message from public key, message & signature to cash-in / cash-out #220

Open Tirodem opened 1 year ago

Tirodem commented 1 year ago

211

Basically https://www.verifybitcoinmessage.com/ done by the Bootik With https://www.geeksforgeeks.org/node-js-crypto-verify-function/

First applications before NFT-like features :

general message signature form on beBOP

As message signature is often done on wallet, I show the mobile version of the shop : image image

example message signature on wallet app

Here with Mycelium Testnet on mobile : 1/ Choose wallet image 2/ Click left-top icon then "Signer un message" : image 3/ Choose your signature key (honestly I took the first and it works, I don't know how Mycelium manage them, we'll have to improve this point with documentation and other wallets) image 4/ type the random key message given by beBOP image Was this on previous screenshot, beBOP side : image 5/ copy infos & paste them on beBOP (adress + signature) image

1/ Crypto-admin creation (when initializing shop)

crypto-admin != super-admin :

2/ Target cash-out address

On admin/transactions : You must log as crypto-admin to edit this form Click on red CTA = message signature check with the crypto-admin wallet image

3/ Bitcoin node & Lightning cash-out CTAs

Click on red CTA = message signature check with the crypto-admin wallet image image Note here that we can imagine "Cash in" button creating ready to scan QR code (or juste display the shop wallet QR Code) in order to shopowner to deposit sats on shop account. (partially related to #291 and #292)

coyotte508 commented 1 year ago

0.5 days?