Learn R Programming

rbtc (version 0.1-5)

Wif2PrivKey: Create private key from WIF

Description

Returns the corresponding private key from a WIF key.

Usage

Wif2PrivKey(wif)

Arguments

wif

character, a WIF key.

Value

character, the corresponding private key.

References

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

See Also

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

Examples

Run this code
# NOT RUN {
pk1 <- createPrivateKey()
wif <- PrivKey2Wif(pk1)
pk2 <- Wif2PrivKey(wif)
identical(pk1, pk2)
# }

Run the code above in your browser using DataLab