Module com.hedera.hashgraph.sdk
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 TypeMethodDescription* 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.ByteStringgetHash()* The hash of the state snapshot being signed.<br/> This hash MUST be a SHA-384 hash.longgetRound()* 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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRoundin interfaceStateSignatureTransactionOrBuilder- Returns:
- The round.
-
setRound
* 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
* 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:
getSignaturein interfaceStateSignatureTransactionOrBuilder- Returns:
- The signature.
-
setSignature
* 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
* 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:
getHashin interfaceStateSignatureTransactionOrBuilder- Returns:
- The hash.
-
setHash
* 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.
-