Open will123195 opened 5 years ago
here's a demo using webcrypto https://github.com/kazuki/webcrypto-ecc-sample
it just needs deterministic key generation
Ah, so we kind of reinvented the wheel here.
However, note that this doesn't seem to be directly supported by webcrypto, but just specifies the way the the symmetric key gets derived from the asymmetric key.
For instance the second example uses aes-gcm as the symmetric algorithm: https://github.com/kazuki/webcrypto-ecc-sample/blob/master/webcrypto_supplements.ts
The standardised derivation routine is definitely a plus though
This way we'll have the ability to encrypt using a receiver's public key.
Example: https://github.com/bitchan/eccrypto/blob/master/browser.js#L193