Content pfp
Content
@
0 reply
0 recast
0 reaction

davisshaver.eth pfp
davisshaver.eth
@davisshaver
is there a sample implementation of VerifyAppKey anywhere? All I've found is the `verifyAppKeyWithNeynar` helper in @farcaster/frame-node.
1 reply
1 recast
6 reactions

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
are you looking to do it with your own hub?
1 reply
0 recast
1 reaction

davisshaver.eth pfp
davisshaver.eth
@davisshaver
This would be for Farcaster WP plugin – I feel like I should offer users the option of either using a custom hub URL or using Neynar.
2 replies
0 recast
1 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
Got it, I don’t think we wrote one for a hub but we certainly should! If you want to open a PR we can review it and add it, otherwise I’ll add it to our backlog
1 reply
0 recast
1 reaction

davisshaver.eth pfp
davisshaver.eth
@davisshaver
PR seems doable (I'll be doing this in PHP but don't mind contributing). I think the check could be that `onChainSignersByFid` response includes an object where `signerEventBody.key` matches `header.key`. does that seem right? would this logic work for both custody and app_key types?
1 reply
0 recast
1 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
type = app_key validation will be check onChainSignersByFid type = custody validation will check the FID's registered FID (could use a hub or directly look at the IdRegistry contract on OP Mainnet)
1 reply
0 recast
1 reaction

davisshaver.eth pfp
davisshaver.eth
@davisshaver
I'd like to use a hub if possible, otherwise I'll need to have users add a RPC URL too. would custody logic be that `verificationsByFid` includes a message where `signer` matches `header.key`?
0 reply
0 recast
0 reaction