mimc

package
v0.0.0-...-69a8e72 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

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