File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5757//! Alternately, keys and messages can be parsed from slices, like
5858//!
5959//! ```rust
60- //! use self:: secp256k1::{Secp256k1, Message, SecretKey, PublicKey};
60+ //! use secp256k1::{Secp256k1, Message, SecretKey, PublicKey};
6161//!
6262//! let secp = Secp256k1::new();
6363//! let secret_key = SecretKey::from_slice(&[0xcd; 32]).expect("32 bytes, within curve order");
6464//! let public_key = PublicKey::from_secret_key(&secp, &secret_key);
6565//! // This is unsafe unless the supplied byte slice is the output of a cryptographic hash function.
66- //! // See the above example for how to use this library together with bitcoin_hashes.
66+ //! // See the above example for how to use this library together with ` bitcoin_hashes` .
6767//! let message = Message::from_slice(&[0xab; 32]).expect("32 bytes");
6868//!
6969//! let sig = secp.sign_ecdsa(&message, &secret_key);
You can’t perform that action at this time.
0 commit comments