Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* IssuerPublicKey specifies an issuer public key that consists of
* attribute_names - a list of the attribute names of a credential issued by the issuer
* h_sk, h_rand, h_attrs, w, bar_g1, bar_g2 - group elements corresponding to the signing key, randomness, and attributes
* proof_c, proof_s compose a zero-knowledge proof of knowledge of the secret key
* hash is a hash of the public key appended to it
*
*
* Protobuf type {@code IssuerPublicKey}
*/
public static final class IssuerPublicKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:IssuerPublicKey)
IssuerPublicKeyOrBuilder {
// Use IssuerPublicKey.newBuilder() to construct.
private IssuerPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private IssuerPublicKey() {
attributeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
hAttrs_ = java.util.Collections.emptyList();
proofC_ = com.google.protobuf.ByteString.EMPTY;
proofS_ = com.google.protobuf.ByteString.EMPTY;
hash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private IssuerPublicKey(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
attributeNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
attributeNames_.add(s);
break;
}
case 18: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (hSk_ != null) {
subBuilder = hSk_.toBuilder();
}
hSk_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hSk_);
hSk_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (hRand_ != null) {
subBuilder = hRand_.toBuilder();
}
hRand_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hRand_);
hRand_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
hAttrs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
hAttrs_.add(
input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry));
break;
}
case 42: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder subBuilder = null;
if (w_ != null) {
subBuilder = w_.toBuilder();
}
w_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP2.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(w_);
w_ = subBuilder.buildPartial();
}
break;
}
case 50: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (barG1_ != null) {
subBuilder = barG1_.toBuilder();
}
barG1_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(barG1_);
barG1_ = subBuilder.buildPartial();
}
break;
}
case 58: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (barG2_ != null) {
subBuilder = barG2_.toBuilder();
}
barG2_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(barG2_);
barG2_ = subBuilder.buildPartial();
}
break;
}
case 66: {
proofC_ = input.readBytes();
break;
}
case 74: {
proofS_ = input.readBytes();
break;
}
case 82: {
hash_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
attributeNames_ = attributeNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
hAttrs_ = java.util.Collections.unmodifiableList(hAttrs_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_IssuerPublicKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.class, org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey.Builder.class);
}
private int bitField0_;
public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList attributeNames_;
/**
* repeated string attribute_names = 1;
*/
public com.google.protobuf.ProtocolStringList
getAttributeNamesList() {
return attributeNames_;
}
/**
* repeated string attribute_names = 1;
*/
public int getAttributeNamesCount() {
return attributeNames_.size();
}
/**
* repeated string attribute_names = 1;
*/
public java.lang.String getAttributeNames(int index) {
return attributeNames_.get(index);
}
/**
* repeated string attribute_names = 1;
*/
public com.google.protobuf.ByteString
getAttributeNamesBytes(int index) {
return attributeNames_.getByteString(index);
}
public static final int H_SK_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP hSk_;
/**
* optional .ECP h_sk = 2;
*/
public boolean hasHSk() {
return hSk_ != null;
}
/**
* optional .ECP h_sk = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHSk() {
return hSk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hSk_;
}
/**
* optional .ECP h_sk = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHSkOrBuilder() {
return getHSk();
}
public static final int H_RAND_FIELD_NUMBER = 3;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP hRand_;
/**
* optional .ECP h_rand = 3;
*/
public boolean hasHRand() {
return hRand_ != null;
}
/**
* optional .ECP h_rand = 3;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHRand() {
return hRand_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : hRand_;
}
/**
* optional .ECP h_rand = 3;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHRandOrBuilder() {
return getHRand();
}
public static final int H_ATTRS_FIELD_NUMBER = 4;
private java.util.List hAttrs_;
/**
* repeated .ECP h_attrs = 4;
*/
public java.util.List getHAttrsList() {
return hAttrs_;
}
/**
* repeated .ECP h_attrs = 4;
*/
public java.util.List
getHAttrsOrBuilderList() {
return hAttrs_;
}
/**
* repeated .ECP h_attrs = 4;
*/
public int getHAttrsCount() {
return hAttrs_.size();
}
/**
* repeated .ECP h_attrs = 4;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getHAttrs(int index) {
return hAttrs_.get(index);
}
/**
* repeated .ECP h_attrs = 4;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getHAttrsOrBuilder(
int index) {
return hAttrs_.get(index);
}
public static final int W_FIELD_NUMBER = 5;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 w_;
/**
* optional .ECP2 w = 5;
*/
public boolean hasW() {
return w_ != null;
}
/**
* optional .ECP2 w = 5;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getW() {
return w_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : w_;
}
/**
* optional .ECP2 w = 5;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getWOrBuilder() {
return getW();
}
public static final int BAR_G1_FIELD_NUMBER = 6;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP barG1_;
/**
* optional .ECP bar_g1 = 6;
*/
public boolean hasBarG1() {
return barG1_ != null;
}
/**
* optional .ECP bar_g1 = 6;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG1() {
return barG1_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG1_;
}
/**
* optional .ECP bar_g1 = 6;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG1OrBuilder() {
return getBarG1();
}
public static final int BAR_G2_FIELD_NUMBER = 7;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP barG2_;
/**
* optional .ECP bar_g2 = 7;
*/
public boolean hasBarG2() {
return barG2_ != null;
}
/**
* optional .ECP bar_g2 = 7;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBarG2() {
return barG2_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : barG2_;
}
/**
* optional .ECP bar_g2 = 7;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBarG2OrBuilder() {
return getBarG2();
}
public static final int PROOF_C_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString proofC_;
/**
* optional bytes proof_c = 8;
*/
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString proofS_;
/**
* optional bytes proof_s = 9;
*/
public com.google.protobuf.ByteString getProofS() {
return proofS_;
}
public static final int HASH_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString hash_;
/**
* optional bytes hash = 10;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < attributeNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeNames_.getRaw(i));
}
if (hSk_ != null) {
output.writeMessage(2, getHSk());
}
if (hRand_ != null) {
output.writeMessage(3, getHRand());
}
for (int i = 0; i < hAttrs_.size(); i++) {
output.writeMessage(4, hAttrs_.get(i));
}
if (w_ != null) {
output.writeMessage(5, getW());
}
if (barG1_ != null) {
output.writeMessage(6, getBarG1());
}
if (barG2_ != null) {
output.writeMessage(7, getBarG2());
}
if (!proofC_.isEmpty()) {
output.writeBytes(8, proofC_);
}
if (!proofS_.isEmpty()) {
output.writeBytes(9, proofS_);
}
if (!hash_.isEmpty()) {
output.writeBytes(10, hash_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < attributeNames_.size(); i++) {
dataSize += computeStringSizeNoTag(attributeNames_.getRaw(i));
}
size += dataSize;
size += 1 * getAttributeNamesList().size();
}
if (hSk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getHSk());
}
if (hRand_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getHRand());
}
for (int i = 0; i < hAttrs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, hAttrs_.get(i));
}
if (w_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getW());
}
if (barG1_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getBarG1());
}
if (barG2_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getBarG2());
}
if (!proofC_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, proofC_);
}
if (!proofS_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, proofS_);
}
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, hash_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey other = (org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey) obj;
boolean result = true;
result = result && getAttributeNamesList()
.equals(other.getAttributeNamesList());
result = result && (hasHSk() == other.hasHSk());
if (hasHSk()) {
result = result && getHSk()
.equals(other.getHSk());
}
result = result && (hasHRand() == other.hasHRand());
if (hasHRand()) {
result = result && getHRand()
.equals(other.getHRand());
}
result = result && getHAttrsList()
.equals(other.getHAttrsList());
result = result && (hasW() == other.hasW());
if (hasW()) {
result = result && getW()
.equals(other.getW());
}
result = result && (hasBarG1() == other.hasBarG1());
if (hasBarG1()) {
result = result && getBarG1()
.equals(other.getBarG1());
}
result = result && (hasBarG2() == other.hasBarG2());
if (hasBarG2()) {
result = result && getBarG2()
.equals(other.getBarG2());
}
result = result && getProofC()
.equals(other.getProofC());
result = result && getProofS()
.equals(other.getProofS());
result = result && getHash()
.equals(other.getHash());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getAttributeNamesCount() > 0) {
hash = (37 * hash) + ATTRIBUTE_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getAttributeNamesList().hashCode();
}
if (hasHSk()) {
hash = (37 * hash) + H_SK_FIELD_NUMBER;
hash = (53 * hash) + getHSk().hashCode();
}
if (hasHRand()) {
hash = (37 * hash) + H_RAND_FIELD_NUMBER;
hash = (53 * hash) + getHRand().hashCode();
}
if (getHAttrsCount() > 0) {
hash = (37 * hash) + H_ATTRS_FIELD_NUMBER;
hash = (53 * hash) + getHAttrsList().hashCode();
}
if (hasW()) {
hash = (37 * hash) + W_FIELD_NUMBER;
hash = (53 * hash) + getW().hashCode();
}
if (hasBarG1()) {
hash = (37 * hash) + BAR_G1_FIELD_NUMBER;
hash = (53 * hash) + getBarG1().hashCode();
}
if (hasBarG2()) {
hash = (37 * hash) + BAR_G2_FIELD_NUMBER;
hash = (53 * hash) + getBarG2().hashCode();
}
hash = (37 * hash) + PROOF_C_FIELD_NUMBER;
hash = (53 * hash) + getProofC().hashCode();
hash = (37 * hash) + PROOF_S_FIELD_NUMBER;
hash = (53 * hash) + getProofS().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* IssuerPublicKey specifies an issuer public key that consists of
* attribute_names - a list of the attribute names of a credential issued by the issuer
* h_sk, h_rand, h_attrs, w, bar_g1, bar_g2 - group elements corresponding to the signing key, randomness, and attributes
* proof_c, proof_s compose a zero-knowledge proof of knowledge of the secret key
* hash is a hash of the public key appended to it
*
* CredRequest specifies a credential request object that consists of
* nym - a pseudonym, which is a commitment to the user secret
* issuer_nonce - a random nonce provided by the issuer
* proof_c, proof_s - a zero-knowledge proof of knowledge of the
* user secret inside Nym
*
*
* Protobuf type {@code CredRequest}
*/
public static final class CredRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:CredRequest)
CredRequestOrBuilder {
// Use CredRequest.newBuilder() to construct.
private CredRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CredRequest() {
issuerNonce_ = com.google.protobuf.ByteString.EMPTY;
proofC_ = com.google.protobuf.ByteString.EMPTY;
proofS_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CredRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (nym_ != null) {
subBuilder = nym_.toBuilder();
}
nym_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nym_);
nym_ = subBuilder.buildPartial();
}
break;
}
case 18: {
issuerNonce_ = input.readBytes();
break;
}
case 26: {
proofC_ = input.readBytes();
break;
}
case 34: {
proofS_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_CredRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.class, org.hyperledger.fabric.protos.idemix.Idemix.CredRequest.Builder.class);
}
public static final int NYM_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_;
/**
* optional .ECP nym = 1;
*/
public boolean hasNym() {
return nym_ != null;
}
/**
* optional .ECP nym = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() {
return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_;
}
/**
* optional .ECP nym = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder() {
return getNym();
}
public static final int ISSUER_NONCE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString issuerNonce_;
/**
* optional bytes issuer_nonce = 2;
*/
public com.google.protobuf.ByteString getIssuerNonce() {
return issuerNonce_;
}
public static final int PROOF_C_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString proofC_;
/**
* optional bytes proof_c = 3;
*/
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString proofS_;
/**
* optional bytes proof_s = 4;
*/
public com.google.protobuf.ByteString getProofS() {
return proofS_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nym_ != null) {
output.writeMessage(1, getNym());
}
if (!issuerNonce_.isEmpty()) {
output.writeBytes(2, issuerNonce_);
}
if (!proofC_.isEmpty()) {
output.writeBytes(3, proofC_);
}
if (!proofS_.isEmpty()) {
output.writeBytes(4, proofS_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nym_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNym());
}
if (!issuerNonce_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, issuerNonce_);
}
if (!proofC_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, proofC_);
}
if (!proofS_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, proofS_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.CredRequest)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.CredRequest other = (org.hyperledger.fabric.protos.idemix.Idemix.CredRequest) obj;
boolean result = true;
result = result && (hasNym() == other.hasNym());
if (hasNym()) {
result = result && getNym()
.equals(other.getNym());
}
result = result && getIssuerNonce()
.equals(other.getIssuerNonce());
result = result && getProofC()
.equals(other.getProofC());
result = result && getProofS()
.equals(other.getProofS());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasNym()) {
hash = (37 * hash) + NYM_FIELD_NUMBER;
hash = (53 * hash) + getNym().hashCode();
}
hash = (37 * hash) + ISSUER_NONCE_FIELD_NUMBER;
hash = (53 * hash) + getIssuerNonce().hashCode();
hash = (37 * hash) + PROOF_C_FIELD_NUMBER;
hash = (53 * hash) + getProofC().hashCode();
hash = (37 * hash) + PROOF_S_FIELD_NUMBER;
hash = (53 * hash) + getProofS().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.CredRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.CredRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* CredRequest specifies a credential request object that consists of
* nym - a pseudonym, which is a commitment to the user secret
* issuer_nonce - a random nonce provided by the issuer
* proof_c, proof_s - a zero-knowledge proof of knowledge of the
* user secret inside Nym
*
* Signature specifies a signature object that consists of
* a_prime, a_bar, b_prime, proof_* - randomized credential signature values
* and a zero-knowledge proof of knowledge of a credential
* and the corresponding user secret together with the attribute values
* nonce - a fresh nonce used for the signature
* nym - a fresh pseudonym (a commitment to to the user secret)
*
*
* Protobuf type {@code Signature}
*/
public static final class Signature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Signature)
SignatureOrBuilder {
// Use Signature.newBuilder() to construct.
private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Signature() {
proofC_ = com.google.protobuf.ByteString.EMPTY;
proofSSk_ = com.google.protobuf.ByteString.EMPTY;
proofSE_ = com.google.protobuf.ByteString.EMPTY;
proofSR2_ = com.google.protobuf.ByteString.EMPTY;
proofSR3_ = com.google.protobuf.ByteString.EMPTY;
proofSSPrime_ = com.google.protobuf.ByteString.EMPTY;
proofSAttrs_ = java.util.Collections.emptyList();
nonce_ = com.google.protobuf.ByteString.EMPTY;
proofSRNym_ = com.google.protobuf.ByteString.EMPTY;
revocationPkSig_ = com.google.protobuf.ByteString.EMPTY;
epoch_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Signature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (aPrime_ != null) {
subBuilder = aPrime_.toBuilder();
}
aPrime_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(aPrime_);
aPrime_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (aBar_ != null) {
subBuilder = aBar_.toBuilder();
}
aBar_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(aBar_);
aBar_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (bPrime_ != null) {
subBuilder = bPrime_.toBuilder();
}
bPrime_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bPrime_);
bPrime_ = subBuilder.buildPartial();
}
break;
}
case 34: {
proofC_ = input.readBytes();
break;
}
case 42: {
proofSSk_ = input.readBytes();
break;
}
case 50: {
proofSE_ = input.readBytes();
break;
}
case 58: {
proofSR2_ = input.readBytes();
break;
}
case 66: {
proofSR3_ = input.readBytes();
break;
}
case 74: {
proofSSPrime_ = input.readBytes();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
proofSAttrs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
proofSAttrs_.add(input.readBytes());
break;
}
case 90: {
nonce_ = input.readBytes();
break;
}
case 98: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (nym_ != null) {
subBuilder = nym_.toBuilder();
}
nym_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nym_);
nym_ = subBuilder.buildPartial();
}
break;
}
case 106: {
proofSRNym_ = input.readBytes();
break;
}
case 114: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP2.Builder subBuilder = null;
if (revocationEpochPk_ != null) {
subBuilder = revocationEpochPk_.toBuilder();
}
revocationEpochPk_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP2.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(revocationEpochPk_);
revocationEpochPk_ = subBuilder.buildPartial();
}
break;
}
case 122: {
revocationPkSig_ = input.readBytes();
break;
}
case 128: {
epoch_ = input.readInt64();
break;
}
case 138: {
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder subBuilder = null;
if (nonRevocationProof_ != null) {
subBuilder = nonRevocationProof_.toBuilder();
}
nonRevocationProof_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nonRevocationProof_);
nonRevocationProof_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
proofSAttrs_ = java.util.Collections.unmodifiableList(proofSAttrs_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.Signature.class, org.hyperledger.fabric.protos.idemix.Idemix.Signature.Builder.class);
}
private int bitField0_;
public static final int A_PRIME_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP aPrime_;
/**
* optional .ECP a_prime = 1;
*/
public boolean hasAPrime() {
return aPrime_ != null;
}
/**
* optional .ECP a_prime = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getAPrime() {
return aPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aPrime_;
}
/**
* optional .ECP a_prime = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getAPrimeOrBuilder() {
return getAPrime();
}
public static final int A_BAR_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP aBar_;
/**
* optional .ECP a_bar = 2;
*/
public boolean hasABar() {
return aBar_ != null;
}
/**
* optional .ECP a_bar = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getABar() {
return aBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : aBar_;
}
/**
* optional .ECP a_bar = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getABarOrBuilder() {
return getABar();
}
public static final int B_PRIME_FIELD_NUMBER = 3;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP bPrime_;
/**
* optional .ECP b_prime = 3;
*/
public boolean hasBPrime() {
return bPrime_ != null;
}
/**
* optional .ECP b_prime = 3;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getBPrime() {
return bPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : bPrime_;
}
/**
* optional .ECP b_prime = 3;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getBPrimeOrBuilder() {
return getBPrime();
}
public static final int PROOF_C_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString proofC_;
/**
* optional bytes proof_c = 4;
*/
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_SK_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString proofSSk_;
/**
* optional bytes proof_s_sk = 5;
*/
public com.google.protobuf.ByteString getProofSSk() {
return proofSSk_;
}
public static final int PROOF_S_E_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString proofSE_;
/**
* optional bytes proof_s_e = 6;
*/
public com.google.protobuf.ByteString getProofSE() {
return proofSE_;
}
public static final int PROOF_S_R2_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString proofSR2_;
/**
* optional bytes proof_s_r2 = 7;
*/
public com.google.protobuf.ByteString getProofSR2() {
return proofSR2_;
}
public static final int PROOF_S_R3_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString proofSR3_;
/**
* optional bytes proof_s_r3 = 8;
*/
public com.google.protobuf.ByteString getProofSR3() {
return proofSR3_;
}
public static final int PROOF_S_S_PRIME_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString proofSSPrime_;
/**
* optional bytes proof_s_s_prime = 9;
*/
public com.google.protobuf.ByteString getProofSSPrime() {
return proofSSPrime_;
}
public static final int PROOF_S_ATTRS_FIELD_NUMBER = 10;
private java.util.List proofSAttrs_;
/**
* repeated bytes proof_s_attrs = 10;
*/
public java.util.List
getProofSAttrsList() {
return proofSAttrs_;
}
/**
* repeated bytes proof_s_attrs = 10;
*/
public int getProofSAttrsCount() {
return proofSAttrs_.size();
}
/**
* repeated bytes proof_s_attrs = 10;
*/
public com.google.protobuf.ByteString getProofSAttrs(int index) {
return proofSAttrs_.get(index);
}
public static final int NONCE_FIELD_NUMBER = 11;
private com.google.protobuf.ByteString nonce_;
/**
* optional bytes nonce = 11;
*/
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
public static final int NYM_FIELD_NUMBER = 12;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP nym_;
/**
* optional .ECP nym = 12;
*/
public boolean hasNym() {
return nym_ != null;
}
/**
* optional .ECP nym = 12;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getNym() {
return nym_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : nym_;
}
/**
* optional .ECP nym = 12;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getNymOrBuilder() {
return getNym();
}
public static final int PROOF_S_R_NYM_FIELD_NUMBER = 13;
private com.google.protobuf.ByteString proofSRNym_;
/**
* optional bytes proof_s_r_nym = 13;
*/
public com.google.protobuf.ByteString getProofSRNym() {
return proofSRNym_;
}
public static final int REVOCATION_EPOCH_PK_FIELD_NUMBER = 14;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP2 revocationEpochPk_;
/**
* optional .ECP2 revocation_epoch_pk = 14;
*/
public boolean hasRevocationEpochPk() {
return revocationEpochPk_ != null;
}
/**
* optional .ECP2 revocation_epoch_pk = 14;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2 getRevocationEpochPk() {
return revocationEpochPk_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP2.getDefaultInstance() : revocationEpochPk_;
}
/**
* optional .ECP2 revocation_epoch_pk = 14;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP2OrBuilder getRevocationEpochPkOrBuilder() {
return getRevocationEpochPk();
}
public static final int REVOCATION_PK_SIG_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString revocationPkSig_;
/**
* optional bytes revocation_pk_sig = 15;
*/
public com.google.protobuf.ByteString getRevocationPkSig() {
return revocationPkSig_;
}
public static final int EPOCH_FIELD_NUMBER = 16;
private long epoch_;
/**
* optional int64 epoch = 16;
*/
public long getEpoch() {
return epoch_;
}
public static final int NON_REVOCATION_PROOF_FIELD_NUMBER = 17;
private org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof nonRevocationProof_;
/**
* optional .NonRevocationProof non_revocation_proof = 17;
*/
public boolean hasNonRevocationProof() {
return nonRevocationProof_ != null;
}
/**
* optional .NonRevocationProof non_revocation_proof = 17;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getNonRevocationProof() {
return nonRevocationProof_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance() : nonRevocationProof_;
}
/**
* optional .NonRevocationProof non_revocation_proof = 17;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder getNonRevocationProofOrBuilder() {
return getNonRevocationProof();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (aPrime_ != null) {
output.writeMessage(1, getAPrime());
}
if (aBar_ != null) {
output.writeMessage(2, getABar());
}
if (bPrime_ != null) {
output.writeMessage(3, getBPrime());
}
if (!proofC_.isEmpty()) {
output.writeBytes(4, proofC_);
}
if (!proofSSk_.isEmpty()) {
output.writeBytes(5, proofSSk_);
}
if (!proofSE_.isEmpty()) {
output.writeBytes(6, proofSE_);
}
if (!proofSR2_.isEmpty()) {
output.writeBytes(7, proofSR2_);
}
if (!proofSR3_.isEmpty()) {
output.writeBytes(8, proofSR3_);
}
if (!proofSSPrime_.isEmpty()) {
output.writeBytes(9, proofSSPrime_);
}
for (int i = 0; i < proofSAttrs_.size(); i++) {
output.writeBytes(10, proofSAttrs_.get(i));
}
if (!nonce_.isEmpty()) {
output.writeBytes(11, nonce_);
}
if (nym_ != null) {
output.writeMessage(12, getNym());
}
if (!proofSRNym_.isEmpty()) {
output.writeBytes(13, proofSRNym_);
}
if (revocationEpochPk_ != null) {
output.writeMessage(14, getRevocationEpochPk());
}
if (!revocationPkSig_.isEmpty()) {
output.writeBytes(15, revocationPkSig_);
}
if (epoch_ != 0L) {
output.writeInt64(16, epoch_);
}
if (nonRevocationProof_ != null) {
output.writeMessage(17, getNonRevocationProof());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (aPrime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAPrime());
}
if (aBar_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getABar());
}
if (bPrime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getBPrime());
}
if (!proofC_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, proofC_);
}
if (!proofSSk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, proofSSk_);
}
if (!proofSE_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, proofSE_);
}
if (!proofSR2_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, proofSR2_);
}
if (!proofSR3_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, proofSR3_);
}
if (!proofSSPrime_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, proofSSPrime_);
}
{
int dataSize = 0;
for (int i = 0; i < proofSAttrs_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(proofSAttrs_.get(i));
}
size += dataSize;
size += 1 * getProofSAttrsList().size();
}
if (!nonce_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(11, nonce_);
}
if (nym_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getNym());
}
if (!proofSRNym_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(13, proofSRNym_);
}
if (revocationEpochPk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getRevocationEpochPk());
}
if (!revocationPkSig_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, revocationPkSig_);
}
if (epoch_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(16, epoch_);
}
if (nonRevocationProof_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getNonRevocationProof());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.Signature)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.Signature other = (org.hyperledger.fabric.protos.idemix.Idemix.Signature) obj;
boolean result = true;
result = result && (hasAPrime() == other.hasAPrime());
if (hasAPrime()) {
result = result && getAPrime()
.equals(other.getAPrime());
}
result = result && (hasABar() == other.hasABar());
if (hasABar()) {
result = result && getABar()
.equals(other.getABar());
}
result = result && (hasBPrime() == other.hasBPrime());
if (hasBPrime()) {
result = result && getBPrime()
.equals(other.getBPrime());
}
result = result && getProofC()
.equals(other.getProofC());
result = result && getProofSSk()
.equals(other.getProofSSk());
result = result && getProofSE()
.equals(other.getProofSE());
result = result && getProofSR2()
.equals(other.getProofSR2());
result = result && getProofSR3()
.equals(other.getProofSR3());
result = result && getProofSSPrime()
.equals(other.getProofSSPrime());
result = result && getProofSAttrsList()
.equals(other.getProofSAttrsList());
result = result && getNonce()
.equals(other.getNonce());
result = result && (hasNym() == other.hasNym());
if (hasNym()) {
result = result && getNym()
.equals(other.getNym());
}
result = result && getProofSRNym()
.equals(other.getProofSRNym());
result = result && (hasRevocationEpochPk() == other.hasRevocationEpochPk());
if (hasRevocationEpochPk()) {
result = result && getRevocationEpochPk()
.equals(other.getRevocationEpochPk());
}
result = result && getRevocationPkSig()
.equals(other.getRevocationPkSig());
result = result && (getEpoch()
== other.getEpoch());
result = result && (hasNonRevocationProof() == other.hasNonRevocationProof());
if (hasNonRevocationProof()) {
result = result && getNonRevocationProof()
.equals(other.getNonRevocationProof());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasAPrime()) {
hash = (37 * hash) + A_PRIME_FIELD_NUMBER;
hash = (53 * hash) + getAPrime().hashCode();
}
if (hasABar()) {
hash = (37 * hash) + A_BAR_FIELD_NUMBER;
hash = (53 * hash) + getABar().hashCode();
}
if (hasBPrime()) {
hash = (37 * hash) + B_PRIME_FIELD_NUMBER;
hash = (53 * hash) + getBPrime().hashCode();
}
hash = (37 * hash) + PROOF_C_FIELD_NUMBER;
hash = (53 * hash) + getProofC().hashCode();
hash = (37 * hash) + PROOF_S_SK_FIELD_NUMBER;
hash = (53 * hash) + getProofSSk().hashCode();
hash = (37 * hash) + PROOF_S_E_FIELD_NUMBER;
hash = (53 * hash) + getProofSE().hashCode();
hash = (37 * hash) + PROOF_S_R2_FIELD_NUMBER;
hash = (53 * hash) + getProofSR2().hashCode();
hash = (37 * hash) + PROOF_S_R3_FIELD_NUMBER;
hash = (53 * hash) + getProofSR3().hashCode();
hash = (37 * hash) + PROOF_S_S_PRIME_FIELD_NUMBER;
hash = (53 * hash) + getProofSSPrime().hashCode();
if (getProofSAttrsCount() > 0) {
hash = (37 * hash) + PROOF_S_ATTRS_FIELD_NUMBER;
hash = (53 * hash) + getProofSAttrsList().hashCode();
}
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
if (hasNym()) {
hash = (37 * hash) + NYM_FIELD_NUMBER;
hash = (53 * hash) + getNym().hashCode();
}
hash = (37 * hash) + PROOF_S_R_NYM_FIELD_NUMBER;
hash = (53 * hash) + getProofSRNym().hashCode();
if (hasRevocationEpochPk()) {
hash = (37 * hash) + REVOCATION_EPOCH_PK_FIELD_NUMBER;
hash = (53 * hash) + getRevocationEpochPk().hashCode();
}
hash = (37 * hash) + REVOCATION_PK_SIG_FIELD_NUMBER;
hash = (53 * hash) + getRevocationPkSig().hashCode();
hash = (37 * hash) + EPOCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEpoch());
if (hasNonRevocationProof()) {
hash = (37 * hash) + NON_REVOCATION_PROOF_FIELD_NUMBER;
hash = (53 * hash) + getNonRevocationProof().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.Signature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.Signature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Signature specifies a signature object that consists of
* a_prime, a_bar, b_prime, proof_* - randomized credential signature values
* and a zero-knowledge proof of knowledge of a credential
* and the corresponding user secret together with the attribute values
* nonce - a fresh nonce used for the signature
* nym - a fresh pseudonym (a commitment to to the user secret)
*
* NonRevocationProof contains proof that the credential is not revoked
*
*
* Protobuf type {@code NonRevocationProof}
*/
public static final class NonRevocationProof extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:NonRevocationProof)
NonRevocationProofOrBuilder {
// Use NonRevocationProof.newBuilder() to construct.
private NonRevocationProof(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NonRevocationProof() {
revocationAlg_ = 0;
nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private NonRevocationProof(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
revocationAlg_ = input.readInt32();
break;
}
case 18: {
nonRevocationProof_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.class, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder.class);
}
public static final int REVOCATION_ALG_FIELD_NUMBER = 1;
private int revocationAlg_;
/**
* optional int32 revocation_alg = 1;
*/
public int getRevocationAlg() {
return revocationAlg_;
}
public static final int NON_REVOCATION_PROOF_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString nonRevocationProof_;
/**
* optional bytes non_revocation_proof = 2;
*/
public com.google.protobuf.ByteString getNonRevocationProof() {
return nonRevocationProof_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (revocationAlg_ != 0) {
output.writeInt32(1, revocationAlg_);
}
if (!nonRevocationProof_.isEmpty()) {
output.writeBytes(2, nonRevocationProof_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (revocationAlg_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, revocationAlg_);
}
if (!nonRevocationProof_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, nonRevocationProof_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof other = (org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) obj;
boolean result = true;
result = result && (getRevocationAlg()
== other.getRevocationAlg());
result = result && getNonRevocationProof()
.equals(other.getNonRevocationProof());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + REVOCATION_ALG_FIELD_NUMBER;
hash = (53 * hash) + getRevocationAlg();
hash = (37 * hash) + NON_REVOCATION_PROOF_FIELD_NUMBER;
hash = (53 * hash) + getNonRevocationProof().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* NonRevocationProof contains proof that the credential is not revoked
*
*
* Protobuf type {@code NonRevocationProof}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:NonRevocationProof)
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProofOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.class, org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
revocationAlg_ = 0;
nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NonRevocationProof_descriptor;
}
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance();
}
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof build() {
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof buildPartial() {
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof result = new org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof(this);
result.revocationAlg_ = revocationAlg_;
result.nonRevocationProof_ = nonRevocationProof_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) {
return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof other) {
if (other == org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof.getDefaultInstance()) return this;
if (other.getRevocationAlg() != 0) {
setRevocationAlg(other.getRevocationAlg());
}
if (other.getNonRevocationProof() != com.google.protobuf.ByteString.EMPTY) {
setNonRevocationProof(other.getNonRevocationProof());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int revocationAlg_ ;
/**
* optional int32 revocation_alg = 1;
*/
public int getRevocationAlg() {
return revocationAlg_;
}
/**
* optional int32 revocation_alg = 1;
*/
public Builder setRevocationAlg(int value) {
revocationAlg_ = value;
onChanged();
return this;
}
/**
* optional int32 revocation_alg = 1;
*/
public Builder clearRevocationAlg() {
revocationAlg_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString nonRevocationProof_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes non_revocation_proof = 2;
*/
public com.google.protobuf.ByteString getNonRevocationProof() {
return nonRevocationProof_;
}
/**
* optional bytes non_revocation_proof = 2;
*/
public Builder setNonRevocationProof(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nonRevocationProof_ = value;
onChanged();
return this;
}
/**
* optional bytes non_revocation_proof = 2;
*/
public Builder clearNonRevocationProof() {
nonRevocationProof_ = getDefaultInstance().getNonRevocationProof();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:NonRevocationProof)
}
// @@protoc_insertion_point(class_scope:NonRevocationProof)
private static final org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof();
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public NonRevocationProof parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NonRevocationProof(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.hyperledger.fabric.protos.idemix.Idemix.NonRevocationProof getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PlainSigNonRevokedProofOrBuilder extends
// @@protoc_insertion_point(interface_extends:PlainSigNonRevokedProof)
com.google.protobuf.MessageOrBuilder {
/**
* optional .ECP sigma_prime = 1;
*/
boolean hasSigmaPrime();
/**
* optional .ECP sigma_prime = 1;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaPrime();
/**
* optional .ECP sigma_prime = 1;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaPrimeOrBuilder();
/**
* optional .ECP sigma_bar = 2;
*/
boolean hasSigmaBar();
/**
* optional .ECP sigma_bar = 2;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaBar();
/**
* optional .ECP sigma_bar = 2;
*/
org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaBarOrBuilder();
/**
* optional bytes proof_s_r = 3;
*/
com.google.protobuf.ByteString getProofSR();
}
/**
*
* PlainSigNonRevokedProof is a non-revoked proof for the plain signature-based revocation algorithm.
* It proves that the revocation authority placed a weak Boneh-Boyen signature (ia.cr/2009/221) on its revocation handle,
* using the zero knowledge proof from Camenisch, Drijvers, Hajny: "Scalable Revocation Scheme for Anonymous Credentials
* Based on n-times Unlinkable Proofs"
*
*
* Protobuf type {@code PlainSigNonRevokedProof}
*/
public static final class PlainSigNonRevokedProof extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:PlainSigNonRevokedProof)
PlainSigNonRevokedProofOrBuilder {
// Use PlainSigNonRevokedProof.newBuilder() to construct.
private PlainSigNonRevokedProof(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PlainSigNonRevokedProof() {
proofSR_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PlainSigNonRevokedProof(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (sigmaPrime_ != null) {
subBuilder = sigmaPrime_.toBuilder();
}
sigmaPrime_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sigmaPrime_);
sigmaPrime_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.hyperledger.fabric.protos.idemix.Idemix.ECP.Builder subBuilder = null;
if (sigmaBar_ != null) {
subBuilder = sigmaBar_.toBuilder();
}
sigmaBar_ = input.readMessage(org.hyperledger.fabric.protos.idemix.Idemix.ECP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sigmaBar_);
sigmaBar_ = subBuilder.buildPartial();
}
break;
}
case 26: {
proofSR_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_PlainSigNonRevokedProof_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.class, org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof.Builder.class);
}
public static final int SIGMA_PRIME_FIELD_NUMBER = 1;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP sigmaPrime_;
/**
* optional .ECP sigma_prime = 1;
*/
public boolean hasSigmaPrime() {
return sigmaPrime_ != null;
}
/**
* optional .ECP sigma_prime = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaPrime() {
return sigmaPrime_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaPrime_;
}
/**
* optional .ECP sigma_prime = 1;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaPrimeOrBuilder() {
return getSigmaPrime();
}
public static final int SIGMA_BAR_FIELD_NUMBER = 2;
private org.hyperledger.fabric.protos.idemix.Idemix.ECP sigmaBar_;
/**
* optional .ECP sigma_bar = 2;
*/
public boolean hasSigmaBar() {
return sigmaBar_ != null;
}
/**
* optional .ECP sigma_bar = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECP getSigmaBar() {
return sigmaBar_ == null ? org.hyperledger.fabric.protos.idemix.Idemix.ECP.getDefaultInstance() : sigmaBar_;
}
/**
* optional .ECP sigma_bar = 2;
*/
public org.hyperledger.fabric.protos.idemix.Idemix.ECPOrBuilder getSigmaBarOrBuilder() {
return getSigmaBar();
}
public static final int PROOF_S_R_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString proofSR_;
/**
* optional bytes proof_s_r = 3;
*/
public com.google.protobuf.ByteString getProofSR() {
return proofSR_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sigmaPrime_ != null) {
output.writeMessage(1, getSigmaPrime());
}
if (sigmaBar_ != null) {
output.writeMessage(2, getSigmaBar());
}
if (!proofSR_.isEmpty()) {
output.writeBytes(3, proofSR_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sigmaPrime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSigmaPrime());
}
if (sigmaBar_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSigmaBar());
}
if (!proofSR_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, proofSR_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof other = (org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof) obj;
boolean result = true;
result = result && (hasSigmaPrime() == other.hasSigmaPrime());
if (hasSigmaPrime()) {
result = result && getSigmaPrime()
.equals(other.getSigmaPrime());
}
result = result && (hasSigmaBar() == other.hasSigmaBar());
if (hasSigmaBar()) {
result = result && getSigmaBar()
.equals(other.getSigmaBar());
}
result = result && getProofSR()
.equals(other.getProofSR());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasSigmaPrime()) {
hash = (37 * hash) + SIGMA_PRIME_FIELD_NUMBER;
hash = (53 * hash) + getSigmaPrime().hashCode();
}
if (hasSigmaBar()) {
hash = (37 * hash) + SIGMA_BAR_FIELD_NUMBER;
hash = (53 * hash) + getSigmaBar().hashCode();
}
hash = (37 * hash) + PROOF_S_R_FIELD_NUMBER;
hash = (53 * hash) + getProofSR().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.PlainSigNonRevokedProof prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* PlainSigNonRevokedProof is a non-revoked proof for the plain signature-based revocation algorithm.
* It proves that the revocation authority placed a weak Boneh-Boyen signature (ia.cr/2009/221) on its revocation handle,
* using the zero knowledge proof from Camenisch, Drijvers, Hajny: "Scalable Revocation Scheme for Anonymous Credentials
* Based on n-times Unlinkable Proofs"
*
* NymSignature specifies a signature object that signs a message
* with respect to a pseudonym. It differs from the standard idemix.signature in the fact that
* the standard signature object also proves that the pseudonym is based on a secret certified by
* a CA (issuer), whereas NymSignature only proves that the the owner of the pseudonym
* signed the message
*
*
* Protobuf type {@code NymSignature}
*/
public static final class NymSignature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:NymSignature)
NymSignatureOrBuilder {
// Use NymSignature.newBuilder() to construct.
private NymSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NymSignature() {
proofC_ = com.google.protobuf.ByteString.EMPTY;
proofSSk_ = com.google.protobuf.ByteString.EMPTY;
proofSRNym_ = com.google.protobuf.ByteString.EMPTY;
nonce_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private NymSignature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
proofC_ = input.readBytes();
break;
}
case 18: {
proofSSk_ = input.readBytes();
break;
}
case 26: {
proofSRNym_ = input.readBytes();
break;
}
case 34: {
nonce_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.class, org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.Builder.class);
}
public static final int PROOF_C_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString proofC_;
/**
*
* proof_c is the Fiat-Shamir challenge of the ZKP
*
*
* optional bytes proof_c = 1;
*/
public com.google.protobuf.ByteString getProofC() {
return proofC_;
}
public static final int PROOF_S_SK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString proofSSk_;
/**
*
* proof_s_sk is the s-value proving knowledge of the user secret key
*
*
* optional bytes proof_s_sk = 2;
*/
public com.google.protobuf.ByteString getProofSSk() {
return proofSSk_;
}
public static final int PROOF_S_R_NYM_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString proofSRNym_;
/**
*
*proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
*
*
* optional bytes proof_s_r_nym = 3;
*/
public com.google.protobuf.ByteString getProofSRNym() {
return proofSRNym_;
}
public static final int NONCE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString nonce_;
/**
*
* nonce is a fresh nonce used for the signature
*
*
* optional bytes nonce = 4;
*/
public com.google.protobuf.ByteString getNonce() {
return nonce_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!proofC_.isEmpty()) {
output.writeBytes(1, proofC_);
}
if (!proofSSk_.isEmpty()) {
output.writeBytes(2, proofSSk_);
}
if (!proofSRNym_.isEmpty()) {
output.writeBytes(3, proofSRNym_);
}
if (!nonce_.isEmpty()) {
output.writeBytes(4, nonce_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!proofC_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, proofC_);
}
if (!proofSSk_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, proofSSk_);
}
if (!proofSRNym_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, proofSRNym_);
}
if (!nonce_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, nonce_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.idemix.Idemix.NymSignature)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature other = (org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) obj;
boolean result = true;
result = result && getProofC()
.equals(other.getProofC());
result = result && getProofSSk()
.equals(other.getProofSSk());
result = result && getProofSRNym()
.equals(other.getProofSRNym());
result = result && getNonce()
.equals(other.getNonce());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + PROOF_C_FIELD_NUMBER;
hash = (53 * hash) + getProofC().hashCode();
hash = (37 * hash) + PROOF_S_SK_FIELD_NUMBER;
hash = (53 * hash) + getProofSSk().hashCode();
hash = (37 * hash) + PROOF_S_R_NYM_FIELD_NUMBER;
hash = (53 * hash) + getProofSRNym().hashCode();
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.idemix.Idemix.NymSignature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* NymSignature specifies a signature object that signs a message
* with respect to a pseudonym. It differs from the standard idemix.signature in the fact that
* the standard signature object also proves that the pseudonym is based on a secret certified by
* a CA (issuer), whereas NymSignature only proves that the the owner of the pseudonym
* signed the message
*
*
* Protobuf type {@code NymSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:NymSignature)
org.hyperledger.fabric.protos.idemix.Idemix.NymSignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.class, org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
proofC_ = com.google.protobuf.ByteString.EMPTY;
proofSSk_ = com.google.protobuf.ByteString.EMPTY;
proofSRNym_ = com.google.protobuf.ByteString.EMPTY;
nonce_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.internal_static_NymSignature_descriptor;
}
public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.getDefaultInstance();
}
public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature build() {
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.hyperledger.fabric.protos.idemix.Idemix.NymSignature buildPartial() {
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature result = new org.hyperledger.fabric.protos.idemix.Idemix.NymSignature(this);
result.proofC_ = proofC_;
result.proofSSk_ = proofSSk_;
result.proofSRNym_ = proofSRNym_;
result.nonce_ = nonce_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) {
return mergeFrom((org.hyperledger.fabric.protos.idemix.Idemix.NymSignature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.idemix.Idemix.NymSignature other) {
if (other == org.hyperledger.fabric.protos.idemix.Idemix.NymSignature.getDefaultInstance()) return this;
if (other.getProofC() != com.google.protobuf.ByteString.EMPTY) {
setProofC(other.getProofC());
}
if (other.getProofSSk() != com.google.protobuf.ByteString.EMPTY) {
setProofSSk(other.getProofSSk());
}
if (other.getProofSRNym() != com.google.protobuf.ByteString.EMPTY) {
setProofSRNym(other.getProofSRNym());
}
if (other.getNonce() != com.google.protobuf.ByteString.EMPTY) {
setNonce(other.getNonce());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.idemix.Idemix.NymSignature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.idemix.Idemix.NymSignature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString proofC_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof_c is the Fiat-Shamir challenge of the ZKP
*