|
|
@ -281,6 +281,10 @@ $('.asmOutput button').click(function() {$(this).parent().find('pre').toggle(); |
|
|
|
|
|
|
|
|
|
|
|
var stateTrie = new EthVm.Trie(); |
|
|
|
var stateTrie = new EthVm.Trie(); |
|
|
|
var vm = new EthVm.VM(stateTrie); |
|
|
|
var vm = new EthVm.VM(stateTrie); |
|
|
|
|
|
|
|
//@todo this does not calculate the gas costs correctly but gets the job done. |
|
|
|
|
|
|
|
var identityCode = 'return { gasUsed: 1, return: opts.data, exception: 1 };'; |
|
|
|
|
|
|
|
var identityAddr = ethUtil.pad(new Buffer('04', 'hex'), 20) |
|
|
|
|
|
|
|
vm.loadPrecompiled(identityAddr, identityCode, function() { console.log(arguments); }); |
|
|
|
var secretKey = '3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511' |
|
|
|
var secretKey = '3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511' |
|
|
|
var publicKey = '0406cc661590d48ee972944b35ad13ff03c7876eae3fd191e8a2f77311b0a3c6613407b5005e63d7d8d76b89d5f900cde691497688bb281e07a5052ff61edebdc0' |
|
|
|
var publicKey = '0406cc661590d48ee972944b35ad13ff03c7876eae3fd191e8a2f77311b0a3c6613407b5005e63d7d8d76b89d5f900cde691497688bb281e07a5052ff61edebdc0' |
|
|
|
var address = ethUtil.pubToAddress(new Buffer(publicKey, 'hex')); |
|
|
|
var address = ethUtil.pubToAddress(new Buffer(publicKey, 'hex')); |
|
|
|