[][src]Trait bls12_381_ietf::G2Basic

pub trait G2Basic: BaseG2Ciphersuite {
    const DST: &'static str;

    fn sign(
        secret_key: Self::BLSSecretKey,
        message: &[u8]
    ) -> Self::BLSSignature;
fn verify(
        public_key: &Self::BLSPublicKey,
        message: &[u8],
        signature: &Self::BLSSignature
    ) -> Result<bool, GroupDecodingError>; }

Associated Constants

const DST: &'static str

Loading content...

Required methods

fn sign(secret_key: Self::BLSSecretKey, message: &[u8]) -> Self::BLSSignature

fn verify(
    public_key: &Self::BLSPublicKey,
    message: &[u8],
    signature: &Self::BLSSignature
) -> Result<bool, GroupDecodingError>

Loading content...

Implementations on Foreign Types

impl G2Basic for Bls12[src]

Loading content...

Implementors

Loading content...