Is very easy to use, import the library and use it like:
Import the library with dep:
dep ensure -add "github.com/jgimeno/go-namehash"
And use it like:
nameHash := kns.NameHash("foo.eth")
And it returns a common.Hash.
Implementation in golang of the namehash function used in ethereum name system ENS
Is very easy to use, import the library and use it like:
Import the library with dep:
dep ensure -add "github.com/jgimeno/go-namehash"
And use it like:
nameHash := kns.NameHash("foo.eth")
And it returns a common.Hash.
Implementation in golang of the namehash function used in ethereum name system ENS