java.lang.Object
com.google.protobuf.AbstractMessageLite<SignaturePair,SignaturePair.Builder>
com.google.protobuf.GeneratedMessageLite<SignaturePair,SignaturePair.Builder>
com.hedera.hashgraph.sdk.proto.SignaturePair
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,SignaturePairOrBuilder
@Generated
public final class SignaturePair
extends com.google.protobuf.GeneratedMessageLite<SignaturePair,SignaturePair.Builder>
implements SignaturePairOrBuilder
* A public key and signature pair.<br/> Only Ed25519 and ECDSA(secp256k1) keys and signatures are currently supported as cryptographic (non-implied) signatures.Protobuf type
proto.SignaturePair-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A public key and signature pair.<br/> Only Ed25519 and ECDSA(secp256k1) keys and signatures are currently supported as cryptographic (non-implied) signatures.static enumNested 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 intstatic 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) com.google.protobuf.ByteString* A smart contract virtual signature.static SignaturePaircom.google.protobuf.ByteStringDeprecated.proto.SignaturePair.ECDSA_384 is deprecated.com.google.protobuf.ByteString* An ECDSA(secp256k1) signature.com.google.protobuf.ByteString* An Ed25519 signature.com.google.protobuf.ByteString* Prefix bytes of the public key.com.google.protobuf.ByteStringDeprecated.proto.SignaturePair.RSA_3072 is deprecated.boolean* A smart contract virtual signature.booleanDeprecated.proto.SignaturePair.ECDSA_384 is deprecated.boolean* An ECDSA(secp256k1) signature.boolean* An Ed25519 signature.booleanDeprecated.proto.SignaturePair.RSA_3072 is deprecated.static SignaturePair.Builderstatic SignaturePair.BuildernewBuilder(SignaturePair prototype) static SignaturePairparseDelimitedFrom(InputStream input) static SignaturePairparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignaturePairparseFrom(byte[] data) static SignaturePairparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignaturePairparseFrom(com.google.protobuf.ByteString data) static SignaturePairparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignaturePairparseFrom(com.google.protobuf.CodedInputStream input) static SignaturePairparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignaturePairparseFrom(InputStream input) static SignaturePairparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignaturePairparseFrom(ByteBuffer data) static SignaturePairparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SignaturePair> 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
-
PUBKEYPREFIX_FIELD_NUMBER
public static final int PUBKEYPREFIX_FIELD_NUMBER- See Also:
-
CONTRACT_FIELD_NUMBER
public static final int CONTRACT_FIELD_NUMBER- See Also:
-
ED25519_FIELD_NUMBER
public static final int ED25519_FIELD_NUMBER- See Also:
-
RSA_3072_FIELD_NUMBER
public static final int RSA_3072_FIELD_NUMBER- See Also:
-
ECDSA_384_FIELD_NUMBER
public static final int ECDSA_384_FIELD_NUMBER- See Also:
-
ECDSA_SECP256K1_FIELD_NUMBER
public static final int ECDSA_SECP256K1_FIELD_NUMBER- See Also:
-
-
Method Details
-
getSignatureCase
- Specified by:
getSignatureCasein interfaceSignaturePairOrBuilder
-
getPubKeyPrefix
public com.google.protobuf.ByteString getPubKeyPrefix()* Prefix bytes of the public key. <p> The client may use any number of bytes from zero to the whole length of the public key for pubKeyPrefix. If zero bytes are used, then it MUST be true that only one cryptographic key is required to sign the associated transaction.<br/> If the `pubKeyPrefix` is 0 bytes and more than a single cryptographic key is required to sign the transaction, the request SHALL resolve to `INVALID_SIGNATURE`. <blockquote>Important Note<blockquote> In the special case that a signature is provided to authorize a precompiled contract, the `pubKeyPrefix` MUST contain the _entire public key_.<br/> That is, if the key is an Ed25519 key, the `pubKeyPrefix` MUST be 32 bytes long and contain the full public key bytes.<br/> If the key is an ECDSA(secp256k1) key, the `pubKeyPrefix` MUST be 33 bytes long and contain the full _compressed_ form of the public key. </blockquote></blockquote> <p> <dl><dt>Purpose</dt> <dd>The `pubKeyPrefix` exists to save cost. A signed transaction with shorter prefixes will have fewer bytes, and so will have a lower transaction fee. The prefixes, however, MUST be long enough to distinguish between all of the public keys that might be signing the transaction. Therefore, software signing a transaction SHOULD evaluate which keys might possibly be required to sign a transaction, and ensure that the shortest prefix that is sufficient to unambiguously identify the correct key is used. </dd></dl>
bytes pubKeyPrefix = 1;- Specified by:
getPubKeyPrefixin interfaceSignaturePairOrBuilder- Returns:
- The pubKeyPrefix.
-
hasContract
public boolean hasContract()* A smart contract virtual signature. <p> This value MUST be length zero, if set.
bytes contract = 2;- Specified by:
hasContractin interfaceSignaturePairOrBuilder- Returns:
- Whether the contract field is set.
-
getContract
public com.google.protobuf.ByteString getContract()* A smart contract virtual signature. <p> This value MUST be length zero, if set.
bytes contract = 2;- Specified by:
getContractin interfaceSignaturePairOrBuilder- Returns:
- The contract.
-
hasEd25519
public boolean hasEd25519()* An Ed25519 signature.
bytes ed25519 = 3;- Specified by:
hasEd25519in interfaceSignaturePairOrBuilder- Returns:
- Whether the ed25519 field is set.
-
getEd25519
public com.google.protobuf.ByteString getEd25519()* An Ed25519 signature.
bytes ed25519 = 3;- Specified by:
getEd25519in interfaceSignaturePairOrBuilder- Returns:
- The ed25519.
-
hasRSA3072
Deprecated.proto.SignaturePair.RSA_3072 is deprecated. See basic_types.proto;l=1304* This option is not supported.<br/> A RSA-3072 signature.
bytes RSA_3072 = 4 [deprecated = true];- Specified by:
hasRSA3072in interfaceSignaturePairOrBuilder- Returns:
- Whether the rSA3072 field is set.
-
getRSA3072
Deprecated.proto.SignaturePair.RSA_3072 is deprecated. See basic_types.proto;l=1304* This option is not supported.<br/> A RSA-3072 signature.
bytes RSA_3072 = 4 [deprecated = true];- Specified by:
getRSA3072in interfaceSignaturePairOrBuilder- Returns:
- The rSA3072.
-
hasECDSA384
Deprecated.proto.SignaturePair.ECDSA_384 is deprecated. See basic_types.proto;l=1310* This option is not supported.<br/> ECDSA p-384 signature.
bytes ECDSA_384 = 5 [deprecated = true];- Specified by:
hasECDSA384in interfaceSignaturePairOrBuilder- Returns:
- Whether the eCDSA384 field is set.
-
getECDSA384
Deprecated.proto.SignaturePair.ECDSA_384 is deprecated. See basic_types.proto;l=1310* This option is not supported.<br/> ECDSA p-384 signature.
bytes ECDSA_384 = 5 [deprecated = true];- Specified by:
getECDSA384in interfaceSignaturePairOrBuilder- Returns:
- The eCDSA384.
-
hasECDSASecp256K1
public boolean hasECDSASecp256K1()* An ECDSA(secp256k1) signature.
bytes ECDSA_secp256k1 = 6;- Specified by:
hasECDSASecp256K1in interfaceSignaturePairOrBuilder- Returns:
- Whether the eCDSASecp256k1 field is set.
-
getECDSASecp256K1
public com.google.protobuf.ByteString getECDSASecp256K1()* An ECDSA(secp256k1) signature.
bytes ECDSA_secp256k1 = 6;- Specified by:
getECDSASecp256K1in interfaceSignaturePairOrBuilder- Returns:
- The eCDSASecp256k1.
-
parseFrom
public static SignaturePair parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignaturePair parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignaturePair parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignaturePair parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignaturePair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignaturePair parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SignaturePair parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SignaturePair parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SignaturePair parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SignaturePair 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<SignaturePair,SignaturePair.Builder>
-
getDefaultInstance
-
parser
-