[][src]Trait bls_sigs_ref::BLSSignatureBasic

pub trait BLSSignatureBasic: BLSSigCore {
    const CSUITE: &'static [u8];
    fn sign<B: AsRef<[u8]>>(x_prime: Self::Scalar, msg: B) -> Self { ... }
fn verify<B: AsRef<[u8]>>(pk: Self::PKType, sig: Self, msg: B) -> bool { ... }
fn aggregate_verify<B: AsRef<[u8]>>(
        pks: &[Self::PKType],
        msgs: &[B],
        sig: Self
    ) -> bool { ... } }

'Basic' BLS signature

Associated Constants

const CSUITE: &'static [u8]

Ciphersuite tag

Loading content...

Provided methods

fn sign<B: AsRef<[u8]>>(x_prime: Self::Scalar, msg: B) -> Self

re-export from BLSSigCore

fn verify<B: AsRef<[u8]>>(pk: Self::PKType, sig: Self, msg: B) -> bool

re-export from BLSSigCore

fn aggregate_verify<B: AsRef<[u8]>>(
    pks: &[Self::PKType],
    msgs: &[B],
    sig: Self
) -> bool

check for uniqueness of msgs, then invoke verify from BLSSigCore

Loading content...

Implementations on Foreign Types

impl BLSSignatureBasic for G1[src]

impl BLSSignatureBasic for G2[src]

Loading content...

Implementors

Loading content...