Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for altcoins and file mode fix - #107

#107
Open
visvirial wants to merge 4 commits into
Bit-Wasp:masterBit-Wasp/bitcoin-lib-php:masterfrom
visvirial:mastervisvirial/bitcoin-lib-php:masterCopy head branch name to clipboard
Open

Add support for altcoins and file mode fix#107
visvirial wants to merge 4 commits into
Bit-Wasp:masterBit-Wasp/bitcoin-lib-php:masterfrom
visvirial:mastervisvirial/bitcoin-lib-php:masterCopy head branch name to clipboard

Conversation

@visvirial

Copy link
Copy Markdown

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 is originally written for building the EC-service CoinGift.

Comment thread src/BIP32.php

// Convert the public key to the address.
return BitcoinLib::public_key_to_address($public, $import['version']);
return BitcoinLib::public_key_to_address($public, $address_version!==null?$address_version:$import['version']);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add spaces $address_version !== null ? $address_version : $import['version']

@afk11

afk11 commented Apr 26, 2016

Copy link
Copy Markdown
Member

Phpcbf would fix these nits: vendor/bin/phpcbf -n --standard=PSR1,PSR2 src

Regarding the BIP32 bytes, since this library is maintenance only, completeness is more vital.

Have you seen the other lib? github.com/bit-wasp/bitcoin-php. You can implement a NetworkInterface easily enough!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.