mirror of
https://github.com/arnaucube/go-blindsecp256k1.git
synced 2026-02-06 19:16:40 +01:00
Migrate to geth/secp256k1, add checks
Migrate from btcd/btcec to go-ethereum/crypto/secp256k1 Abstract calls on secp256k1.S256() Change newRand approach, use ecdsa.GenerateKey underneath Add check of size of mBlinded & k when blind signing
This commit is contained in:
@@ -66,7 +66,10 @@ func blindv0(this js.Value, values []js.Value) interface{} {
|
||||
Y: signerRy,
|
||||
}
|
||||
|
||||
mBlinded, user := blindsecp256k1v0.Blind(m, signerQ, signerR)
|
||||
mBlinded, user, err := blindsecp256k1v0.Blind(m, signerQ, signerR)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
r := make(map[string]interface{})
|
||||
r["mBlinded"] = mBlinded.String()
|
||||
|
||||
Reference in New Issue
Block a user