[][src]Trait bls_sigs_ref_rs::BLSSignatureAug

pub trait BLSSignatureAug: BLSSigCore {
    const CSUITE: &'static [u8];
    const PK_LEN: usize;
    fn pk_bytes(pk: &Self::PKType, size_hint: usize) -> Vec<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 { ... } }

BLS signature with message augmentation

Associated Constants

const CSUITE: &'static [u8]

Ciphersuite tag

const PK_LEN: usize

Length of pubkey in bytes

Loading content...

Provided methods

fn pk_bytes(pk: &Self::PKType, size_hint: usize) -> Vec<u8>

turn a public key into a vector

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

augment message and then invoke coresign

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

augment message and then invoke coreverify

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

augment all messages and then invoke coreverify

Loading content...

Implementations on Foreign Types

impl BLSSignatureAug for G1[src]

impl BLSSignatureAug for G2[src]

Loading content...

Implementors

Loading content...