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