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

Update all account create examples to use an ECDSA public key and set the corresponding EVM address derived from it #838

Open
SimiHunjan opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SimiHunjan
Copy link
Collaborator

Problem

To reduce confusion about the key type to use when creating accounts, we need to update all examples to use ECDSA public keys and set the corresponding EVM address

Solution

  • Review all places where the docs show how to create an account
  • Update all places to demonstrate the following:
const transaction = new AccountCreateTransaction()
     .setKey(ecdsaPublicKey)
     .setAlias(ecdsaPublicKey.toEvmAddress())
     .setInitialBalance(new Hbar(1))

Alternatives

No response

@SimiHunjan SimiHunjan added the enhancement New feature or request label Dec 4, 2024
@SimiHunjan SimiHunjan changed the title Update all places in docs where we create account to set an ECDSA public key and an EVM address derived from the public key Update all places in docs where we create accounts to set an ECDSA public key and an EVM address derived from the public key Dec 4, 2024
@SimiHunjan SimiHunjan changed the title Update all places in docs where we create accounts to set an ECDSA public key and an EVM address derived from the public key Update all account create examples to use an ECDSA public key and set the corresponding EVM address derived from it Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant