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

HIP-583 updates #87

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions reference/examples/AccountCreateEvmAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Reference: [HIP-583 Expand alias support in CryptoCreate & CryptoTransfer Transa
- Ethereum account address / public-address - This is the rightmost 20 bytes of the 32 byte Keccak-256 hash of the ECDSA public key of the account. This calculation is in the manner described by the Ethereum Yellow Paper.
- Use the `AccountCreateTransaction` and set the EVM address field to the Ethereum public address
- Sign the transaction with the key that us paying for the transaction
- Sign the account with the evm address corresponding private key
- Get the transaction record and show the evm_address field populated
- Get the account ID from the receipt
- Get the `AccountInfo` and return the account details
- Verify the evm address provided for the account matches what is in the mirror node
8 changes: 6 additions & 2 deletions reference/examples/CreateAccountWithAlias.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Reference: [HIP-583 Expand alias support in CryptoCreate & CryptoTransfer Transa
- Get the ECDSA public key
- Use the `AccountCreateTransaction` and populate the `setAlias(<ECDSA_public_key)` field
- Sign the `AccountCreateTransaction` using an existing Hedera account and key to pay for the transaction fee
- Sign the transaction with private key that corresponds with the public key alias
- Execute the transaction
- Return the transaction record with the alias field populated with the ECDSA public key
- Return the Hedera account ID from the receipt of the transaction
- Get the `AccountInfo` using the new account ID
- Get the `AccountInfo` using the account public key in `0.0.aliasPublicKey` format
Expand All @@ -17,11 +19,13 @@ Reference: [HIP-583 Expand alias support in CryptoCreate & CryptoTransfer Transa


## Example 2:
- Create an ED2519 private key
- Create an ED25519 private key
- Get the ED2519 public key
- Use the `AccountCreateTransaction` and populate the `setAlias(<ECDSA_public_key)` field
- The public key alias should be different then the public key on the account
- Use the `AccountCreateTransaction` and populate the `setAlias(<ED25519_public_key)` field
- Sign the `AccountCreateTransaction` using an existing Hedera account and key to pay for the transaction fee
- Execute the transaction
- Return the ED25519 public key alias from the transaction record
- Return the Hedera account ID from the receipt of the transaction
- Get the `AccountInfo` using the new account ID
- Get the `AccountInfo` using the account public key in `0.0.aliasPublicKey` format
Expand Down