Skip to content

Commit

Permalink
fix out-dated docs for error packet example
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Sep 27, 2024
1 parent cb37c75 commit f06ebc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();
///
/// // 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());
/// ```
Expand Down

0 comments on commit f06ebc6

Please sign in to comment.