Class StateSignatureTransaction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<StateSignatureTransaction,StateSignatureTransaction.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<StateSignatureTransaction,StateSignatureTransaction.Builder>
com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, StateSignatureTransactionOrBuilder, Cloneable
Enclosing class:
StateSignatureTransaction

public static final class StateSignatureTransaction.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<StateSignatureTransaction,StateSignatureTransaction.Builder> implements StateSignatureTransactionOrBuilder
 *
 An signature of a state snapshot gossiped to other nodes.
 Each node SHALL hash the root of the merkle tree of a state snapshot every
 round. Once this hash is calculated, it SHOULD be signed with the nodes
 private signing key. This signature, together with the hash SHOULD be added
 to an event as a StateSignatureTransaction.
 
Protobuf type com.hedera.hapi.platform.event.StateSignatureTransaction
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    * The hash of the state snapshot being signed.<br/> This hash MUST be a SHA-384 hash.
    * The round number corresponding to the round number of the state snapshot being signed.<br/> This number MUST be greater than 0.
    * The signature of state snapshot hash.<br/> This signature MUST be a RSA signature with a maximum length of 384 bytes.<br/> The signature algorithm used MUST be RSASSA-PKCS1-v1_5 with SHA-384.
    com.google.protobuf.ByteString
    * The hash of the state snapshot being signed.<br/> This hash MUST be a SHA-384 hash.
    long
    * The round number corresponding to the round number of the state snapshot being signed.<br/> This number MUST be greater than 0.
    com.google.protobuf.ByteString
    * The signature of state snapshot hash.<br/> This signature MUST be a RSA signature with a maximum length of 384 bytes.<br/> The signature algorithm used MUST be RSASSA-PKCS1-v1_5 with SHA-384.
    setHash(com.google.protobuf.ByteString value)
    * The hash of the state snapshot being signed.<br/> This hash MUST be a SHA-384 hash.
    setRound(long value)
    * The round number corresponding to the round number of the state snapshot being signed.<br/> This number MUST be greater than 0.
    setSignature(com.google.protobuf.ByteString value)
    * The signature of state snapshot hash.<br/> This signature MUST be a RSA signature with a maximum length of 384 bytes.<br/> The signature algorithm used MUST be RSASSA-PKCS1-v1_5 with SHA-384.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getRound

      public long getRound()
       *
       The round number corresponding to the round number of the state snapshot
       being signed.<br/>
       This number MUST be greater than 0.
       
      int64 round = 1;
      Specified by:
      getRound in interface StateSignatureTransactionOrBuilder
      Returns:
      The round.
    • setRound

      public StateSignatureTransaction.Builder setRound(long value)
       *
       The round number corresponding to the round number of the state snapshot
       being signed.<br/>
       This number MUST be greater than 0.
       
      int64 round = 1;
      Parameters:
      value - The round to set.
      Returns:
      This builder for chaining.
    • clearRound

      public StateSignatureTransaction.Builder clearRound()
       *
       The round number corresponding to the round number of the state snapshot
       being signed.<br/>
       This number MUST be greater than 0.
       
      int64 round = 1;
      Returns:
      This builder for chaining.
    • getSignature

      public com.google.protobuf.ByteString getSignature()
       *
       The signature of state snapshot hash.<br/>
       This signature MUST be a RSA signature with a maximum length of 384 bytes.<br/>
       The signature algorithm used MUST be RSASSA-PKCS1-v1_5 with SHA-384.
       
      bytes signature = 2;
      Specified by:
      getSignature in interface StateSignatureTransactionOrBuilder
      Returns:
      The signature.
    • setSignature

      public StateSignatureTransaction.Builder setSignature(com.google.protobuf.ByteString value)
       *
       The signature of state snapshot hash.<br/>
       This signature MUST be a RSA signature with a maximum length of 384 bytes.<br/>
       The signature algorithm used MUST be RSASSA-PKCS1-v1_5 with SHA-384.
       
      bytes signature = 2;
      Parameters:
      value - The signature to set.
      Returns:
      This builder for chaining.
    • clearSignature

      public StateSignatureTransaction.Builder clearSignature()
       *
       The signature of state snapshot hash.<br/>
       This signature MUST be a RSA signature with a maximum length of 384 bytes.<br/>
       The signature algorithm used MUST be RSASSA-PKCS1-v1_5 with SHA-384.
       
      bytes signature = 2;
      Returns:
      This builder for chaining.
    • getHash

      public com.google.protobuf.ByteString getHash()
       *
       The hash of the state snapshot being signed.<br/>
       This hash MUST be a SHA-384 hash.
       
      bytes hash = 3;
      Specified by:
      getHash in interface StateSignatureTransactionOrBuilder
      Returns:
      The hash.
    • setHash

      public StateSignatureTransaction.Builder setHash(com.google.protobuf.ByteString value)
       *
       The hash of the state snapshot being signed.<br/>
       This hash MUST be a SHA-384 hash.
       
      bytes hash = 3;
      Parameters:
      value - The hash to set.
      Returns:
      This builder for chaining.
    • clearHash

       *
       The hash of the state snapshot being signed.<br/>
       This hash MUST be a SHA-384 hash.
       
      bytes hash = 3;
      Returns:
      This builder for chaining.