Class IdemixPseudonymSignature



  • public class IdemixPseudonymSignature
    extends java.lang.Object
    IdemixPseudonymSignature is a signature on a message which can be verified with respect to a pseudonym
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.hyperledger.fabric.protos.idemix.Idemix.NymSignature toProto​()  
      boolean verify​(org.apache.milagro.amcl.FP256BN.ECP nym, IdemixIssuerPublicKey ipk, byte[] msg)
      Verify this IdemixPseudonymSignature
      • Methods inherited from class java.lang.Object

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

      • IdemixPseudonymSignature

        public IdemixPseudonymSignature​(org.apache.milagro.amcl.FP256BN.BIG sk,
                                        IdemixPseudonym pseudonym,
                                        IdemixIssuerPublicKey ipk,
                                        byte[] msg)
        Constructor
        Parameters:
        sk - the secret key
        pseudonym - the pseudonym with respect to which this signature can be verified
        ipk - the issuer public key
        msg - the message to be signed
      • IdemixPseudonymSignature

        public IdemixPseudonymSignature​(org.hyperledger.fabric.protos.idemix.Idemix.NymSignature proto)
        Construct a new signature from a serialized IdemixPseudonymSignature
        Parameters:
        proto - a protobuf object representing an IdemixPseudonymSignature
    • Method Detail

      • verify

        public boolean verify​(org.apache.milagro.amcl.FP256BN.ECP nym,
                              IdemixIssuerPublicKey ipk,
                              byte[] msg)
        Verify this IdemixPseudonymSignature
        Parameters:
        nym - the pseudonym with respect to which the signature is verified
        ipk - the issuer public key
        msg - the message that should be signed in this signature
        Returns:
        true iff valid
      • toProto

        public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature toProto​()
        Returns:
        A proto object representing this IdemixPseudonymSignature