Content pfp
Content
@
0 reply
0 recast
0 reaction

Vladyslav Dalechyn pfp
Vladyslav Dalechyn
@dalechyn.eth
How to verify a message from Hub on client side? I see the `dataBytes` generated from the protobufs [pic1] but it always returns nothing [pic2]. Should I JSON stringify the message data? It can contain bigints so that wouldn't be serializable. What then?
4 replies
0 recast
3 reactions

Samuel pfp
Samuel
@samuellhuber.eth
How to validate messages https://github.com/farcasterxyz/hub-monorepo/blob/main/apps/hubble/src/storage/jobs/validateOrRevokeMessagesJob.ts Message utilities https://github.com/farcasterxyz/hub-monorepo/blob/main/apps/hubble/src/storage/db/message.ts
1 reply
0 recast
2 reactions

Vladyslav Dalechyn pfp
Vladyslav Dalechyn
@dalechyn.eth
Tbh didn鈥檛 figure it out. Too much code, can you pinpoint to exactly where verification happens? It all would make sense if dataBytes weren鈥檛 null - I wonder how I need to transform the data to correctly verify it. @horsefacts.eth maybe you can help with this?
2 replies
0 recast
0 reaction

Samuel pfp
Samuel
@samuellhuber.eth
Cc @sanjay
1 reply
0 recast
2 reactions

Samuel pfp
Samuel
@samuellhuber.eth
/** * Check if any signers for this FID have changed since the last time the job ran, and if so, * validate or revoke any messages that are affected. */ https://github.com/farcasterxyz/hub-monorepo/blob/3955dba3e0d665bd928a77fe04e835e749fa9f48/apps/hubble/src/storage/jobs/validateOrRevokeMessagesJob.ts#L169
1 reply
0 recast
0 reaction