net.i2p.router.crypto.ratchet

## Class Elg2KeyPair

- java.lang.Object
- - net.i2p.crypto.KeyPair
  - - net.i2p.router.crypto.ratchet.Elg2KeyPair

-     public class Elg2KeyPair
      extends KeyPair

  X25519 key pair with pre-calculated Elligator2-encoded public key

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Elg2KeyPair(PublicKey publicKey, PrivateKey privateKey, byte[] enc)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getEncoded()`

    - ### Methods inherited from class net.i2p.crypto.KeyPair

      `getPrivate, getPublic`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Elg2KeyPair

          public Elg2KeyPair(PublicKey publicKey,
                             PrivateKey privateKey,
                             byte[] enc)

  - ### Method Detail

    - #### getEncoded

          public byte[] getEncoded()