-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathenvelope_proto.rs
More file actions
27 lines (27 loc) · 1.27 KB
/
envelope_proto.rs
File metadata and controls
27 lines (27 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This file is @generated by prost-build.
/// Envelope encloses a signed payload produced by a peer, along with the public
/// key of the keypair it was signed with so that it can be statelessly validated
/// by the receiver.
///
/// The payload is prefixed with a byte string that determines the type, so it
/// can be deserialized deterministically. Often, this byte string is a
/// multicodec.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Envelope {
/// public_key is the public key of the keypair the enclosed payload was
/// signed with.
#[prost(bytes = "vec", tag = "1")]
pub public_key: ::prost::alloc::vec::Vec<u8>,
/// payload_type encodes the type of payload, so that it can be deserialized
/// deterministically.
#[prost(bytes = "vec", tag = "2")]
pub payload_type: ::prost::alloc::vec::Vec<u8>,
/// payload is the actual payload carried inside this envelope.
#[prost(bytes = "vec", tag = "3")]
pub payload: ::prost::alloc::vec::Vec<u8>,
/// signature is the signature produced by the private key corresponding to
/// the enclosed public key, over the payload, prefixing a domain string for
/// additional security.
#[prost(bytes = "vec", tag = "5")]
pub signature: ::prost::alloc::vec::Vec<u8>,
}