Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change crypto key logic and add recovery from seed phrase #199

Open
mtbitcr opened this issue Oct 30, 2024 · 0 comments
Open

Change crypto key logic and add recovery from seed phrase #199

mtbitcr opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement Enhancement of existing code help wanted Extra attention is needed new feature New feature or request

Comments

@mtbitcr
Copy link
Contributor

mtbitcr commented Oct 30, 2024

We are currently using 3 key pairs.
ed25519 for the logic in the DHT.
RSA (2048) for encryption.
secp256k1 for signatures, as well as generating Bitcoin addresses for nodes and bills.

In the latest version of libp2p it is now possible to work with DHT based on secp256k1. Also, the same key pair is used for logic in Nostr. Thus we can reduce the number of keys to two. secp256k1 and RSA.

We can get both of these pairs from the seed phrase. Thus, to fully recover the system, we will only need the seed phrase.

RSA from seed phrase: https://medium.com/@elielmathe/deterministic-rsa-keys-from-mnemonic-seed-key-to-privacy-on-blockchains-for-personal-and-corporate-3102adc3fb42.

@mtbitcr mtbitcr converted this from a draft issue Oct 30, 2024
@mtbitcr mtbitcr changed the title Change crypto key logic Change crypto key logic and add recovery from seed phrase Oct 30, 2024
@mtbitcr mtbitcr added enhancement Enhancement of existing code help wanted Extra attention is needed new feature New feature or request labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing code help wanted Extra attention is needed new feature New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant