Learn R Programming

rbtc (version 0.1-7)

PrivKey2PubKey: Create public key from private key

Description

This function creates the 512-bit public key corresponding to a private key.

Usage

PrivKey2PubKey(privkey, mainnet = TRUE)

Value

character, the public key.

Arguments

privkey

character, the private key.

mainnet

logical, whether the WIF should correspond to the mainnet or testnet.

Author

Bernhard Pfaff

References

https://en.bitcoin.it/wiki/Address

See Also

Other BtcAdresses: BTCADR-class, PrivKey2Wif, PubHash2BtcAdr, PubKey2PubHash, Wif2PrivKey, base58CheckDecode, base58CheckEncode, concatHex, createBtcAdr, createPrivateKey, decodeHex, hash160, hash256, validBtcAdr