From vs receivedfrom in pubsub

What is the difference between from and receivedfrom in a pubsub message?

Is .from the originating node and .receivedfrom the node that last saw the message before the final hop?

How authentic are they (can they be spoofed)?

yes indeed - Message.From is the origin of the message and ReceivedFrom is the last hop.
ReceivedFrom is set internally for the peer that forwarded the message, so it cannot be spoofed.
And if you are using strict message signing (default) From cannot be spoofed either.

1 Like

i also saw the signature field and was going to ask how to use it. but if the message signing happens by default that’s amazing, this is really great tech. thank you! :raised_hands: