framework icon indicating copy to clipboard operation
framework copied to clipboard

Feat/signer integration

Open saitunc opened this issue 1 month ago • 0 comments

Signer module integration to Settlement module

This PR closes issues #302 and #301.

Changes

  • MinaSigner interface and InMemoryMinaSigner module 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 inside InMemoryMinaSigner, 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

saitunc avatar Nov 21 '25 09:11 saitunc