Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat(providers): support personal account apis #2009

Merged
merged 5 commits into from
Jan 4, 2023

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Jan 4, 2023

Motivation

In reth we are using a clique geth to perform end to end testing. To produce blocks, clique requires that geth manage a clique signing key. Geth needs the raw signing key, and must explicitly "unlock" (decrypt) the key in order to start mining.

Solution

Add support for the following personal APIs:

  • personal_importRawKey
  • personal_unlockAccount

The personal namespace is also enabled in Geth. A insecure_unlock method is added so we can use personal_unlockAccount with open HTTP RPCs.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Rjected Rjected force-pushed the personal-import-account branch from b2f6914 to 050daa8 Compare January 4, 2023 21:34
@Rjected
Copy link
Contributor Author

Rjected commented Jan 4, 2023

rebased

@gakonst gakonst merged commit c0e607d into gakonst:master Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants