Module com.hedera.hashgraph.sdk
Class StateSignatureTransaction
java.lang.Object
com.google.protobuf.AbstractMessageLite<StateSignatureTransaction,StateSignatureTransaction.Builder>
com.google.protobuf.GeneratedMessageLite<StateSignatureTransaction,StateSignatureTransaction.Builder>
com.hedera.hapi.platform.event.legacy.StateSignatureTransaction
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,StateSignatureTransactionOrBuilder
@Generated
public final class StateSignatureTransaction
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* An signature of a state snapshot gossiped to other nodes.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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static StateSignatureTransactioncom.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.newBuilder(StateSignatureTransaction prototype) static StateSignatureTransactionparseDelimitedFrom(InputStream input) static StateSignatureTransactionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StateSignatureTransactionparseFrom(byte[] data) static StateSignatureTransactionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StateSignatureTransactionparseFrom(com.google.protobuf.ByteString data) static StateSignatureTransactionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StateSignatureTransactionparseFrom(com.google.protobuf.CodedInputStream input) static StateSignatureTransactionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StateSignatureTransactionparseFrom(InputStream input) static StateSignatureTransactionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StateSignatureTransactionparseFrom(ByteBuffer data) static StateSignatureTransactionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StateSignatureTransaction> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
ROUND_FIELD_NUMBER
public static final int ROUND_FIELD_NUMBER- See Also:
-
SIGNATURE_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER- See Also:
-
HASH_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
parseFrom
public static StateSignatureTransaction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StateSignatureTransaction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StateSignatureTransaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StateSignatureTransaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StateSignatureTransaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StateSignatureTransaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StateSignatureTransaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StateSignatureTransaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StateSignatureTransaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StateSignatureTransaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<StateSignatureTransaction,StateSignatureTransaction.Builder>
-
getDefaultInstance
-
parser
-