Skip to content

Precompiled contract details

Jay Tseng edited this page Nov 28, 2018 · 3 revisions

Kernel Support version: v0.3.2 or later version

Blake2bHash - AIP006

Allow the user to have blake2bhash inside the solidity contract

    function blake2b256(...) public returns (bytes32);

TransactionHash - AIP007

Allow the user get the transactionhash inside the solidity contract

    function transactionhash() public returns (bytes32);

EDVerify - APB-46

Allow the user to verify the message by giving the public key of the signer and the signature. the signature in the aion network is a 64-bytes, therefore, the user needs to split it into 2 parts then execute this function. the return will be the publicKey if the verify success. otherwise return all-0's address.

    function edverify(bytes32 verifyHash, bytes32 publicKey, bytes32 sig1, bytes32 sig2) returns (address)
Clone this wiki locally