public class IdemixCredential extends Object
Constructor and Description |
---|
IdemixCredential(org.hyperledger.fabric.protos.idemix.Idemix.Credential proto)
Construct an IdemixCredential from a serialized credential
|
Modifier and Type | Method and Description |
---|---|
byte[][] |
getAttrs() |
boolean |
verify(org.apache.milagro.amcl.FP256BN.BIG sk,
IdemixIssuerPublicKey ipk)
verify cryptographically verifies the credential
|
public IdemixCredential(org.hyperledger.fabric.protos.idemix.Idemix.Credential proto)
proto
- a protobuf representation of a credentialpublic byte[][] getAttrs()
public boolean verify(org.apache.milagro.amcl.FP256BN.BIG sk, IdemixIssuerPublicKey ipk)
sk
- the secret key of the useripk
- the public key of the issuerCopyright © 2022. All rights reserved.