From f06ebc6d84697929c9f1137a1369385e449c061d Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 27 Sep 2024 10:58:44 +0800 Subject: [PATCH] fix out-dated docs for error packet example --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c432449..dbef095 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,7 +131,7 @@ pub struct OnionPacket { /// let session_key = SecretKey::from_slice(&[0x41; 32]).expect("32 bytes, within curve order"); /// let hops_ss = OnionSharedSecretIter::new(hops_path.iter(), session_key, &secp).collect::>(); /// -/// // The node [0x21; 32] generates the error +/// // The node 0324653...0ab1c generates the error /// let shared_secret = hops_ss[1]; /// let error_packet = OnionErrorPacket::create(&shared_secret, b"error message".to_vec()); /// ```