commitment

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(amount, timestamp int64, counter uint64, g, h *ed25519.Point, negateHash bool) ([]byte, error)

Commit generates a commitment from amount, timestamp, counter and the public key (ED25519 point) Commitment = r * G * amount_scalar * Hash(timestamp || counter)

Types

This section is empty.

Jump to

Keyboard shortcuts

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