We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` $publicKeyHex = "03c8fc5c87f00bcc32b5ce5c036957f8befeff05bf4d88d2dcde720249f78d9313"; $pubKeyFactory = new PublicKeyFactory(); $publicKey = $pubKeyFactory->fromHex($publicKeyHex); $pubKeyHash = $publicKey->getPubKeyHash();
// this one is from andkom/php-bitcoin-address and it works echo OutputFactory::p2pk($publicKey->getBinary())->address();
`
The text was updated successfully, but these errors were encountered:
The OutputFactory in andkom/php-bitcoin-address is a different implementation from that library, not this one.
I think the P2PK address is just the pubkey hex, unless I'm mistaken. What does andkom/php-bitcoin-address output and I'll see how we can match it?
Sorry, something went wrong.
No branches or pull requests
`
$publicKeyHex = "03c8fc5c87f00bcc32b5ce5c036957f8befeff05bf4d88d2dcde720249f78d9313";
$pubKeyFactory = new PublicKeyFactory();
$publicKey = $pubKeyFactory->fromHex($publicKeyHex);
$pubKeyHash = $publicKey->getPubKeyHash();
`
The text was updated successfully, but these errors were encountered: