aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-12-12 04:33:27 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-12-12 04:33:27 +0800
commit6762c797454aaf3a9848346341b0abaf48fc54db (patch)
treee9e77a360d5c1d7a970c8a3cafc79d3a658d007f
parent005f551bfbf153a11af7cb3c2015ccfe6cf70e08 (diff)
parentfee1a7f44cbb3a7743531b12bf1091075d435e6a (diff)
downloaddexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.tar
dexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.tar.gz
dexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.tar.bz2
dexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.tar.lz
dexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.tar.xz
dexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.tar.zst
dexon-solidity-6762c797454aaf3a9848346341b0abaf48fc54db.zip
Merge branch 'develop' into build_enhancement
-rw-r--r--CompilerState.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/CompilerState.cpp b/CompilerState.cpp
index c3dc2dda..63351bc4 100644
--- a/CompilerState.cpp
+++ b/CompilerState.cpp
@@ -72,6 +72,11 @@ void CompilerState::populateStandard()
"(def 'regname (name) { [32]'register [64]name (call allgas namereg 0 32 64 0 0) })"
"(def 'regcoin (name) { [32]name (call allgas coinreg 0 32 32 0 0) })"
"(def 'regcoin (name denom) { [32]name [64]denom (call allgas coinreg 0 32 64 0 0) })"
+ "(def 'ecrecover (r s v hash) { [0] r [32] s [64] v [96] hash (msg allgas 1 0 0 128) })"
+ "(def 'sha256 (data datasize) (msg allgas 2 0 data datasize))"
+ "(def 'ripemd160 (data datasize) (msg allgas 3 0 data datasize))"
+ "(def 'sha256 (val) { [0]:val (sha256 0 32) })"
+ "(def 'ripemd160 (val) { [0]:val (ripemd160 0 32) })"
"}";
CodeFragment::compile(s, *this);
}