15 lines
218 B
Go
15 lines
218 B
Go
|
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)
|
||
|
}
|