Class IdemixCredential



  • public class IdemixCredential
    extends java.lang.Object
    IdemixCredential represents a user's idemix credential, which is a BBS+ signature (see "Constant-Size Dynamic k-TAA" by Man Ho Au, Willy Susilo, Yi Mu) on the user's secret key and attribute values.
    • Constructor Summary

      Constructors 
      Constructor Description
      IdemixCredential​(org.hyperledger.fabric.protos.idemix.Idemix.Credential proto)
      Construct an IdemixCredential from a serialized credential
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[][] getAttrs​()  
      boolean verify​(org.apache.milagro.amcl.FP256BN.BIG sk, IdemixIssuerPublicKey ipk)
      verify cryptographically verifies the credential
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdemixCredential

        public IdemixCredential​(org.hyperledger.fabric.protos.idemix.Idemix.Credential proto)
        Construct an IdemixCredential from a serialized credential
        Parameters:
        proto - a protobuf representation of a credential
    • Method Detail

      • getAttrs

        public byte[][] getAttrs​()
      • verify

        public boolean verify​(org.apache.milagro.amcl.FP256BN.BIG sk,
                              IdemixIssuerPublicKey ipk)
        verify cryptographically verifies the credential
        Parameters:
        sk - the secret key of the user
        ipk - the public key of the issuer
        Returns:
        true iff valid