github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/tinkcrypto/primitive/bbs/subtle/bls12381g2_signer.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  // BLS12381G2Signer is the BBS+ signer for BLS12-381 curve for keys on a G2 group.
    14  // Currently this is the only available BBS+ signer in aries-framework-go (see `pkg/doc/bbs/bbs12381g2pub/bbs.go`).
    15  // Other BBS+ signers can be added later if needed.
    16  type BLS12381G2Signer = subtle.BLS12381G2Signer
    17  
    18  // NewBLS12381G2Signer creates a new instance of BLS12381G2Signer with the provided privateKey.
    19  func NewBLS12381G2Signer(privateKey []byte) *BLS12381G2Signer {
    20  	return subtle.NewBLS12381G2Signer(privateKey)
    21  }