Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface SignaturePairOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
SignaturePair,SignaturePair.Builder
@Generated
public interface SignaturePairOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteString* A smart contract virtual signature.com.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getPubKeyPrefix
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;- Returns:
- The pubKeyPrefix.
-
hasContract
boolean hasContract()* A smart contract virtual signature. <p> This value MUST be length zero, if set.
bytes contract = 2;- Returns:
- Whether the contract field is set.
-
getContract
com.google.protobuf.ByteString getContract()* A smart contract virtual signature. <p> This value MUST be length zero, if set.
bytes contract = 2;- Returns:
- The contract.
-
hasEd25519
boolean hasEd25519()* An Ed25519 signature.
bytes ed25519 = 3;- Returns:
- Whether the ed25519 field is set.
-
getEd25519
com.google.protobuf.ByteString getEd25519()* An Ed25519 signature.
bytes ed25519 = 3;- 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];- 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];- 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];- 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];- Returns:
- The eCDSA384.
-
hasECDSASecp256K1
boolean hasECDSASecp256K1()* An ECDSA(secp256k1) signature.
bytes ECDSA_secp256k1 = 6;- Returns:
- Whether the eCDSASecp256k1 field is set.
-
getECDSASecp256K1
com.google.protobuf.ByteString getECDSASecp256K1()* An ECDSA(secp256k1) signature.
bytes ECDSA_secp256k1 = 6;- Returns:
- The eCDSASecp256k1.
-
getSignatureCase
SignaturePair.SignatureCase getSignatureCase()
-