PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
mycred
/
addons
/
buy-creds
/
gateways
/
Bitpay
<?php /** * @license Copyright 2011-2014 BitPay Inc., MIT License * see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE */ namespace Bitpay; /** * Object to represent a point on an elliptic curve * * @package Bitcore */ class Point implements PointInterface { /** * MUST be a HEX value * * @var string */ protected $x; /** * MUST be a HEX value * * @var string */ protected $y; /** * @param string $x * @param string $y */ public function __construct($x, $y) { $this->x = (string) $x; $this->y = (string) $y; } /** * @return string */ public function __toString() { if ($this->isInfinity()) { return self::INFINITY; } return sprintf('(%s, %s)', $this->x, $this->y); } /** * @return string */ public function getX() { return $this->x; } /** * @return string */ public function getY() { return $this->y; } /** * @return boolean */ public function isInfinity() { return (self::INFINITY == $this->x || self::INFINITY == $this->y); } /** * @inheritdoc */ public function serialize() { return serialize(array($this->x, $this->y)); } /** * @inheritdoc */ public function unserialize($data) { list( $this->x, $this->y ) = unserialize($data); } }
[+]
..
[-] Item.php
[edit]
[+]
Math
[+]
DependencyInjection
[-] BuyerInterface.php
[edit]
[-] Point.php
[edit]
[-] KeyInterface.php
[edit]
[-] PayoutTransactionInterface.php
[edit]
[-] PayoutInterface.php
[edit]
[-] InvoiceInterface.php
[edit]
[-] Autoloader.php
[edit]
[-] ApplicationInterface.php
[edit]
[-] KeyManager.php
[edit]
[-] Currency.php
[edit]
[-] ItemInterface.php
[edit]
[+]
Client
[+]
Util
[-] User.php
[edit]
[-] PayoutTransaction.php
[edit]
[-] PayoutInstruction.php
[edit]
[-] Key.php
[edit]
[-] Bitpay.php
[edit]
[+]
Network
[-] TokenInterface.php
[edit]
[-] PrivateKey.php
[edit]
[-] Buyer.php
[edit]
[-] Token.php
[edit]
[-] PublicKey.php
[edit]
[-] SinKey.php
[edit]
[+]
Storage
[+]
Config
[-] index.php
[edit]
[-] Bill.php
[edit]
[-] BillInterface.php
[edit]
[-] Application.php
[edit]
[-] Payout.php
[edit]
[-] Invoice.php
[edit]
[-] UserInterface.php
[edit]
[-] AccessToken.php
[edit]
[-] PayoutInstructionInterface.php
[edit]
[-] PointInterface.php
[edit]
[+]
Crypto
[-] CurrencyInterface.php
[edit]
[-] AccessTokenInterface.php
[edit]