ChainSafe / discv5

A Typescript implementation of the Discv5 protocol
Apache License 2.0
28 stars 15 forks source link

Find appropriate aes-gcm library #5

Closed Mikerah closed 5 years ago

Mikerah commented 5 years ago

For encryption during the operation of discv5, we need to use AES-GCM.

Determine whether there's an appropriate library implemented in js/ts or roll our own (maybe in AssemblyScript).

Mikerah commented 5 years ago

I have added stubs until a decision is made.

Mikerah commented 5 years ago

I found out that milagro-crypto-js has a AES-GCM implementation. As milagro is used extensively in bls-js, it's a good candidate.

Mikerah commented 5 years ago

Echoing #2 , we have a milagro-crypto fork with types.