Download the PHP package bitcoin-php/bitcoin-ecdsa without Composer

On this page you can find all versions of the php package bitcoin-php/bitcoin-ecdsa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bitcoin-ecdsa

Build   Quality Score   Latest Stable Version   Downloads

WARNING

This piece of software is provided without warranty of any kind, use it at your own risk.

REQUIREMENTS

php 5.4.0 or newer.

php5-gmp needs to be installed.

If you want to launch the test file you need to be under a unix system with libbitcoin intalled on it.

USAGE

Installation

Best way is to use composer

Alternatively add the following snippet to your composer.json

Instantiation

Set a private key

examples of private keys :

4C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D 00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC

Generate a random private key

The nonce is optional, typically the nonce is a chunk of random data you get from the user. This can be mouse coordinates. Using a nonce adds randomness, which means the generated private key is stronger.

Get the private key

Returns the private key.

Get the Wif

returns the private key under the Wallet Import Format

Get the Public Key

Returns the compressed public key. The compressed PubKey starts with 0x02 if its y coordinate is even and 0x03 if it is odd, the next 32 bytes corresponds to the x coordinates.

Example : 0226c50013603b085fbc26411d5d7e564b252d88964eedc4e01251d2d495e92c29

Get the Uncompressed Public Key

Returns the uncompressed PubKey. The uncompressed PubKey starts with 0x04, the next 32 bytes are the x coordinates, the last 32 bytes are the y coordinates.

Example : 04c80e8af3f1b7816a18aa24f242fc0740e9c4027d67c76dacf4ce32d2e5aace241c426fd288a9976ca750f1b192d3acd89dfbeca07ef27f3e5eb5d482354c4249

Get the coordinates of the Public Key

Returns an array containing the x and y coordinates of the public key

Example : Array ( [x] => a69243f3c4c047aba38d7ac3660317629c957ab1f89ea42343aee186538a34f8 [y] => b6d862f39819060378542a3bb43ff76b5d7bb23fc012f09c3cd2724bebe0b0bd )

Get the Address

Returns the compressed Bitcoin Address.

Get the uncompressed Address

Returns the uncompressed Bitcoin Address.

Validate an address

Returns true if the address is valid and false if it isn't

Validate a Wif key

Returns true if the WIF key is valid and false if it isn't

Signatures

Sign a message

Returns a satoshi client standard signed message.

verify a message

Returns true if the signature is matching the address and false if it isn't.

sign a sha256 hash

Returns a DER encoded hexadecimal signature.

verify a signature

Returns true if the signature is matching the public key and false if it isn't.

Examples

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to http://unlicense.org/


All versions of bitcoin-ecdsa with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-gmp Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bitcoin-php/bitcoin-ecdsa contains the following files

Loading the files please wait ....