PubKey2PubHash: Create public key hash from 512-bit public key

View source: R/BtcAddresses.R

PubKey2PubHashR Documentation

Create public key hash from 512-bit public key

Description

This function returns the associated public key hash from a 512-bit public key by using the hash160() function.

Usage

PubKey2PubHash(pubkey, mainnet = TRUE)

Arguments

pubkey

character, the public key.

mainnet

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

Value

character, the hash of a public key

Author(s)

Bernhard Pfaff

References

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

See Also

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


rbtc documentation built on Oct. 20, 2024, 5:06 p.m.

Related to PubKey2PubHash in rbtc...