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
2 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’t figure it out. Too much code, can you pinpoint to exactly where verification happens? It all would make sense if dataBytes weren’t 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