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

Derivate locally wallet address #2

Closed
Agusx1211 opened this issue Jan 3, 2019 · 1 comment
Closed

Derivate locally wallet address #2

Agusx1211 opened this issue Jan 3, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Agusx1211
Copy link
Contributor

Currently, the wallet address must be manually introduced by the SDK user, could be generated using the Marmo Factory address, the proxy bytecode and the credentials of the signer.

This should be replied on the SDK

    function marmoOf(address _signer) external view returns (address) {
        return address(
            uint256(
                keccak256(
                    abi.encodePacked(
                        byte(0xff),
                        address(this),
                        bytes32(uint256(_signer)),
                        hash
                    )
                )
            )
        );
    }
@Agusx1211 Agusx1211 added the enhancement New feature or request label Jan 3, 2019
@Agusx1211 Agusx1211 pinned this issue Jan 3, 2019
@majd1239
Copy link
Collaborator

majd1239 commented Jan 4, 2019

Done: #8

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

2 participants