Build > Scrypto > Cryptography > BLS12-381 — View on GitHub
BLS12-381 implemented in Scrypto is compliant with following standards:
It uses ciphersuite BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_ , which translates into:
Signature G2 variant (size 96 bytes)
Public key G1 variant (size 48 bytes)
Signature scheme POP (proof of possession)
Following methods are implemented within CryptoUtils module:
bls12381_v1_verify() - Verify a G2 signature of given message with given public key
bls12381_v1_aggregate_verify() - Verify an aggregated G2 signature using given vector of messages and public key tuples
bls12381_v1_fast_aggregate_verify() - Verify an aggregated G2 signature using a given message with given multiple keys
bls12381_g2_signature_aggregate() - Aggregate multiple G2 signatures into a single one
See the examples below:
use 