1 // This file is Copyright its original authors, visible in version control
4 // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5 // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7 // You may not use this file except in accordance with one or both of these
10 macro_rules! hash_to_message {
15 ::bitcoin::secp256k1::Message::from_slice($slice).unwrap()
19 match ::bitcoin::secp256k1::Message::from_slice($slice) {
21 Err(_) => ::bitcoin::secp256k1::Message::from_slice(&[1; 32]).unwrap()