Documentation
¶
Index ¶
- Constants
- func BlindMessage(secret string, r *secp256k1.PrivateKey) (*secp256k1.PublicKey, *secp256k1.PrivateKey, error)
- func HashToCurve(message []byte) (*secp256k1.PublicKey, error)
- func Hash_e(pubkeys []*secp256k1.PublicKey) [32]byte
- func SignBlindedMessage(B_ *secp256k1.PublicKey, k *secp256k1.PrivateKey) *secp256k1.PublicKey
- func UnblindSignature(C_ *secp256k1.PublicKey, r *secp256k1.PrivateKey, K *secp256k1.PublicKey) *secp256k1.PublicKey
- func Verify(secret string, k *secp256k1.PrivateKey, C *secp256k1.PublicKey) bool
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 ¶
The domain separator is b"Secp256k1_HashToCurve_Cashu_" or bytes.fromhex("536563703235366b315f48617368546f43757276655f43617368755f").
func SignBlindedMessage ¶
C_ = kB_
func UnblindSignature ¶
func UnblindSignature(C_ *secp256k1.PublicKey, r *secp256k1.PrivateKey, K *secp256k1.PublicKey) *secp256k1.PublicKey
C = C_ - rK
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.