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

Description Usage Arguments Value Author(s) References See Also

View source: R/BchAddresses.R

Description

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

Usage

1
PubKey2PubHash(pubkey, mainnet = TRUE)

Arguments

pubkey

character, the public key.

mainnet

logical, whether the key 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 BchAdresses: BCHADR-class, BTCADR-class, PubHash2BchAdr(), base58CheckDecode(), base58CheckEncode(), concatHex(), decodeHex(), hash160(), hash256(), validBchAdr(), validBtcAdr()


rbch documentation built on Jan. 11, 2022, 1:06 a.m.

Related to PubKey2PubHash in rbch...