crypto

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DomainSeparator = "Secp256k1_HashToCurve_Cashu_"

Variables

This section is empty.

Functions

func BlindMessage

func BlindMessage(secret string, r *secp256k1.PrivateKey) (*secp256k1.PublicKey,
	*secp256k1.PrivateKey, error)

B_ = Y + rG

func HashToCurve

func HashToCurve(message []byte) (*secp256k1.PublicKey, error)

The domain separator is b"Secp256k1_HashToCurve_Cashu_" or bytes.fromhex("536563703235366b315f48617368546f43757276655f43617368755f").

func Hash_e

func Hash_e(pubkeys []*secp256k1.PublicKey) [32]byte

DLEQ HASH

func SignBlindedMessage

func SignBlindedMessage(B_ *secp256k1.PublicKey, k *secp256k1.PrivateKey) *secp256k1.PublicKey

C_ = kB_

func UnblindSignature

C = C_ - rK

func Verify

func Verify(secret string, k *secp256k1.PrivateKey, C *secp256k1.PublicKey) bool

k * HashToCurve(secret) == C

Types

This section is empty.

Jump to

Keyboard shortcuts

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