public class Key extends Object
| Constructor and Description |
|---|
Key()
Generates an entirely new keypair.
|
Key(BigInteger privKey)
Creates an ECKey given only the private key.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrivateKey() |
byte[] |
getPrivateKeyBytes() |
String |
getPublicKey() |
byte[] |
getPublicKeyBytes() |
static byte[] |
publicKeyFromPrivate(BigInteger privKey)
Derive the public key by doing a point multiply of G * privateKey.
|
public Key()
public Key(BigInteger privKey)
public byte[] getPublicKeyBytes()
public String getPublicKey()
public byte[] getPrivateKeyBytes()
public String getPrivateKey()
public static byte[] publicKeyFromPrivate(BigInteger privKey)
privKey - Copyright © 2019. All rights reserved.