File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 57
57
//! Alternately, keys and messages can be parsed from slices, like
58
58
//!
59
59
//! ```rust
60
- //! use self:: secp256k1::{Secp256k1, Message, SecretKey, PublicKey};
60
+ //! use secp256k1::{Secp256k1, Message, SecretKey, PublicKey};
61
61
//!
62
62
//! let secp = Secp256k1::new();
63
63
//! let secret_key = SecretKey::from_slice(&[0xcd; 32]).expect("32 bytes, within curve order");
64
64
//! let public_key = PublicKey::from_secret_key(&secp, &secret_key);
65
65
//! // 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` .
67
67
//! let message = Message::from_slice(&[0xab; 32]).expect("32 bytes");
68
68
//!
69
69
//! let sig = secp.sign_ecdsa(&message, &secret_key);
You can’t perform that action at this time.
0 commit comments