diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-14 00:23:48 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-14 00:23:48 +0800 |
commit | 7336dfad02833989037440fb22e01566444d0100 (patch) | |
tree | 8f7dc62676e519236b69a977c7af00d81b1e0406 /pow/dash | |
parent | c9985bf563888d5f346408d2ff174167e8b65880 (diff) | |
parent | 00fca409398172811e71158e0ca9f6229e0f815b (diff) | |
download | dexon-7336dfad02833989037440fb22e01566444d0100.tar dexon-7336dfad02833989037440fb22e01566444d0100.tar.gz dexon-7336dfad02833989037440fb22e01566444d0100.tar.bz2 dexon-7336dfad02833989037440fb22e01566444d0100.tar.lz dexon-7336dfad02833989037440fb22e01566444d0100.tar.xz dexon-7336dfad02833989037440fb22e01566444d0100.tar.zst dexon-7336dfad02833989037440fb22e01566444d0100.zip |
Merge branch 'develop' into poc8
Diffstat (limited to 'pow/dash')
-rw-r--r-- | pow/dash/crypto.c | 5 | ||||
-rw-r--r-- | pow/dash/crypto.go | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/pow/dash/crypto.c b/pow/dash/crypto.c new file mode 100644 index 000000000..9c5a62d16 --- /dev/null +++ b/pow/dash/crypto.c @@ -0,0 +1,5 @@ +extern char *Sha3(char *, int); +char *sha3_cgo(char *data, int l) +{ + return Sha3(data, l); +} diff --git a/pow/dash/crypto.go b/pow/dash/crypto.go new file mode 100644 index 000000000..0644a54ae --- /dev/null +++ b/pow/dash/crypto.go @@ -0,0 +1,14 @@ +package dash + +/* +char *sha3_cgo(char *, int); // Forward declaration +*/ +import "C" +import ( + "github.com/ethereum/go-ethereum/crypto" +) + +//export Sha3 +func Sha3(data []byte, l int) []byte { + return crypto.Sha3(data) +} |