chash

package
v0.0.0-...-16eb0c8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Size = sha256.Size

Variables

This section is empty.

Functions

func Verify

func Verify(target ChameleonHash, Y, R curve.Point, m *big.Int) bool

Verify verifies a given target with original params.

Types

type ChameleonHash

type ChameleonHash [Size]byte

func ComputeCollision

func ComputeCollision(Y curve.Point, x, r, m, mp, q *big.Int) (ChameleonHash, *big.Int, curve.Point)

ComputeCollision computes an instance of collision of the given chameleon hash.

func ComputeHash

func ComputeHash(Y, R curve.Point, m *big.Int) ChameleonHash

ComputeHash computes the chameleon hash.

func (ChameleonHash) Equals

func (ch ChameleonHash) Equals(target ChameleonHash) bool

func (ChameleonHash) String

func (ch ChameleonHash) String() string

Jump to

Keyboard shortcuts

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