github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/tinkcrypto/primitive/bbs/bbs_signer_factory.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package bbs 8 9 import ( 10 "github.com/google/tink/go/core/registry" 11 "github.com/google/tink/go/keyset" 12 13 "github.com/hyperledger/aries-framework-go/component/kmscrypto/crypto/tinkcrypto/primitive/bbs" 14 15 bbsapi "github.com/hyperledger/aries-framework-go/pkg/crypto/tinkcrypto/primitive/bbs/api" 16 ) 17 18 // NewSigner returns a BBS Signer primitive from the given keyset handle. 19 func NewSigner(h *keyset.Handle) (bbsapi.Signer, error) { 20 return bbs.NewSigner(h) 21 } 22 23 // NewSignerWithKeyManager returns a BBS Signer primitive from the given keyset handle and custom key manager. 24 func NewSignerWithKeyManager(h *keyset.Handle, km registry.KeyManager) (bbsapi.Signer, error) { 25 return bbs.NewSignerWithKeyManager(h, km) 26 }