github.com/hyperledger/aries-framework-go@v0.3.2/pkg/crypto/primitive/bbs12381g2pub/proof_of_knowledge.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package bbs12381g2pub 8 9 import ( 10 bbs "github.com/hyperledger/aries-framework-go/component/kmscrypto/crypto/primitive/bbs12381g2pub" 11 ) 12 13 // PoKOfSignature is Proof of Knowledge of a Signature that is used by the prover to construct PoKOfSignatureProof. 14 type PoKOfSignature = bbs.PoKOfSignature 15 16 // NewPoKOfSignature creates a new PoKOfSignature. 17 func NewPoKOfSignature(signature *Signature, messages []*SignatureMessage, revealedIndexes []int, 18 pubKey *PublicKeyWithGenerators) (*PoKOfSignature, error) { 19 return bbs.NewPoKOfSignature(signature, messages, revealedIndexes, pubKey) 20 } 21 22 // ProverCommittedG1 helps to generate a ProofG1. 23 type ProverCommittedG1 = bbs.ProverCommittedG1 24 25 // ProverCommittingG1 is a proof of knowledge of messages in a vector commitment. 26 type ProverCommittingG1 = bbs.ProverCommittingG1