public static final class ByzCoinProto.Proof extends com.google.protobuf.GeneratedMessageV3 implements ByzCoinProto.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 proves 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 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
byzcoin.Proof| Modifier and Type | Class and Description |
|---|---|
static class |
ByzCoinProto.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<ByzCoinProto.Proof> |
PARSER
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ByzCoinProto.Proof |
getDefaultInstance() |
ByzCoinProto.Proof |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
TrieProto.Proof |
getInclusionproof()
InclusionProof is the deserialized InclusionProof
|
TrieProto.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<ByzCoinProto.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 ByzCoinProto.Proof.Builder |
newBuilder() |
static ByzCoinProto.Proof.Builder |
newBuilder(ByzCoinProto.Proof prototype) |
ByzCoinProto.Proof.Builder |
newBuilderForType() |
protected ByzCoinProto.Proof.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static ByzCoinProto.Proof |
parseDelimitedFrom(InputStream input) |
static ByzCoinProto.Proof |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByzCoinProto.Proof |
parseFrom(byte[] data) |
static ByzCoinProto.Proof |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByzCoinProto.Proof |
parseFrom(ByteBuffer data) |
static ByzCoinProto.Proof |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByzCoinProto.Proof |
parseFrom(com.google.protobuf.ByteString data) |
static ByzCoinProto.Proof |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByzCoinProto.Proof |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ByzCoinProto.Proof |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByzCoinProto.Proof |
parseFrom(InputStream input) |
static ByzCoinProto.Proof |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ByzCoinProto.Proof> |
parser() |
ByzCoinProto.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<ByzCoinProto.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 .trie.Proof inclusionproof = 1;hasInclusionproof in interface ByzCoinProto.ProofOrBuilderpublic TrieProto.Proof getInclusionproof()
InclusionProof is the deserialized InclusionProof
required .trie.Proof inclusionproof = 1;getInclusionproof in interface ByzCoinProto.ProofOrBuilderpublic TrieProto.ProofOrBuilder getInclusionproofOrBuilder()
InclusionProof is the deserialized InclusionProof
required .trie.Proof inclusionproof = 1;getInclusionproofOrBuilder in interface ByzCoinProto.ProofOrBuilderpublic boolean hasLatest()
Providing the latest skipblock to retrieve the Merkle tree root.
required .skipchain.SkipBlock latest = 2;hasLatest in interface ByzCoinProto.ProofOrBuilderpublic SkipchainProto.SkipBlock getLatest()
Providing the latest skipblock to retrieve the Merkle tree root.
required .skipchain.SkipBlock latest = 2;getLatest in interface ByzCoinProto.ProofOrBuilderpublic SkipchainProto.SkipBlockOrBuilder getLatestOrBuilder()
Providing the latest skipblock to retrieve the Merkle tree root.
required .skipchain.SkipBlock latest = 2;getLatestOrBuilder in interface ByzCoinProto.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 ByzCoinProto.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 ByzCoinProto.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 ByzCoinProto.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 ByzCoinProto.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 ByzCoinProto.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 ByzCoinProto.Proof parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByzCoinProto.Proof parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByzCoinProto.Proof parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByzCoinProto.Proof parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByzCoinProto.Proof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByzCoinProto.Proof parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByzCoinProto.Proof parseFrom(InputStream input) throws IOException
IOExceptionpublic static ByzCoinProto.Proof parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ByzCoinProto.Proof parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ByzCoinProto.Proof parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ByzCoinProto.Proof parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ByzCoinProto.Proof parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ByzCoinProto.Proof.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ByzCoinProto.Proof.Builder newBuilder()
public static ByzCoinProto.Proof.Builder newBuilder(ByzCoinProto.Proof prototype)
public ByzCoinProto.Proof.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ByzCoinProto.Proof.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ByzCoinProto.Proof getDefaultInstance()
public static com.google.protobuf.Parser<ByzCoinProto.Proof> parser()
public com.google.protobuf.Parser<ByzCoinProto.Proof> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ByzCoinProto.Proof getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.