The Envelope is responsible for keeping an arbitrary signed record by a libp2p peer.
OptionalmarshaledThe contents of the envelope
How the payload should be interpreted
The public key of the keypair used to sign the payload
A signature that can be used to verify the payload is intact
Verifies if the other Envelope is identical to this one
Optionalother: EnvelopeMarshal the envelope content
Validate envelope data signature for the given domain
Optionaloptions: AbortOptionsStaticcreateUnmarshal a serialized Envelope protobuf message
StaticopenOpen and certify a given marshaled envelope. Data is unmarshaled and the signature validated for the given domain.
Optionaloptions: AbortOptionsStaticsealSeal marshals the given Record, places the marshaled bytes inside an Envelope and signs it with the given peerId's private key
Optionaloptions: AbortOptions
A message with a signed payload.