Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction
network p
@tranqui.eth
how is it possible to generate key metadata + sig ahead of time when registering rids/keys through the bundler — when you don’t know what the rid will be ahead of time since it is issued during the transaction?
1 reply
0 recast
1 reaction
horsefacts
@horsefacts.eth
The fid isn't part of the key registration signature, we use the owner address instead. So it really means "add key to this account's current FID": https://github.com/farcasterxyz/contracts/blob/dec97bd5cc89712d93ba18be40ae2ce057696f48/src/KeyGateway.sol#L32
1 reply
0 recast
1 reaction
network p
@tranqui.eth
but the fid is part of the signed key request validator check, which gets called by the key registry during runtime and requires u to have signed over the fid ahead of time? I was trying to piece this together on the published bundler tests but the fuzzing abstracts just enough of what’s happening for me to miss it
1 reply
0 recast
0 reaction
horsefacts
@horsefacts.eth
Ah, yeah. That fid identifies the entity *requesting to add the key*, e.g. Warpcast or Neynar or Supercast. So it's the fid of an app, not a user.
1 reply
0 recast
1 reaction
network p
@tranqui.eth
ah there it is! preciate u 😇
0 reply
0 recast
1 reaction