public class IdemixSignature extends Object
Constructor and Description |
---|
IdemixSignature(org.hyperledger.fabric.protos.idemix.Idemix.Signature proto)
Construct a new signature from a serialized IdemixSignature
|
IdemixSignature(IdemixCredential c,
org.apache.milagro.amcl.FP256BN.BIG sk,
IdemixPseudonym pseudonym,
IdemixIssuerPublicKey ipk,
boolean[] disclosure,
byte[] msg,
int rhIndex,
org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation cri)
Create a new IdemixSignature by proving knowledge of a credential
|
Modifier and Type | Method and Description |
---|---|
org.hyperledger.fabric.protos.idemix.Idemix.Signature |
toProto()
Convert this signature to a proto
|
boolean |
verify(boolean[] disclosure,
IdemixIssuerPublicKey ipk,
byte[] msg,
org.apache.milagro.amcl.FP256BN.BIG[] attributeValues,
int rhIndex,
PublicKey revPk,
int epoch)
Verify this signature
|
public IdemixSignature(IdemixCredential c, org.apache.milagro.amcl.FP256BN.BIG sk, IdemixPseudonym pseudonym, IdemixIssuerPublicKey ipk, boolean[] disclosure, byte[] msg, int rhIndex, org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation cri)
c
- the credential used to create an idemix signaturesk
- the signer's secret keypseudonym
- a pseudonym of the signeripk
- the issuer public keydisclosure
- a bool-array that steers the disclosure of attributesmsg
- the message to be signedrhIndex
- the index of the attribute that represents the revocation handlecri
- the credential revocation information that allows the signer to prove non-revocationpublic IdemixSignature(org.hyperledger.fabric.protos.idemix.Idemix.Signature proto)
proto
- a protobuf object representing an IdemixSignaturepublic boolean verify(boolean[] disclosure, IdemixIssuerPublicKey ipk, byte[] msg, org.apache.milagro.amcl.FP256BN.BIG[] attributeValues, int rhIndex, PublicKey revPk, int epoch) throws CryptoException
disclosure
- an array indicating which attributes it expects to be disclosedipk
- the issuer public keymsg
- the message that should be signed in this signatureattributeValues
- BIG array where attributeValues[i] contains the desired attribute value for the i-th attribute if its disclosedrhIndex
- index of the attribute that represents the revocation-handlerevPk
- the long term public key used to authenticate CRIsepoch
- monotonically increasing counter representing a time windowCryptoException
public org.hyperledger.fabric.protos.idemix.Idemix.Signature toProto()
Copyright © 2020. All rights reserved.