Class SignaturePair

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 Classes
    Modifier and Type
    Class
    Description
    static 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 enum 
     

    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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    com.google.protobuf.ByteString
    * A smart contract virtual signature.
     
    com.google.protobuf.ByteString
    Deprecated.
    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.ByteString
    Deprecated.
    proto.SignaturePair.RSA_3072 is deprecated.
     
    boolean
    * A smart contract virtual signature.
    boolean
    Deprecated.
    proto.SignaturePair.ECDSA_384 is deprecated.
    boolean
    * An ECDSA(secp256k1) signature.
    boolean
    * An Ed25519 signature.
    boolean
    Deprecated.
    proto.SignaturePair.RSA_3072 is deprecated.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<SignaturePair>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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

      public SignaturePair.SignatureCase getSignatureCase()
      Specified by:
      getSignatureCase in interface SignaturePairOrBuilder
    • 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:
      getPubKeyPrefix in interface SignaturePairOrBuilder
      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:
      hasContract in interface SignaturePairOrBuilder
      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:
      getContract in interface SignaturePairOrBuilder
      Returns:
      The contract.
    • hasEd25519

      public boolean hasEd25519()
       *
       An Ed25519 signature.
       
      bytes ed25519 = 3;
      Specified by:
      hasEd25519 in interface SignaturePairOrBuilder
      Returns:
      Whether the ed25519 field is set.
    • getEd25519

      public com.google.protobuf.ByteString getEd25519()
       *
       An Ed25519 signature.
       
      bytes ed25519 = 3;
      Specified by:
      getEd25519 in interface SignaturePairOrBuilder
      Returns:
      The ed25519.
    • hasRSA3072

      @Deprecated public boolean 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:
      hasRSA3072 in interface SignaturePairOrBuilder
      Returns:
      Whether the rSA3072 field is set.
    • getRSA3072

      @Deprecated public com.google.protobuf.ByteString 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:
      getRSA3072 in interface SignaturePairOrBuilder
      Returns:
      The rSA3072.
    • hasECDSA384

      @Deprecated public boolean 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:
      hasECDSA384 in interface SignaturePairOrBuilder
      Returns:
      Whether the eCDSA384 field is set.
    • getECDSA384

      @Deprecated public com.google.protobuf.ByteString 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:
      getECDSA384 in interface SignaturePairOrBuilder
      Returns:
      The eCDSA384.
    • hasECDSASecp256K1

      public boolean hasECDSASecp256K1()
       *
       An ECDSA(secp256k1) signature.
       
      bytes ECDSA_secp256k1 = 6;
      Specified by:
      hasECDSASecp256K1 in interface SignaturePairOrBuilder
      Returns:
      Whether the eCDSASecp256k1 field is set.
    • getECDSASecp256K1

      public com.google.protobuf.ByteString getECDSASecp256K1()
       *
       An ECDSA(secp256k1) signature.
       
      bytes ECDSA_secp256k1 = 6;
      Specified by:
      getECDSASecp256K1 in interface SignaturePairOrBuilder
      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

      public static SignaturePair parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SignaturePair parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SignaturePair parseDelimitedFrom(InputStream input) throws IOException
      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

      public static SignaturePair.Builder newBuilder()
    • newBuilder

      public static SignaturePair.Builder newBuilder(SignaturePair prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<SignaturePair,SignaturePair.Builder>
    • getDefaultInstance

      public static SignaturePair getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SignaturePair> parser()