Closed kennt closed 1 year ago
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.
At this point, it may be easier to update the spec rather than the code/tests.
Nope. We'll fix the code and test vectors.
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());