github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/tinkcrypto/primitive/cl/blinder/cl_blinder_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 blinder 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/blinder" 17 18 clapi "github.com/hyperledger/aries-framework-go/pkg/crypto/tinkcrypto/primitive/cl/api" 19 ) 20 21 // NewBlinder returns a CL Blinder primitive from the given keyset handle. 22 func NewBlinder(h *keyset.Handle) (clapi.Blinder, error) { 23 return blinder.NewBlinder(h) 24 } 25 26 // NewBlinderWithKeyManager returns a CL Blinder primitive from the given keyset handle and custom key manager. 27 func NewBlinderWithKeyManager(h *keyset.Handle, km registry.KeyManager) (clapi.Blinder, error) { 28 return blinder.NewBlinderWithKeyManager(h, km) 29 }