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

add: erc2335 enc/dec function #2

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

add: erc2335 enc/dec function #2

wants to merge 6 commits into from

Conversation

wnjoon
Copy link

@wnjoon wnjoon commented Jan 6, 2025

Description

This PR adds an erc2335 structure for storing encrypted BLS keys. Specifically:

  • Import "github.com/wealdtech/go-eth2-wallet-encryptor-keystorev4" library for erc2335
  • Functions for encrypt/decrypt BLS

To generate the BLS key, the bls structure written in crypto/bls12381 is used.

Tasks

  • Create erc2335 type of structure from bls private key and password (encrypt)
  • Returns the bls private key using a structure of type erc2335 and a password (decrypt)
  • Unit tests

@wnjoon wnjoon requested a review from dongsam January 7, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants