pub fn sign_using_bls<T: AsRef<[u8]>>(&self, data: T) -> Option<Signature> {
        self.bls.as_ref().map(|keys| {
            Signature::BlsShare(SignatureShare {
                index: keys.index,
                share: keys.secret.inner().sign(data),
            })
        })
    }
/// Creates a detached BLS signature share of `data` if the `self` holds a BLS keypair share.
Creates a detached BLS signature share of `data` if the `self` holds a BLS keypair share.
Creates a detached BLS signature share of ` data ` if the ` self ` holds a BLS keypair share .
pub fn sign_using_bls<T: AsRef<[u8]>>(&self, data: T) -> Option<Signature> {
        self.bls.as_ref().map(|keys| {
            Signature::BlsShare(SignatureShare {
                index: keys.index,
                share: keys.secret.inner().sign(data),
            })
        })
    }
pub fn sign_using_bls < T : AsRef < [ u8 ] > > ( & self , data : T ) -> Option < Signature > { self . bls . as_ref ( ) . map ( | keys | { Signature :: BlsShare ( SignatureShare { index : keys . index , share : keys . secret . inner ( ) . sign ( data ) , } ) } ) }
Creates a detached BLS signature share of `data` if the `self` holds a BLS keypair share.
Creates a detached BLS signature share of ` data ` if the ` self ` holds a BLS keypair share .
&self
data
T
&self
data
T