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

feat: add support for eth address standard #36

Merged
merged 19 commits into from
Dec 14, 2022
Merged

Conversation

pythonberg1997
Copy link
Contributor

@pythonberg1997 pythonberg1997 commented Nov 8, 2022

Description

Add support for eth address standard

Rationale

In order that users could sign BFS transactions by a ethereum wallet like MetaMask directly, we adopt eth's secp256k1 and address rules as our keys algorithm.

Example

N/A

Changes

Notable changes:

  • add cosmos Address implement, ETHAddress, which is compatible of BSC address
  • add secp256k1 algorithm support for key management

crypto/codec/proto.go Outdated Show resolved Hide resolved
crypto/keyring/options.go Outdated Show resolved Hide resolved
types/address.go Outdated Show resolved Hide resolved
crypto/ledger/amino.go Outdated Show resolved Hide resolved
types/address.go Outdated Show resolved Hide resolved
@@ -4,6 +4,11 @@ import (
"crypto/sha256"
)

// CurveType
const (
EthSecp256k1 = "Eth_secp256k1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

A useless definition here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will we use rosetta service?

x/auth/signing/verify.go Outdated Show resolved Hide resolved
@unclezoro unclezoro merged commit de3874e into develop Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants