Skip to content

samli88/go-x11-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-x11-hash

Implements the X11 hash and required functions in Go

Usage

    package main

    import (
        "fmt"

        "github.com/samli88/go-x11-hash"
    )

    func main() {
        hs, out := x11.New(), [32]byte{}
        hs.Hash([]byte("DASH"), out[:])
        fmt.Printf("%x \n", out[:])
    }

Notes

The echo, simd and shavite implementations do not have 100% test coverage. A full test on these requires the test to hash a blob of bytes that is several gigabytes large.

License

go-x11-hash is licensed under the copyfree ISC License.

Attribution/Credit

This entire repository is based on an original work by Nitya Sattva originally found at https://gitlab.com/nitya-sattva/go-x11. Only a few tweaks have been made to rename some of the hash algorithms to align with those names used in Dash Core, and fix permissions.

About

X11 hashing algorithm in Go MIGRATED TO GITLAB: https://gitlab.com/samli88/go-x11-hash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages