Documentation
¶
Index ¶
- Variables
- func BlindClientBlind(Rx *big.Int, Ry *big.Int, m []byte, Px, Py *big.Int) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int)
- func BlindClientUnblind(alpha *big.Int, sig *big.Int) *big.Int
- func BlindServerNonce() (*big.Int, *big.Int, *big.Int)
- func BlindServerSign(k *big.Int, c *big.Int, privkey *big.Int) *big.Int
- func BytesToNum(byteString []byte) *big.Int
- func Construct22SchnorrPubkey(a, Ax, Ay, b, Bx, By *big.Int) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int)
- func ConstructAdaptorSig(x, Px, Py *big.Int, m []byte) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int)
- func Generate22AdaptorSchnorrChallenge(Jx, Jy, Rax, Ray, Rbx, Rby, Tx, Ty *big.Int, m []byte) *big.Int
- func Generate22SchnorrChallenge(Jx, Jy, Rax, Ray, Rbx, Rby *big.Int, m []byte) *big.Int
- func GetNewKeys() (*big.Int, *big.Int, *big.Int, error)
- func GetRandomness() *big.Int
- func InitStorage()
- func MuSig2CreateSign(x1, X1x, X1y, x2, X2x, X2y, r1, R1x, R1y, r2, R2x, R2y *big.Int, m []byte) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int)
- func MuSig2Verify(Rx, Ry, Xx, Xy, s *big.Int, m []byte) bool
- func NewPrivateKey() (*big.Int, error)
- func PubkeyPointsFromPrivkey(privkey *big.Int) (*big.Int, *big.Int)
- func SchnorrSign(k, Px, Py *big.Int, m []byte, privkey *big.Int) (*big.Int, *big.Int, *big.Int)
- func SchnorrVerify(sig *big.Int, Rx, Ry *big.Int, Px, Py *big.Int, m []byte) bool
- func SerializeCompressed(pkx *big.Int, pky *big.Int) []byte
- func StateServerRequestNewPubkey(userPubkey []byte) (*big.Int, *big.Int, error)
- func StatechainGenMuSigKey(X1x, X1y, X2x, X2y *big.Int) ([]byte, *big.Int, *big.Int)
- func StatechainRequestBlindSig(userSig *big.Int, blindedMsg *big.Int, k *big.Int, userPubkey []byte, ...) (*big.Int, error)
- func VerifyAdaptorSig(spr, Rx, Ry, Tx, Ty, Px, Py *big.Int, m []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Curve *btcec.KoblitzCurve = btcec.S256() // take only the curve, can't use other stuff
View Source
var Storage map[string][]*big.Int
Functions ¶
func BlindClientBlind ¶
func BytesToNum ¶
func ConstructAdaptorSig ¶
func GetRandomness ¶
func InitStorage ¶
func InitStorage()
func MuSig2CreateSign ¶
func NewPrivateKey ¶
func SchnorrSign ¶
func SchnorrVerify ¶
func SerializeCompressed ¶
SerializeCompressed serializes a public key in a 33-byte compressed format.
func StatechainGenMuSigKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.