Documentation ¶
Index ¶
- func AddUserSignatureAndCombine(data [32]byte, userKey *btcec.PrivateKey, muunKey *btcec.PublicKey, ...) ([64]byte, error)
- func CombinePubKeysWithTweak(userKey, muunKey *btcec.PublicKey, customTweak []byte) (*btcec.PublicKey, error)
- func ComputeMuunPartialSignature(data [32]byte, userKey *btcec.PublicKey, muunKey *btcec.PrivateKey, ...) ([32]byte, error)
- func GeneratePubNonce(sessionId [32]byte) [66]byte
- func RandomSessionId() [32]byte
- func VerifySignature(data [32]byte, signature [64]byte, pubKey *btcec.PublicKey) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserSignatureAndCombine ¶
func AddUserSignatureAndCombine( data [32]byte, userKey *btcec.PrivateKey, muunKey *btcec.PublicKey, rawMuunPartialSig [32]byte, rawMuunPubNonce [66]byte, sessionId [32]byte, customTweak []byte, ) ([64]byte, error)
AddUserSignatureAndCombine with partial muun signature.
func CombinePubKeysWithTweak ¶
func GeneratePubNonce ¶
GeneratePubNonce returns the pub nonce for a given session id
func RandomSessionId ¶
func RandomSessionId() [32]byte
RandomSessionId returns a safe random session id. Session IDs must not be repeated otherwise private keys are compromised.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.