Content pfp
Content
@
0 reply
0 recast
0 reaction

Noah Bragg 🔥 pfp
Noah Bragg 🔥
@nbragg
So I have a script that onboards users by whitelisting them onchain when they sign up. What's the best way to handle this if a ton of new users sign up at once? Put them on a queue and run the txs one at a time? and then just let the user know in the ui when it's done. Would this work? better options? Thanks!
7 replies
7 recasts
44 reactions

Harris pfp
Harris
@harris-
Update a single merkle root then submit the proof of the user's inclusion in their signup. For any list update you change a single 32 byte storage slot which can be used to validate any number of users, all existing and future users accounted for as well because the leaves just append onto the set. Similar to how nft launches worked back in the day. Your ability to allow new users is tied to your ability to update that value and keep the list in sync for the clients trying to generate and submit proofs
0 reply
0 recast
0 reaction