During the town hall, I thought I overheard the DAO was going to create an e-commerce store. Figured for members merch should be at cost or a discount, hence the problem of authentication.
The idea would be an app that reads a MetaMask or any wallet, checks for an asset in that wallet (a coin or an NFT) and then applies some sort of incentive (discount, custom merch) for that user.
Could be a way for DAOs to build retail partnerships as well.
The base use case would be to create an e-commerce shop for the DAO, have the app read MetaMask etc for the NFT and apply a discount. We could then use the profits from non-DAO members to fund the treasury.
Would love to hear feedback and/or connect with anyone who may be interested in building this with me!
Nice idea! This looks like it could be a plug & play library that adds the extra metamask-check feature to existing UIs.
Though it got me wondering how we’d able to apply a discount in case the user actually owns the required asset. The discount creation would still need to be centralized on the main app’s backend, right? (Not entirely familiar with how Shopify works, maybe there’s an existing solution to this)
Would the UI calling this lib request a message signature of some sort and then perform a server request to get the discount?
My concern is that we can’t trust validations made exclusively on the UI (cuz someone might check the code and reverse engineer it).
I understand I can connect my wallet, have the UI check if my wallet matches the criteria and then I’m eligible and the UI can fetch the discount from the server.
My trust issue lies here: what’s the parameter(s) that the server gets that’ll allow it to trust the UI and send the discount back?
A signed message and the public key, maybe? Then the server would check the signed message (proving the user is the effective owner of that public key) and then check if the wallet corresponding to that public key effectively matches the criteria.
I’m still getting started on web3, so bear with me if any of this should be obvious
I love the sound of this. I’ve done some work with the Shopify Api in the past and its definitely programmatically possible to pull off, and open to discuss more
Hi @jaredflomen - would love to be a part of this. Remember Shopify’s CEO RT’ing about the MM integration coming soon to shopify, are you guys onto some beta access for the same or are we routing entirely via JS & Shopify APIs?