5/9 pfp
5/9
@fiveoutofnine.eth
thinking about how to authenticate `msg.sender` on-chain as someone that controls a given `_fid`: 1. query dune for all (fid, verified address) pairs (updated via neynar) 2. generate merkle tree over all w/ keccak256(fid, address) 3. host API and/or publish this somewhere for free am I missing something
8 replies
3 recasts
19 reactions

horsefacts 🚂 pfp
horsefacts 🚂
@horsefacts.eth
the main challenge is that verifications change over time. so you'd need to keep the root updated as users add or remove individual verifications. a public Merkle mountain range could be good for this. but for something like a one-time mint, probably OK to use a snapshot from a specific point in time.
1 reply
0 recast
2 reactions

5/9 pfp
5/9
@fiveoutofnine.eth
I think if the pattern becomes common it's ok to have some trusted server updating it like every 12/24 hours; worldcoin does this for their verified accounts I think
1 reply
0 recast
2 reactions

5/9 pfp
5/9
@fiveoutofnine.eth
(spitballing) TEE to update it and anyone can fund the address as needed for gas fees?
1 reply
0 recast
1 reaction