I thought it might be easier to ask rather then plow through the code to discover how the element is derived.
@douglasrfix quoting the specs:
from field (optional) denotes the author of the message. This is the peer who initially authored the message, and NOT the peer who propagated it. Thus, as the message is routed through a swarm of pubsubbing peers, the original authorship is preserved.
This file has been truncated.
# PubSub interface for libp2p
> Generalized publish/subscribe interface for libp2p.
| Lifecycle Stage | Maturity | Status | Latest Revision |
| 3A | Recommendation | Active | r3, 2020-09-25 |
Authors: [@whyrusleeping], [@protolambda], [@raulk], [@vyzo].
Interest Group: [@yusefnapora], [@raulk], [@vyzo], [@Stebalien], [@jamesray1], [@vasco-santos]
Thanks. Got lost in the various docs twice and then called for help before I drowned.