Content pfp
Content
@
0 reply
0 recast
0 reaction

Stephan pfp
Stephan
@stephancill
is the timestamp in farcaster frame messages supposed to be time since the farcaster epoch in seconds or milliseconds? can't find a formal definition on the spec page in the docs, but the example is in seconds and the makeFrameAction method in @farcaster/core also returns seconds https://docs.farcaster.xyz/developers/frames/spec#frame-signature-packet however, it seems like warpcast sends the timestamp in milliseconds who is right here? cc @horsefacts.eth
3 replies
1 recast
10 reactions

horsefacts pfp
horsefacts
@horsefacts.eth
The signed timestamp in the trustedData protobuf is a Farcaster timestamp (seconds since FC epoch). The unsigned timestamp in the untrustedData JSON is a JS timestamp (milliseconds since Unix epoch). Was meant to be convenient for users, just verify the protobuf and use the JS time without needing to convert from FC time. Docs are wrong, will update.
1 reply
0 recast
2 reactions

Stephan pfp
Stephan
@stephancill
got it ty!
0 reply
0 recast
0 reaction