Interface SecpKeyPair

All Superinterfaces:
AsymmetricKey, DEREncodablePREVIEW, Destroyable, ECKey, ECPrivateKey, Key, PrivateKey, SecpPrivKey, Serializable
All Known Implementing Classes:
SecpKeyPairImpl

public interface SecpKeyPair extends SecpPrivKey
A single object containing a private key and its derived public key.
  • Method Details

    • publicKey

      SecpPubKey publicKey()
      Get the public key
      Returns:
      public key
    • privateKey

      SecpPrivKey privateKey()
      Get the private key
      Returns:
      private key
    • of

      static SecpKeyPair of(SecpPrivKey privKey, SecpPubKey pubKey)
      Create a keypair from a private key and its matching public key
      Parameters:
      privKey - private key
      pubKey - matching public key
      Returns:
      key pair