diff --git a/src/lib.rs b/src/lib.rs index ac3dfd4..3507eed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,7 +78,8 @@ //! # Ok::<(), ProtocolError>(()) //! ``` //! The server must persist an instance of [ServerSetup] for the registration -//! and login steps. +//! and login steps, and can use [ServerSetup::serialize] and +//! [ServerSetup::deserialize] to save and restore the instance. //! //! ## Registration //! The registration protocol between the client and server consists of four diff --git a/src/opaque.rs b/src/opaque.rs index 737739e..63a132a 100644 --- a/src/opaque.rs +++ b/src/opaque.rs @@ -224,6 +224,10 @@ where Le<< as CoreProxy>::Core as BlockSizeUser>::BlockSize, U256>: NonZero, { /// Create [`ServerSetup`] with the given keypair + /// + /// This function should not be used to restore a previously-existing + /// instance of [ServerSetup]. Instead, use [ServerSetup::serialize] and + /// [ServerSetup::deserialize] for this purpose. pub fn new_with_key( rng: &mut R, keypair: KeyPair,