Backend interface for BLS12-381 signing/verification/aggregation.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
aggregatePublicKeysG1(
List< List< publicKeys) → BuBytesint> > -
Sums non-empty
publicKeys(G1) into 48-byte compressed aggregate. Throws on empty list or crypto failure. -
aggregatePublicKeysG2(
List< List< publicKeys) → BuBytesint> > -
Sums non-empty
publicKeys(G2) into 96-byte compressed aggregate. Throws on empty list or crypto failure. -
aggregateSignaturesG1(
List< Bls12G1Signature> signatures) → Bls12G1Signature -
Sums non-empty G2
signaturesinto one min-pk aggregate signature. Throws on empty list or crypto failure. -
aggregateSignaturesG2(
List< Bls12G2Signature> signatures) → Bls12G2Signature -
Sums non-empty G1
signaturesinto one min-sig aggregate signature. Throws on empty list or crypto failure. -
aggregateVerifyMinPk(
{required List< List< publicKeys, required List<int> >List< messages, required Bls12G1Signature signature, List<int> >int> ? dst}) → bool -
Distinct messages, many min-pk keys, one aggregated G2 signature;
publicKeysandmessagesmust share non-zero length. Returns true on valid, false on invalid, throws on length mismatch or crypto failure. -
aggregateVerifyMinSig(
{required List< List< publicKeys, required List<int> >List< messages, required Bls12G2Signature signature, List<int> >int> ? dst}) → bool -
Distinct messages, many min-sig keys, one aggregated G1 signature;
publicKeysandmessagesmust share non-zero length. Returns true on valid, false on invalid, throws on length mismatch or crypto failure. -
batchVerifyMinPk(
{required List< List< publicKeys, required List<int> >List< messages, required List<int> >Bls12G1Signature> signatures, List<int> ? dst}) → bool - One message/signature per min-pk key; all three lists must share non-zero length. Returns true on all-valid, false otherwise, throws on length mismatch or crypto failure.
-
batchVerifyMinSig(
{required List< List< publicKeys, required List<int> >List< messages, required List<int> >Bls12G2Signature> signatures, List<int> ? dst}) → bool - One message/signature per min-sig key; all three lists must share non-zero length. Returns true on all-valid, false otherwise, throws on length mismatch or crypto failure.
-
fastAggregateVerifyMinPk(
{required List< int> aggregatePublicKey, required List<int> message, required Bls12G1Signature signature, List<int> ? dst}) → bool - Same message, many min-pk public keys, one aggregated G2 signature.
-
fastAggregateVerifyMinSig(
{required List< int> aggregatePublicKey, required List<int> message, required Bls12G2Signature signature, List<int> ? dst}) → bool - Same message, many min-sig public keys, one aggregated G1 signature.
-
normalizeG1PublicKey(
List< int> publicKey) → BuBytes? -
Validates 48/96-byte G1
publicKeyand returns its canonical 48-byte compressed base encoding, or null when invalid (bad prefix, range, curve membership, or identity). -
normalizeG2PublicKey(
List< int> publicKey) → BuBytes? -
Validates 96/192-byte G2
publicKeyand returns its canonical 96-byte compressed base encoding, or null when invalid (bad prefix, range, curve membership, or identity). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publicKeyG1(
List< int> sk) → BuBytes -
Derives 48-byte compressed G1 public key from 32-byte big-endian
sk. Throws on invalid length/scalar. -
publicKeyG2(
List< int> sk) → BuBytes -
Derives 96-byte compressed G2 public key from 32-byte big-endian
sk. Throws on invalid length/scalar. -
signMinPk(
{required List< int> sk, required List<int> message, List<int> ? dst}) → Bls12G1Signature -
Minimal-pubkey-size sign: 32-byte big-endian
sk, arbitrarymessage, optionaldst. Returns G2 signature. Throws on invalid sk. -
signMinSig(
{required List< int> sk, required List<int> message, List<int> ? dst}) → Bls12G2Signature -
Minimal-signature-size sign: 32-byte big-endian
sk, arbitrarymessage, optionaldst. Returns G1 signature. Throws on invalid sk. -
toString(
) → String -
A string representation of this object.
inherited
-
verifyMinPk(
{required List< int> pk, required List<int> message, required Bls12G1Signature signature, List<int> ? dst}) → bool -
Min-pk verify: G1
pk,message, G2signature, optionaldst. Returns true on valid, false on invalid signature, throws on crypto failure. -
verifyMinSig(
{required List< int> pk, required List<int> message, required Bls12G2Signature signature, List<int> ? dst}) → bool -
Min-sig verify: G2
pk,message, G1signature, optionaldst. Returns true on valid, false on invalid signature, throws on crypto failure.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited