Dan Romero pfp
Dan Romero
@dwr.eth
.@nickcherry sharing wisdom on our web app approach https://warpcast.com/nickcherry/0xad3d16
1 reply
0 recast
0 reaction

vincent pfp
vincent
@pixel
I see cast hashes only takes three bytes (0xa35c instead of the long string). How is that resolved to the long hash, with `string.startsWith()`?
2 replies
0 recast
0 reaction

Shane da Silva pfp
Shane da Silva
@sds
Yes, it's just a prefix match. Since the protocol allows up to 10K casts per user (before old casts start getting automatically pruned) we ended up being comfortable with the relatively small chance of a collision generated for a single user. Worst case, you can always add a few more characters, similar to Git.
1 reply
0 recast
0 reaction

vincent pfp
vincent
@pixel
The short hashes look clean, I like it!
0 reply
0 recast
0 reaction