lyra2rev2

package module
v0.0.0-...-bae9ad2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2016 License: BSD-3-Clause Imports: 4 Imported by: 14

README

Build Status GoDoc GitHub license

lyra2rev2 with bmw,cubuhash, and lyra2

Overview

This is Lyra2REv2 library used in Monacoin and some other altcoins. Lyra2Rev2 uses bmw hash, cubehash,lyra2, which are also included in this library.

Requirements

This requires

  • git
  • go 1.3+

Installation

 $ go get github.com/bitgoin/lyra2rev2

Example

(This example omits error handlings for simplicity.)


import "github.com/bitgoin/lyra2rev2"

func main(){
    data := []byte{0x01,0x02}
	result, err := lyra2rev2.Sum(data)
...
}

Contribution

Improvements to the codebase and pull requests are encouraged.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum

func Sum(data []byte) ([]byte, error)

Sum returns the result of Lyra2re2 hash.

Types

type CubeHash

type CubeHash struct {
	// contains filtered or unexported fields
}

CubeHash is for cubehash.

func NewCubeHash

func NewCubeHash() *CubeHash

NewCubeHash initializes anrd retuns Cubuhash struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL