hyperleger结构的idemix部分包含两种方法,NewNymSignature和NewSignature。有什么区别?

时间:2018-09-21 02:59:42

标签: go cryptography hyperledger-fabric hyperledger blockchain

在学习idemix的同时,我在fabric项目的idemix目录中找到了这两种方法。 从名称的角度来看,这两种方法都是对邮件进行签名,并且将使用NYM,不知道它们的区别是什么:

func NewSignature(cred *Credential, sk *FP256BN.BIG, Nym *FP256BN.ECP, RNym *FP256BN.BIG, ipk *IssuerPublicKey, Disclosure []byte, msg []byte, rhIndex int, cri *CredentialRevocationInformation, rng *amcl.RAND) (*Signature, error)

func NewNymSignature(sk *FP256BN.BIG, Nym *FP256BN.ECP, RNym *FP256BN.BIG, ipk *IssuerPublicKey, msg []byte, rng *amcl.RAND) (*NymSignature, error)

0 个答案:

没有答案
相关问题