pub fn read_schnorr_pubkey<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<secp256k1_zkp::schnorrsig::PublicKey, lightning::ln::msgs::DecodeError> {
    let buf: [u8; 32] = Readable::read(reader)?;
    match secp256k1_zkp::schnorrsig::PublicKey::from_slice(&buf) {
        Ok(sig) => Ok(sig),
        Err(_) => Err(lightning::ln::msgs::DecodeError::InvalidValue),
    }
}
/// Reads a schnorr public key from the given reader.
Reads a schnorr public key from the given reader.
Reads a schnorr public key from the given reader .
pub fn read_schnorr_pubkey<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<secp256k1_zkp::schnorrsig::PublicKey, lightning::ln::msgs::DecodeError> {
    let buf: [u8; 32] = Readable::read(reader)?;
    match secp256k1_zkp::schnorrsig::PublicKey::from_slice(&buf) {
        Ok(sig) => Ok(sig),
        Err(_) => Err(lightning::ln::msgs::DecodeError::InvalidValue),
    }
}
pub fn read_schnorr_pubkey < R : :: std :: io :: Read > ( reader : & mut R , ) -> Result < secp256k1_zkp :: schnorrsig :: PublicKey , lightning :: ln :: msgs :: DecodeError > { let buf : [ u8 ; 32 ] = Readable :: read ( reader ) ? ; match secp256k1_zkp :: schnorrsig :: PublicKey :: from_slice ( & buf ) { Ok ( sig ) => Ok ( sig ) , Err ( _ ) => Err ( lightning :: ln :: msgs :: DecodeError :: InvalidValue ) , } }
Reads a schnorr public key from the given reader.
Reads a schnorr public key from the given reader .
reader
&mut R