bitcoin-lib-php
bitcoin-lib-php copied to clipboard
Namespace Issue
I get this error when using verifyMessage on 1.1.0. Looks like the namespacing has changed.
Argument 5 passed to BitWasp\BitcoinLib\BitcoinLib::recoverPubKey() must be an instance of Mdanter\Ecc\GeneratorPoint, instance of Mdanter\Ecc\Primitives\GeneratorPoint given, called in /home/forge/bitcorns.com/releases/20181003123600/vendor/bitwasp/bitcoin-lib/src/BitcoinLib.php on line 1005
Err, probably a version constraint somewhere didn't follow semver. Try fixing the mdanter/ecc version to something low, 0.2.x or 0.3.x?
If you've only found this library now, you should drop this and use http://github.com/bit-wasp/bitcoin-php
I am using this repo just for verifyMessage, I couldn't find that as a feature of bitcoin-php.
It's implemented here: https://github.com/Bit-Wasp/bitcoin-php/blob/master/src/MessageSigner/MessageSigner.php