This function returns the associated public key hash
from a 512-bit public key by using the hash160()
function.
PubKey2PubHash(pubkey, mainnet = TRUE)
character
, the hash of a public key
character
, the public key.
logical
, whether the key should correspond
to the mainnet or testnet.
Bernhard Pfaff
Other BchAdresses:
BCHADR-class
,
BTCADR-class
,
PubHash2BchAdr()
,
base58CheckDecode()
,
base58CheckEncode()
,
concatHex()
,
decodeHex()
,
hash160()
,
hash256()
,
validBchAdr()
,
validBtcAdr()