mimc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 13

Documentation

Overview

Package mimc provides MiMC hash function using Miyaguchi–Preneel construction.

Index

Constants

View Source
const BlockSize = fr.Bytes

BlockSize size that mimc consumes

Variables

This section is empty.

Functions

func NewMiMC

func NewMiMC(seed string) hash.Hash

NewMiMC returns a MiMCImpl object, pure-go reference implementation

func Sum

func Sum(seed string, msg []byte) ([]byte, error)

Sum computes the mimc hash of msg from seed

Types

type Params

type Params []fr.Element

Params constants for the mimc hash function

func NewParams

func NewParams(seed string) Params

NewParams creates new mimc object

Jump to

Keyboard shortcuts

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