Class TssVoteTransactionBody

java.lang.Object
com.google.protobuf.AbstractMessageLite<TssVoteTransactionBody,TssVoteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<TssVoteTransactionBody,TssVoteTransactionBody.Builder>
com.hedera.hapi.services.auxiliary.tss.legacy.TssVoteTransactionBody
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, TssVoteTransactionBodyOrBuilder

@Generated public final class TssVoteTransactionBody extends com.google.protobuf.GeneratedMessageLite<TssVoteTransactionBody,TssVoteTransactionBody.Builder> implements TssVoteTransactionBodyOrBuilder
 *
 A transaction body to vote on the validity of Threshold Signature Scheme
 (TSS) Messages for a candidate roster.

 - A `TssVoteTransactionBody` MUST identify the hash of the roster containing
 the node generating this TssVote
 - A `TssVoteTransactionBody` MUST identify the hash of the roster that the
 TSS messages is for
 - If the candidate roster has received enough yes votes, the candidate
 roster SHALL be adopted.
 - Switching to the candidate roster MUST not happen until enough nodes have
 voted that they have verified a threshold number of TSS messages from the
 active roster.
 - A vote consists of a bit vector of message statuses where each bit
 corresponds to the order of TssMessages as they have come through
 consensus.
 - The threshold for votes to adopt a candidate roster SHALL be at least 1/3
 of the consensus weight of the active roster to ensure that at least 1
 honest node has validated the TSS key material.
 
Protobuf type com.hedera.hapi.services.auxiliary.tss.TssVoteTransactionBody
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A transaction body to vote on the validity of Threshold Signature Scheme (TSS) Messages for a candidate roster.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    com.google.protobuf.ByteString
    * An identifier (and public key) computed from the TssMessages for the target roster.
    com.google.protobuf.ByteString
    * A signature produced by the node.
    com.google.protobuf.ByteString
    * A hash of the roster containing the node generating this TssVote.
    com.google.protobuf.ByteString
    * A hash of the roster that this TssVote is for.
    com.google.protobuf.ByteString
    * A bit vector of message statuses.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<TssVoteTransactionBody>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • SOURCE_ROSTER_HASH_FIELD_NUMBER

      public static final int SOURCE_ROSTER_HASH_FIELD_NUMBER
      See Also:
    • TARGET_ROSTER_HASH_FIELD_NUMBER

      public static final int TARGET_ROSTER_HASH_FIELD_NUMBER
      See Also:
    • LEDGER_ID_FIELD_NUMBER

      public static final int LEDGER_ID_FIELD_NUMBER
      See Also:
    • NODE_SIGNATURE_FIELD_NUMBER

      public static final int NODE_SIGNATURE_FIELD_NUMBER
      See Also:
    • TSS_VOTE_FIELD_NUMBER

      public static final int TSS_VOTE_FIELD_NUMBER
      See Also:
  • Method Details

    • getSourceRosterHash

      public com.google.protobuf.ByteString getSourceRosterHash()
       *
       A hash of the roster containing the node generating this TssVote.
       
      bytes source_roster_hash = 1;
      Specified by:
      getSourceRosterHash in interface TssVoteTransactionBodyOrBuilder
      Returns:
      The sourceRosterHash.
    • getTargetRosterHash

      public com.google.protobuf.ByteString getTargetRosterHash()
       *
       A hash of the roster that this TssVote is for.
       
      bytes target_roster_hash = 2;
      Specified by:
      getTargetRosterHash in interface TssVoteTransactionBodyOrBuilder
      Returns:
      The targetRosterHash.
    • getLedgerId

      public com.google.protobuf.ByteString getLedgerId()
       *
       An identifier (and public key) computed from the TssMessages for the target
       roster.
       
      bytes ledger_id = 3;
      Specified by:
      getLedgerId in interface TssVoteTransactionBodyOrBuilder
      Returns:
      The ledgerId.
    • getNodeSignature

      public com.google.protobuf.ByteString getNodeSignature()
       *
       A signature produced by the node.
       <p>
       This signature SHALL be produced using the node RSA signing key to sign
       the ledger_id.<br/>
       This signature SHALL be used to establish a chain of trust in the ledger id.
       
      bytes node_signature = 4;
      Specified by:
      getNodeSignature in interface TssVoteTransactionBodyOrBuilder
      Returns:
      The nodeSignature.
    • getTssVote

      public com.google.protobuf.ByteString getTssVote()
       *
       A bit vector of message statuses.
       <p>
       #### Example
       <ul><li>The least significant bit of byte[0] SHALL be the 0th item in the sequence.</li>
       <li>The most significant bit of byte[0] SHALL be the 7th item in the sequence.</li>
       <li>The least significant bit of byte[1] SHALL be the 8th item in the sequence.</li>
       <li>The most significant bit of byte[1] SHALL be the 15th item in the sequence.</li>
       </ul>
       A bit SHALL be set if the `TssMessage` for the `TssMessageTransaction`
       with a sequence number matching that bit index has been
       received, and is valid.<br/>
       A bit SHALL NOT be set if the `TssMessage` has not been received or was
       received but not valid.
       
      bytes tss_vote = 5;
      Specified by:
      getTssVote in interface TssVoteTransactionBodyOrBuilder
      Returns:
      The tssVote.
    • parseFrom

      public static TssVoteTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TssVoteTransactionBody parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TssVoteTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TssVoteTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static TssVoteTransactionBody.Builder newBuilder()
    • newBuilder

      public static TssVoteTransactionBody.Builder newBuilder(TssVoteTransactionBody prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<TssVoteTransactionBody,TssVoteTransactionBody.Builder>
    • getDefaultInstance

      public static TssVoteTransactionBody getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TssVoteTransactionBody> parser()