arnaucube / go-blindsecp256k1 Goto Github PK
View Code? Open in Web Editor NEWBlind signatures over secp256k1 elliptic curve
License: GNU General Public License v3.0
Blind signatures over secp256k1 elliptic curve
License: GNU General Public License v3.0
Looks like this check should be removed or modified:
go-blindsecp256k1/blindsecp256k1.go
Line 199 in b301670
The big.Int type can have less than 32 bytes if the number starts with "0x00" (we've found this issue in a working code)
The following code
h := "001ec8a5ac7b6f30f24582a1cc7a99714162d9f73d5b5b1d64c3df0b53914320"
b, _ := hex.DecodeString(h)
bi := new(big.Int).SetBytes(b)
fmt.Printf("%s | %x | %d\n", bi.String(), bi.Bytes(), len(bi.Bytes()))
produces this output, thus the big.Int is of 31 bytes (but still válid).
54390227768401831994291737067988167540000774869646691930140901779484787488 | 1ec8a5ac7b6f30f24582a1cc7a99714162d9f73d5b5b1d64c3df0b53914320 | 31
If the signature requires 32 bytes but a big.Int type is used as input, I think the function should build the padding
Change the current 'custom' types & methods, and use the Go standard types https://pkg.go.dev/crypto/ecdsa#PublicKey
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.