Advanced
​woj@woj.eth
10/2/2023

what was the process for you to setup a signer that i used to write in the app now?

In reply to @woj.eth
10/2/2023

first i got a new fid from dwr and v for farcord: https://warpcast.com/farcord

In reply to @woj.eth
10/2/2023

then, whenever a new user wants to connect their wallet you need to: 1. create a signer, which is basically creating a keypair: private and public key (using js package @noble/ed25519 for this)

In reply to @woj.eth
10/2/2023

2. you need to create and sign (using your app's wallet) a SignedKeyRequest (more on this soon) stating a connection between the signer created on step 1 and your app.

In reply to @woj.eth
10/2/2023

3. ask the user to submit that on-chain

In reply to @woj.eth
10/2/2023

for steps 2 and 3 I'm using wagmi and viem

In reply to @woj.eth
10/2/2023

another good resource was @stephan's opencast implementation:

In reply to @woj.eth
​woj@woj.eth
10/2/2023

golden, thanks

In reply to @woj.eth
​woj@woj.eth
10/2/2023

what was the most painful part of the experience?

In reply to @woj.eth
10/2/2023

I got stuck for a while between steps 2 and 3. took me some time to fully understand the signing had to be done by the app's wallet (not the user) and that created some odd errors when trying to submit on-chain

In reply to @woj.eth
10/2/2023

oh also testing was a pain.. had to submit a bunch of transactions on-chain to fully test the flow. it's only a few cents here and there, but it was quite annoying. also had to clean that all up afterwards

In reply to @woj.eth
10/2/2023

I think good docs and a start to end tutorial would go a long way for other devs to do the same. warpcast and neynar have partial docs if you wanna use their APIs, but otherwise, very little info out there