Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for altcoins and file mode fix #107

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

visvirial
Copy link

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.

@@ -555,7 +562,7 @@ public static function key_to_address($extended_key)
}

// 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
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
Copy link
Member

afk11 commented Apr 26, 2016

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