lyra2rev3

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

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

Go to latest
Published: Apr 30, 2020 License: BSD-3-Clause Imports: 4 Imported by: 2

README

Build Status GoDoc GitHub license

lyra2rev3

Overview

This is Lyra2REv3 library used in Vertcoin

Installation

 $ go get github.com/adamcollier1/lyra2rev3

Example

(This example omits error handlings for simplicity.)


import "github.com/adamcollier1/lyra2rev3"

func main(){
    data := []byte{0x01,0x02}
	result, err := lyra2rev3.SumV3(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.

func SumV3

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

Sum returns the result of Lyra2re3 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