github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/tinkcrypto/primitive/bbs/bbs_verifier_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 // NewVerifier returns a Verifier primitive from the given keyset handle. 19 func NewVerifier(h *keyset.Handle) (bbsapi.Verifier, error) { 20 return bbs.NewVerifier(h) 21 } 22 23 // NewVerifierWithKeyManager returns a Verifier primitive from the given keyset handle and custom key manager. 24 func NewVerifierWithKeyManager(h *keyset.Handle, km registry.KeyManager) (bbsapi.Verifier, error) { 25 return bbs.NewVerifierWithKeyManager(h, km) 26 }