Bit-Wasp / bitcoin-lib-php

PHP libraries implementing bitcoin key functions, as well as BIP32 and electrum.
The Unlicense
135 stars 85 forks source link

Namespace Issue #118

Open droplister opened 6 years ago

droplister commented 6 years ago

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
afk11 commented 6 years ago

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

droplister commented 6 years ago

I am using this repo just for verifyMessage, I couldn't find that as a feature of bitcoin-php.

afk11 commented 6 years ago

It's implemented here: https://github.com/Bit-Wasp/bitcoin-php/blob/master/src/MessageSigner/MessageSigner.php