aboutsummaryrefslogtreecommitdiffstats
path: root/pow/dash/crypto.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-12 17:19:27 +0800
committerobscuren <geffobscura@gmail.com>2015-01-12 17:19:27 +0800
commit35fe4313d57e1df6c3c8af0bc0b530bd7033e21b (patch)
treeed6b22ac3691315d0f208856bc8070bc1f5896a3 /pow/dash/crypto.go
parent7e6b72cb5c0172b8a6a15239a6628b64c8f8de23 (diff)
downloadgo-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.tar
go-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.tar.gz
go-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.tar.bz2
go-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.tar.lz
go-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.tar.xz
go-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.tar.zst
go-tangerine-35fe4313d57e1df6c3c8af0bc0b530bd7033e21b.zip
pre-pow
Diffstat (limited to 'pow/dash/crypto.go')
-rw-r--r--pow/dash/crypto.go14
1 files changed, 14 insertions, 0 deletions
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)
+}