mimc

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 5 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 GetConstants added in v0.6.1

func GetConstants() []big.Int

GetConstants exposed to be used in gnark

func NewMiMC

func NewMiMC() hash.Hash

NewMiMC returns a MiMCImpl object, pure-go reference implementation

func Sum

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

Sum computes the mimc hash of msg from seed

Types

This section is empty.

Jump to

Keyboard shortcuts

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