bitcoin-php icon indicating copy to clipboard operation
bitcoin-php copied to clipboard

Bug in secp256k1 PublicKey constructor

Open afk11 opened this issue 6 years ago • 0 comments

https://github.com/Bit-Wasp/bitcoin-php/blob/513a3b708db0eab989680549752f37ee8eb5e74e/src/Crypto/EcAdapter/Impl/Secp256k1/Key/PublicKey.php#L42

The negation is performed on the result of get_resource_type($pubkey), not get_resource_type($pubkey) == ...

afk11 avatar Oct 22 '19 23:10 afk11