bitcoin-lib-php
bitcoin-lib-php copied to clipboard
PHP libraries implementing bitcoin key functions, as well as BIP32 and electrum.
Hi, is it possible to create other coins address with seed with bip39 in this library like trx and eth
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...
/src/BitcoinLib.php [1011] ``` public static function toBTC($satoshi) { return bcdiv((int)(string)$satoshi, 100000000, 8); } ``` Looks like it will silently fail on type overflow with 32-bit integer. bcdiv works with strings....
I have added some fix for altcoin support and added constants for Monacoin support. Also, I removed execution-rights for some PHP files (which seems to be unintentionally granted). This change...
I know it was because of a fix for a side channel attack or something like that and that that's something important but the difference is kinda big ... below...
``` php $hex = "0100000001552eed137888e6a6c2c69ded505d9e573c3d78ab0f478ecbdaf74b99b40f350d010000006b483045022100d958e320b5bbc700e7862b7832fc86d18f50be7a272399c38b35a6aecd471d68022014a02f0387a0971c4e06cac086d662615a3e07a0323e1f138d96c54c7f6aaead012102af6034f808ee5989a7ea0304cc7d464edb22a86d362739aeb4e52e759436b7f5ffffffff0240480801000000001976a91415df9c5643a3ef61ee05a92a7703f47a4ffbbcdb88ac8b0361695e0000001976a91490967f997eda3a1c0bd4358b3cd19824e46538b688ac00000000"; RawTransaction::decode($hex, '6f', 'c4'); ``` decoding works fine if i comment out the throw
The PHPECC project has been abandoned for years, despite numerous attempts to fix security issues in the code. [Paragon Initiative Enterprises](https://paragonie.com) has opted to fork PHPECC in order to provide...