Méthode |
Description |
|
binConv ( $hex ) : string |
Converts hex value into octet (byte) string |
|
checkRequirements ( ) : array |
Checks dependencies for the library |
|
decToBin ( $dec ) : string |
This method returns a binary string representation of
the decimal number. Used for the doubleAndAdd() method. |
|
decodeHex ( string $hex ) : string |
Decodes a hexadecimal value into decimal. |
|
doubleAndAdd ( $hex, Bitpay\PointInterface $point, Bitpay\Util\CurveParameterInterface $parameters = null ) |
|
|
encodeHex ( string $dec ) : string |
Encodes a decimal value into hexadecimal. |
|
guid ( ) : string |
Returns a GUID for use in REST calls. |
|
nonce ( ) : string |
Returns a nonce for use in REST calls. |
|
pointAdd ( Bitpay\PointInterface $P, Bitpay\PointInterface $Q ) : Bitpay\PointInterface |
Point addition method P + Q = R where:
s = (yP - yQ)/(xP - xQ) mod p
xR = s2 - xP - xQ mod p
yR = -yP + s(xP - xR) mod p |
|
pointDouble ( Bitpay\PointInterface $point, Bitpay\Util\CurveParameterInterface $parameters = null ) : Bitpay\PointInterface |
Point multiplication method 2P = R where
s = (3xP2 + a)/(2yP) mod p
xR = s2 - 2xP mod p
yR = -yP + s(xP - xR) mod p |
|
ripe160 ( string $data, $binary = false ) : string |
Returns a RIPDEMD160 hash of a value. |
|
sha256 ( string $data, $binary = false ) : string |
Computes a digest hash value for the given data using
the given method, and returns a raw or binhex encoded
string, see:
http://us1.php.net/manual/en/function.openssl-digest.php |
|
sha256ripe160 ( string $data ) : string |
Returns a SHA256 hash of a RIPEMD160 hash of a value. |
|
sha512 ( string $data ) : string |
Computes a digest hash value for the given data using
the given method, and returns a raw or binhex encoded
string, see:
http://us1.php.net/manual/en/function.openssl-digest.php |
|
sha512hmac ( string $data, string $key ) : string |
Generate a keyed hash value using the HMAC method. |
|
twoSha256 ( string $data, $binary = false ) : string |
Returns a double SHA256 hash of a value. |
|