fn parse_secp256k1_secret(hex: &String) -> error::Result<network::Secp256k1Secret> {
	H256::from_str(hex).map_err(invalid_node_key).and_then(|bytes|
		network::identity::secp256k1::SecretKey::from_bytes(bytes)
			.map(network::Secret::Input)
			.map_err(invalid_node_key))
}
/// Parse a Secp256k1 secret key from a hex string into a `network::Secret`.
Parse a Secp256k1 secret key from a hex string into a `network::Secret`.
Parse a Secp256k1 secret key from a hex string into a ` network :: Secret ` .
fn parse_secp256k1_secret(hex: &String) -> error::Result<network::Secp256k1Secret> {
	H256::from_str(hex).map_err(invalid_node_key).and_then(|bytes|
		network::identity::secp256k1::SecretKey::from_bytes(bytes)
			.map(network::Secret::Input)
			.map_err(invalid_node_key))
}
fn parse_secp256k1_secret ( hex : & String ) -> error :: Result < network :: Secp256k1Secret > { H256 :: from_str ( hex ) . map_err ( invalid_node_key ) . and_then ( | bytes | network :: identity :: secp256k1 :: SecretKey :: from_bytes ( bytes ) . map ( network :: Secret :: Input ) . map_err ( invalid_node_key ) ) }
Parse a Secp256k1 secret key from a hex string into a `network::Secret`.
Parse a Secp256k1 secret key from a hex string into a ` network :: Secret ` .
hex
&String
hex
&String