framework
framework copied to clipboard
Feat/signer integration
Signer module integration to Settlement module
This PR closes issues #302 and #301.
Changes
-
MinaSignerinterface andInMemoryMinaSignermodule is implemented. This module is used as a key managament system, where private keys are held here and signings are done from here. This enables settlement transactions to be signed insideInMemoryMinaSigner, without exposing private keys to any other part of the memory. - Besides contract keys, any Token Bridge key and their owner/admin keys are kept in the signer and retrieved by using a
Map. This enables users to pass the regarding public key only - signer will find the private key and execute signings. - Settlement contract used to take settlementKey as input and assert that public key matches with the relevant contract. To keep private key safe, now a signature created by settlement contract key.
Commit Details
- Implemented Signer interface and
InMemoryMinaSigner: da8204c - Updated SettlementUtils.ts: b58840d
- Updated bridging module: c72ce51
- Updated
settlementTestFn: 91b42b7