simplito / elliptic-php

Fast, general Elliptic Curve Cryptography library. Supports curves used in Bitcoin, Ethereum and other cryptocurrencies (secp256k1, ed25519, ..)
MIT License
220 stars 52 forks source link

jsonSerialize - php 8.1 patch #40

Closed cblanquera closed 2 years ago

cblanquera commented 2 years ago

Just reporting deprecation when using this with php 8.1

Deprecated: Return type of Elliptic\Curve\ShortCurve\Point::jsonSerialize() should either be compatible with 
JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be 
used to temporarily suppress the notice in 
[project]/vendor/simplito/elliptic-php/lib/Curve/ShortCurve/Point.php on line 84
laama1 commented 2 years ago

Hi. Same will occur in BN.php, it has jsonSerialize too.