mirror of https://github.com/ethereum/go-ethereum
parent
7e6b72cb5c
commit
35fe4313d5
@ -0,0 +1,5 @@ |
||||
extern char *Sha3(char *, int); |
||||
char *sha3_cgo(char *data, int l) |
||||
{ |
||||
return Sha3(data, l); |
||||
} |
@ -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) |
||||
} |
Loading…
Reference in new issue