We know in solidity it is something like this bytes4(keccak256("hello(string)") but what about serpent? In Theory we should be able to call serpent contract code from solidity using these signature hashes.

1 Answer 1


Seems that it is the same as in solidity despite the variables being named differently.

Example is here for BTCRelay: https://github.com/James-Sangalli/btcrelay/blob/gh-pages/examples/BitcoinRelayABI.js

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.