github.com/waltonchain/waltonchain_gwtc_src@v1.1.4-0.20201225072101-8a298c95a819/crypto/x11/readme.md (about) 1 # GoDash - x11 2 3 Package x11 implements the hash and required functions in go. 4 5 ## Install 6 7 ```bash 8 $ go get godash.org/libs/cb-crypto/x11 9 ``` 10 11 ## Usage 12 13 ```go 14 package main 15 16 import ( 17 "fmt" 18 "godash.org/libs/cb-crypto/x11" 19 ) 20 21 func main() { 22 hs, out := x11.New(), [32]byte{} 23 hs.Hash([]byte("DASH"), out[:]) 24 fmt.Printf("%x \n", out[:]) 25 } 26 ``` 27 28 ### Notes 29 30 Echo, Simd and Shavite do not have 100% test coverage, a full test on these 31 requires the test to hash a blob of bytes that is several gigabytes large. 32 33 34 ## License 35 36 go-x11 is licensed under the [copyfree](http://copyfree.org) ISC license.