Public Keys
In elliptic curve cryptography, public keys are derived from private keys. Therefore, in order to obtain a public key, one must start with a private key.
//generate a random private key
var pk = SVPrivateKey(networkType: NetworkType.REGTEST);
//obtain the corresponding public key via property getter
SVPublicKey pubKey = pk.publicKey;