pub fn read_schnorr_pubkeys<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<Vec<secp256k1_zkp::schnorrsig::PublicKey>, DecodeError> {
    let len: u16 = Readable::read(reader)?;
    let byte_size = (len as usize)
        .checked_mul(secp256k1_zkp::constants::SCHNORRSIG_PUBLIC_KEY_SIZE)
        .ok_or(DecodeError::BadLengthDescriptor)?;
    if byte_size > lightning::util::ser::MAX_BUF_SIZE {
        return Err(DecodeError::BadLengthDescriptor);
    }
    let mut ret = Vec::with_capacity(len as usize);
    for _ in 0..len {
        ret.push(read_schnorr_pubkey(reader)?);
    }
    Ok(ret)
}
/// Reads a set of schnorr public keys from the given reader.
Reads a set of schnorr public keys from the given reader.
Reads a set of schnorr public keys from the given reader .
pub fn read_schnorr_pubkeys<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<Vec<secp256k1_zkp::schnorrsig::PublicKey>, DecodeError> {
    let len: u16 = Readable::read(reader)?;
    let byte_size = (len as usize)
        .checked_mul(secp256k1_zkp::constants::SCHNORRSIG_PUBLIC_KEY_SIZE)
        .ok_or(DecodeError::BadLengthDescriptor)?;
    if byte_size > lightning::util::ser::MAX_BUF_SIZE {
        return Err(DecodeError::BadLengthDescriptor);
    }
    let mut ret = Vec::with_capacity(len as usize);
    for _ in 0..len {
        ret.push(read_schnorr_pubkey(reader)?);
    }
    Ok(ret)
}
pub fn read_schnorr_pubkeys < R : :: std :: io :: Read > ( reader : & mut R , ) -> Result < Vec < secp256k1_zkp :: schnorrsig :: PublicKey > , DecodeError > { let len : u16 = Readable :: read ( reader ) ? ; let byte_size = ( len as usize ) . checked_mul ( secp256k1_zkp :: constants :: SCHNORRSIG_PUBLIC_KEY_SIZE ) . ok_or ( DecodeError :: BadLengthDescriptor ) ? ; if byte_size > lightning :: util :: ser :: MAX_BUF_SIZE { return Err ( DecodeError :: BadLengthDescriptor ) ; } let mut ret = Vec :: with_capacity ( len as usize ) ; for _ in 0 .. len { ret . push ( read_schnorr_pubkey ( reader ) ? ) ; } Ok ( ret ) }
Reads a set of schnorr public keys from the given reader.
Reads a set of schnorr public keys from the given reader .
reader
&mut R