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 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址