Skip to content

ecrecover return ethereum address #27

@Guti

Description

@Guti

Qtum Hex Address = RIPEMD160( SHA256( PUBLIC KEY ))

Ethereum Address = KECCAK256( PUBLIC KEY ) and drop the first 12 bytes

When we use the precompiled "ecrecover" function in a smart contract we can not obtain the QTUM address with which we have signed.

ret = dev::sha3(rec);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions