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

Create Hedera Account Service contract #4620

Closed
Tracked by #4619
lukelee-sl opened this issue Jan 12, 2023 · 1 comment
Closed
Tracked by #4619

Create Hedera Account Service contract #4620

lukelee-sl opened this issue Jan 12, 2023 · 1 comment
Assignees

Comments

@lukelee-sl
Copy link
Member

Problem

Epic: #4619

Currently the Hedera Account Service is not defined in Solidity making it unaccessible.

Solution

Create an interface (IHederaAddressService) and contract (HederaAddressService) files for the Hedera Account Service contract in the smart contracts repo as specified in the following table.

hash signature return description
e9482d42 getVirtualAddresses(address) address[] returns an array of virtual addresses for a given Hedera Account ID
a4e310ba getHederaAddress(address) (responseCode, address) returns the top level Hedera Account ID if applicable
d501235a isVirtualAddress(address) bool true if valid virtual address, false if long-zero or non existing account
b2526367 isAuthorized(address, messageHash, signatureBlob) bool true if account is authorized to carry out transaction execution on account. Accepts protobuf key signature blobs. May be used for ECDSA, ED25519 and complex key flows
d501235a isAuthorizedRaw(address, messageHash, signatureBlob) bool true if account is authorized to carry out transaction execution on account. Accepts single key raw signature blobs (ECDSA and ED25519). This provides similar logic to ECRECOVER.

Alternatives

No response

@david-bakin-sl
Copy link
Member

Already done.

@github-project-automation github-project-automation bot moved this from Sprint Backlog to Done in Smart Contract Sprint Board Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants