github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/tinkcrypto/primitive/bbs/subtle/bls12381g2_verifier.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package subtle 8 9 import ( 10 "github.com/hyperledger/aries-framework-go/component/kmscrypto/crypto/tinkcrypto/primitive/bbs/subtle" 11 ) 12 13 // BLS12381G2Verifier is the BBS+ signature/proof verifier for keys on BLS12-381 curve with a point in the G2 group. 14 // Currently this is the only available BBS+ verifier in aries-framework-go (see `pkg/doc/bbs/bbs12381g2pub/bbs.go`). 15 // Other BBS+ verifiers can be added later if needed. 16 type BLS12381G2Verifier = subtle.BLS12381G2Verifier 17 18 // NewBLS12381G2Verifier creates a new instance of BLS12381G2Verifier with the provided signerPublicKey. 19 func NewBLS12381G2Verifier(signerPublicKey []byte) *BLS12381G2Verifier { 20 return subtle.NewBLS12381G2Verifier(signerPublicKey) 21 }