java.lang.Object
com.google.protobuf.AbstractMessageLite<ThresholdKey,ThresholdKey.Builder>
com.google.protobuf.GeneratedMessageLite<ThresholdKey,ThresholdKey.Builder>
com.hedera.hashgraph.sdk.proto.ThresholdKey
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ThresholdKeyOrBuilder
@Generated
public final class ThresholdKey
extends com.google.protobuf.GeneratedMessageLite<ThresholdKey,ThresholdKey.Builder>
implements ThresholdKeyOrBuilder
* A threshold value and a list of public keys that, together, form a threshold signature requirement. Any subset of the keys in the list may satisfy the signature requirements of this type of key, provided the number of keys meets or exceeds the threshold. For example, if a particular key has a threshold of three(3) and eight(8) keys in the list, then any three(3) signatures, from the list of eight(8), is sufficient to authorize that key. For threshold purposes, all signatures from a single `primitive` key are considered a single signature, so that signature(s) from a single key SHALL NOT _directly_ meet a threshold greater than one(1). #### Note > It is possible to construct a complex key structure that _would_ enable a > single primitive key to successfully meet a threshold requirement. All > threshold keys SHOULD be carefully audited to ensure no one `primitive` > key, or smart contract, has disproportionate capability.Protobuf type
proto.ThresholdKey-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A threshold value and a list of public keys that, together, form a threshold signature requirement.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 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 ThresholdKeygetKeys()* A list of the keys that MAY satisfy signature requirements of this key.int* A transaction MUST have valid signatures from at least this number of separate keys, from the `keys` list to be authorized by this key.booleanhasKeys()* A list of the keys that MAY satisfy signature requirements of this key.static ThresholdKey.Builderstatic ThresholdKey.BuildernewBuilder(ThresholdKey prototype) static ThresholdKeyparseDelimitedFrom(InputStream input) static ThresholdKeyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThresholdKeyparseFrom(byte[] data) static ThresholdKeyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThresholdKeyparseFrom(com.google.protobuf.ByteString data) static ThresholdKeyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThresholdKeyparseFrom(com.google.protobuf.CodedInputStream input) static ThresholdKeyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThresholdKeyparseFrom(InputStream input) static ThresholdKeyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThresholdKeyparseFrom(ByteBuffer data) static ThresholdKeyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ThresholdKey> 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
-
THRESHOLD_FIELD_NUMBER
public static final int THRESHOLD_FIELD_NUMBER- See Also:
-
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getThreshold
public int getThreshold()* A transaction MUST have valid signatures from at least this number of separate keys, from the `keys` list to be authorized by this key.
uint32 threshold = 1;- Specified by:
getThresholdin interfaceThresholdKeyOrBuilder- Returns:
- The threshold.
-
hasKeys
public boolean hasKeys()* A list of the keys that MAY satisfy signature requirements of this key.
.proto.KeyList keys = 2;- Specified by:
hasKeysin interfaceThresholdKeyOrBuilder- Returns:
- Whether the keys field is set.
-
getKeys
* A list of the keys that MAY satisfy signature requirements of this key.
.proto.KeyList keys = 2;- Specified by:
getKeysin interfaceThresholdKeyOrBuilder- Returns:
- The keys.
-
parseFrom
public static ThresholdKey parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThresholdKey parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThresholdKey parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThresholdKey parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThresholdKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThresholdKey parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ThresholdKey parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ThresholdKey parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ThresholdKey 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<ThresholdKey,ThresholdKey.Builder>
-
getDefaultInstance
-
parser
-