tessera
tessera copied to clipboard
use QKM as enclave
Instead of retrieving secret key material from QKM, generate the key pairs on QKM itself and do all public key cryptography in QKM so that the private key never leaves QKM.
- implement the
Enclave
interface as a proxy for QKM stored keys - add a class QKMEncryptor similar to Encryptor but without relying on exposing shared keys to tessera. QKMEncryptor should use the QKM public key interface (see https://consensys.github.io/quorum-key-manager/#tag/Keys)
- QKM itself has to be extended to support the NaCL crypto_box primitives (for shared key generation/encrypting messages to remote public key)