| 1 | <?php |
||
| 9 | class CompactSignature extends Signature implements CompactSignatureInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var EcAdapter |
||
| 13 | */ |
||
| 14 | private $ecAdapter; |
||
|
|
|||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int|string |
||
| 18 | */ |
||
| 19 | private $recid; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | private $compressed; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param EcAdapter $adapter |
||
| 28 | * @param \GMP $r |
||
| 29 | * @param \GMP $s |
||
| 30 | * @param int $recid |
||
| 31 | * @param bool $compressed |
||
| 32 | */ |
||
| 33 | public function __construct(EcAdapter $adapter, \GMP $r, \GMP $s, $recid, $compressed) |
||
| 44 | 19 | ||
| 45 | /** |
||
| 46 | 19 | * @return Signature |
|
| 47 | */ |
||
| 48 | public function convert() |
||
| 52 | 19 | ||
| 53 | 19 | /** |
|
| 54 | 19 | * @return int |
|
| 55 | 19 | */ |
|
| 56 | public function getRecoveryId() |
||
| 60 | 17 | ||
| 61 | /** |
||
| 62 | 17 | * @return bool |
|
| 63 | */ |
||
| 64 | public function isCompressed() |
||
| 68 | 17 | ||
| 69 | /** |
||
| 70 | 17 | * @return int |
|
| 71 | */ |
||
| 72 | public function getFlags() |
||
| 76 | 17 | ||
| 77 | /** |
||
| 78 | 17 | * @return \BitWasp\Buffertools\BufferInterface |
|
| 79 | */ |
||
| 80 | public function getBuffer() |
||
| 84 | } |
||
| 85 |