public static final class OmniLedgerProto.Proof extends com.google.protobuf.GeneratedMessageV3 implements OmniLedgerProto.ProofOrBuilder
Proof represents everything necessary to verify a given key/value pair is stored in a skipchain. The proof is in three parts: 1. InclusionProof proofs the presence or absence of the key. In case of the key being present, the value is included in the proof 2. Latest is used to verify the merkle tree root used in the collection-proof is stored in the latest skipblock 3. Links proves that the latest skipblock is part of the skipchain This Structure could later be moved to cothority/skipchain.Protobuf type
omniledger.Proof| Modifier and Type | Class and Description |
|---|---|
static class |
OmniLedgerProto.Proof.Builder
Proof represents everything necessary to verify a given
key/value pair is stored in a skipchain.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
INCLUSIONPROOF_FIELD_NUMBER |
static int |
LATEST_FIELD_NUMBER |
static int |
LINKS_FIELD_NUMBER |
static com.google.protobuf.Parser<OmniLedgerProto.Proof> |
PARSER
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static OmniLedgerProto.Proof |
getDefaultInstance() |
OmniLedgerProto.Proof |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
CollectionProto.Proof |
getInclusionproof()
InclusionProof is the deserialized InclusionProof
|
CollectionProto.ProofOrBuilder |
getInclusionproofOrBuilder()
InclusionProof is the deserialized InclusionProof
|
SkipchainProto.SkipBlock |
getLatest()
Providing the latest skipblock to retrieve the Merkle tree root.
|
SkipchainProto.SkipBlockOrBuilder |
getLatestOrBuilder()
Providing the latest skipblock to retrieve the Merkle tree root.
|
SkipchainProto.ForwardLink |
getLinks(int index)
Proving the path to the latest skipblock.
|
int |
getLinksCount()
Proving the path to the latest skipblock.
|
List<SkipchainProto.ForwardLink> |
getLinksList()
Proving the path to the latest skipblock.
|
SkipchainProto.ForwardLinkOrBuilder |
getLinksOrBuilder(int index)
Proving the path to the latest skipblock.
|
List<? extends SkipchainProto.ForwardLinkOrBuilder> |
getLinksOrBuilderList()
Proving the path to the latest skipblock.
|
com.google.protobuf.Parser<OmniLedgerProto.Proof> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasInclusionproof()
InclusionProof is the deserialized InclusionProof
|
boolean |
hasLatest()
Providing the latest skipblock to retrieve the Merkle tree root.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OmniLedgerProto.Proof.Builder |
newBuilder() |
static OmniLedgerProto.Proof.Builder |
newBuilder(OmniLedgerProto.Proof prototype) |
OmniLedgerProto.Proof.Builder |
newBuilderForType() |
protected OmniLedgerProto.Proof.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static OmniLedgerProto.Proof |
parseDelimitedFrom(InputStream input) |
static OmniLedgerProto.Proof |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OmniLedgerProto.Proof |
parseFrom(byte[] data) |
static OmniLedgerProto.Proof |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OmniLedgerProto.Proof |
parseFrom(ByteBuffer data) |
static OmniLedgerProto.Proof |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OmniLedgerProto.Proof |
parseFrom(com.google.protobuf.ByteString data) |
static OmniLedgerProto.Proof |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OmniLedgerProto.Proof |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OmniLedgerProto.Proof |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OmniLedgerProto.Proof |
parseFrom(InputStream input) |
static OmniLedgerProto.Proof |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OmniLedgerProto.Proof> |
parser() |
OmniLedgerProto.Proof.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INCLUSIONPROOF_FIELD_NUMBER
public static final int LATEST_FIELD_NUMBER
public static final int LINKS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<OmniLedgerProto.Proof> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasInclusionproof()
InclusionProof is the deserialized InclusionProof
required .collection.Proof inclusionproof = 1;hasInclusionproof in interface OmniLedgerProto.ProofOrBuilderpublic CollectionProto.Proof getInclusionproof()
InclusionProof is the deserialized InclusionProof
required .collection.Proof inclusionproof = 1;getInclusionproof in interface OmniLedgerProto.ProofOrBuilderpublic CollectionProto.ProofOrBuilder getInclusionproofOrBuilder()
InclusionProof is the deserialized InclusionProof
required .collection.Proof inclusionproof = 1;getInclusionproofOrBuilder in interface OmniLedgerProto.ProofOrBuilderpublic boolean hasLatest()
Providing the latest skipblock to retrieve the Merkle tree root.
required .skipchain.SkipBlock latest = 2;hasLatest in interface OmniLedgerProto.ProofOrBuilderpublic SkipchainProto.SkipBlock getLatest()
Providing the latest skipblock to retrieve the Merkle tree root.
required .skipchain.SkipBlock latest = 2;getLatest in interface OmniLedgerProto.ProofOrBuilderpublic SkipchainProto.SkipBlockOrBuilder getLatestOrBuilder()
Providing the latest skipblock to retrieve the Merkle tree root.
required .skipchain.SkipBlock latest = 2;getLatestOrBuilder in interface OmniLedgerProto.ProofOrBuilderpublic List<SkipchainProto.ForwardLink> getLinksList()
Proving the path to the latest skipblock. The first ForwardLink has an empty-sliced `From` and the genesis-block in `To`, together with the roster of the genesis-block in the `NewRoster`.
repeated .skipchain.ForwardLink links = 3;getLinksList in interface OmniLedgerProto.ProofOrBuilderpublic List<? extends SkipchainProto.ForwardLinkOrBuilder> getLinksOrBuilderList()
Proving the path to the latest skipblock. The first ForwardLink has an empty-sliced `From` and the genesis-block in `To`, together with the roster of the genesis-block in the `NewRoster`.
repeated .skipchain.ForwardLink links = 3;getLinksOrBuilderList in interface OmniLedgerProto.ProofOrBuilderpublic int getLinksCount()
Proving the path to the latest skipblock. The first ForwardLink has an empty-sliced `From` and the genesis-block in `To`, together with the roster of the genesis-block in the `NewRoster`.
repeated .skipchain.ForwardLink links = 3;getLinksCount in interface OmniLedgerProto.ProofOrBuilderpublic SkipchainProto.ForwardLink getLinks(int index)
Proving the path to the latest skipblock. The first ForwardLink has an empty-sliced `From` and the genesis-block in `To`, together with the roster of the genesis-block in the `NewRoster`.
repeated .skipchain.ForwardLink links = 3;getLinks in interface OmniLedgerProto.ProofOrBuilderpublic SkipchainProto.ForwardLinkOrBuilder getLinksOrBuilder(int index)
Proving the path to the latest skipblock. The first ForwardLink has an empty-sliced `From` and the genesis-block in `To`, together with the roster of the genesis-block in the `NewRoster`.
repeated .skipchain.ForwardLink links = 3;getLinksOrBuilder in interface OmniLedgerProto.ProofOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OmniLedgerProto.Proof parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OmniLedgerProto.Proof parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OmniLedgerProto.Proof parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OmniLedgerProto.Proof parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OmniLedgerProto.Proof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OmniLedgerProto.Proof parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OmniLedgerProto.Proof parseFrom(InputStream input) throws IOException
IOExceptionpublic static OmniLedgerProto.Proof parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OmniLedgerProto.Proof parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OmniLedgerProto.Proof parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OmniLedgerProto.Proof parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OmniLedgerProto.Proof parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OmniLedgerProto.Proof.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OmniLedgerProto.Proof.Builder newBuilder()
public static OmniLedgerProto.Proof.Builder newBuilder(OmniLedgerProto.Proof prototype)
public OmniLedgerProto.Proof.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OmniLedgerProto.Proof.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OmniLedgerProto.Proof getDefaultInstance()
public static com.google.protobuf.Parser<OmniLedgerProto.Proof> parser()
public com.google.protobuf.Parser<OmniLedgerProto.Proof> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OmniLedgerProto.Proof getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.