This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 463
release/21.0.x: missing sign and verify methods #650
Comments
also the old library provided sha256 method, and the new one does not. eosjs-webauthn-sig.ts depends on SubtleCrypto which is not available in nodejs. |
nodejs doesn't have webauthn; it's a browser standard |
yes, my point is that the old library provided methods for basic cryptography operations, compatible with both browser and nodejs, while the new one does not. Sha256 is not a big deal, changing to
|
We've added a few methods to the current edge release and they will be included on the v21 release. See #653 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As release 21 eliminates eosjs-ecc library, two important functions are missing: signing and verifying an arbitrary piece of data.
using eosio-ecc, I could take a serialized private key and sign a blob of data, and export the signature in text or binary form. Also I could load the signature from a 65-bytes binary array and verify it against a public key and the data blob.
Now if I do the same, I need to replicate the conversion from serialized form into elliptic object, and call its sign or verify methods. This creates code duplication and risk of incompatibility.
The eosjs library needs to export simple methods for signing and verifying an arbitrary blob of data. At the moment the Signature Provider object does it for transaction data directly, so there's no abstraction interface.
The text was updated successfully, but these errors were encountered: