The Envelope is responsible for keeping an arbitrary signed record by a libp2p peer.
Optional
marshaledThe 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
Optional
other: EnvelopeMarshal the envelope content
Validate envelope data signature for the given domain
Static
createUnmarshal a serialized Envelope protobuf message
Static
openOpen and certify a given marshaled envelope. Data is unmarshaled and the signature validated for the given domain.
Static
sealSeal marshals the given Record, places the marshaled bytes inside an Envelope and signs it with the given peerId's private key
A message with a signed payload.