hscrypto: Improve documentation for RendCookie

This commit is contained in:
Nick Mathewson 2023-01-19 08:43:59 -05:00
parent 49afcafadd
commit 44e9d31af9
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ pub struct Subcredential([u8; 32]);
pub struct RevisionCounter(u64);
define_bytes! {
/// An opaque value used by an onion service
/// An opaque value used at a rendezvous point to match clients and services.
///
/// The client includes this value to the rendezvous point in its
/// `ESTABLISH_RENDEZVOUS` message; the service later provides the same value in its
/// `RENDEZVOUS1` message.
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct RendCookie([u8; 20]);
}