ppyne/BitcoinKeys

Feature request: public key to to rmd160 hash

Opened this issue · 0 comments

As described for example over here: https://learnmeabitcoin.com/technical/public-key-hash, maybe like this:

`function publicToHash(string $public):string {

$public = hex2bin($public);

$public = openssl_digest(
$public,
'sha256',
true
);

return openssl_digest(
$public,
'ripemd160'
);
}`