starknet.js icon indicating copy to clipboard operation
starknet.js copied to clipboard

feat: new external signer to handle external signer provider such as Dfns

Open fondation451 opened this issue 7 months ago • 5 comments

Motivation and Resolution

Before, there was only a default signer with direct access to the private key. I have been using wallet provider such as Dfns which provides signing functions as a service. I derived from the implementation of the default signer, a signer that rely on an external service. I think that it may be useful to have it in the library.

Usage related changes

  • Introduction of a new signer to use external signing service such as Dfns

Development related changes

  • It is based on the default signer. All the method that needs the private key are overwritten to use the external service

Checklist:

  • [ ] Performed a self-review of the code
  • [ ] Rebased to the last commit of the target branch (or merged it into my branch)
  • [ ] Linked the issues which this PR resolves
  • [ ] Documented the changes in code (API docs will be generated automatically)
  • [ ] Updated the tests
  • [ ] All tests are passing

fondation451 avatar Apr 01 '25 17:04 fondation451

I don't see a gain in doing a simple wrapper, as any dev can extend Signer on their own for whatever it's needed. But if we are going to merge this, it would need some examples in the documentation on how to use it. Can you add these examples @fondation451 for the Dfns you mentioned?

tabaktoni avatar May 06 '25 10:05 tabaktoni

bump

tabaktoni avatar May 22 '25 14:05 tabaktoni

@tabaktoni this is dfns @fondation451 is talking about https://docs.dfns.co/d/api-docs/keys we know that some dapps on Starknet are using it as KMS

adrienlacombe avatar May 28 '25 12:05 adrienlacombe

This is fine, but we need either tests or at least documentation examples of how the devs would use it.

tabaktoni avatar Jun 04 '25 08:06 tabaktoni

@fondation451 could you please add tests and doc 🙏

adrienlacombe avatar Jun 06 '25 09:06 adrienlacombe