You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to implement the paserk sealing code for C++ and have noticed that the paserk-php v3 seal/unseal code is using $pk_compressed as a hex string (rather than binary). In the code from PKEv3.php (around line 171) below, shouldn't $pk_compressed = $pk_obj->toString();
be $pk_compressed = Hex::decode($pk_obj->toString());
I've changed my code to use the hex string, and all of the k3.seal.json test-vectors now pass. At this point, it may be easier to update the spec rather than the code/tests.
I've been trying to implement the paserk sealing code for C++ and have noticed that the paserk-php v3 seal/unseal code is using $pk_compressed as a hex string (rather than binary). In the code from PKEv3.php (around line 171) below, shouldn't
$pk_compressed = $pk_obj->toString();
be
$pk_compressed = Hex::decode($pk_obj->toString());
The text was updated successfully, but these errors were encountered: