Commit Graph

22 Commits

Author SHA1 Message Date
arnaucube
644e740875 Split parsers file old-uncompressed - new-compressed 2021-12-04 18:10:03 +01:00
arnaucube
04b9532b53 Update Bytes method to use Compress
Update Bytes method to use .Compress() internally. For Point, PublicKey,
Signature.
Keep old uncompressed .Bytes() methods for backwards compatibility.
2021-11-18 16:45:12 +01:00
arnaucube
0e9f71e07e 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
2021-11-18 10:40:35 +01:00
arnaucube
ccaa631337 Add Signature Compression & Decompression 2021-03-23 17:24:13 +01:00
arnaucube
8b985dba31 Add Point Compression & Decompression methods 2021-03-13 09:35:17 +01:00
arnaucube
8ac13100e7 Add test hash odd bytes for js compatibility
To ensure compatibility with https://github.com/arnaucube/blindsecp256k1-js/
2021-02-11 23:29:17 +01:00
arnaucube
ac5d00b892 Add checks to inputs at Blind & BlindSign 2021-02-09 20:51:50 +01:00
arnaucube
876755a714 Update Unblind inputs removing unnecessary m
- Update Unblind inputs removing unnecessary `m`
- Add mod at Blind & BlindSign
2021-02-03 23:26:05 +01:00
arnaucube
d09769d510 Signature.S mod N 2021-02-01 19:32:24 +01:00
arnau
40de297340 Merge pull request #1 from p4u/master
add NewPublicKeyFromECDSA
2021-02-01 19:08:41 +01:00
p4u
0f621d4ac8 add NewPublicKeyFromECDSA
In order to easy import an ethereum like ECDSA public key into a
blindsecp256k1 type public key.

Signed-off-by: p4u <pau@dabax.net>
2021-02-01 17:47:12 +01:00
arnaucube
1846d569ac Add byte parsers for Point, PubK, Signature 2021-01-30 21:50:41 +01:00
arnaucube
6b93980674 Add json Marshalers 2021-01-17 19:53:06 +01:00
arnaucube
becff7b647 Update interface 2021-01-16 20:53:55 +01:00
arnaucube
ec095bba83 Implement https://sci-hub.do/10.1109/ICCKE.2013.6682844
Previous to this commit there was the implementation of "[An Efficient Blind Signature Scheme Based on the Elliptic Curve Discrete Logarithm Problem](http://www.isecure-journal.com/article_39171_47f9ec605dd3918c2793565ec21fcd7a.pdf)" paper by by Morteza Nikooghadama & Ali Zakerolhosseini.

This commit adds the implementation of "[New Blind Signature Schemes Based on the (Elliptic Curve) Discrete Logarithm Problem](https://sci-hub.do/10.1109/ICCKE.2013.6682844)" paper by Hamid Mala & Nafiseh Nezhadansari.
2021-01-11 21:08:46 +01:00
arnaucube
c3e4afc552 Add WASM wrappers & compiled 2021-01-10 23:32:24 +01:00
arnaucube
a7ea30d815 secp256k1 WASM compatibility
Use github.com/btcsuite/btcd/btcec instead of
github.com/ethereum/go-ethereum/crypto/secp256k1 for WASM compilation
compatibility.
2021-01-10 23:02:52 +01:00
arnaucube
c7b358b28c Add GHA (tests & lint), add descr, update readme 2021-01-10 19:45:03 +01:00
arnaucube
e5f0e122a7 Add README.md 2021-01-10 17:27:22 +01:00
arnaucube
6b175a9393 Add blind signature scheme methods 2021-01-10 16:47:20 +01:00
arnaucube
560c9030c1 Add secp256k1 wrappers 2021-01-10 14:32:45 +01:00
arnaucube
bdead8ba84 init repo add LICENSE 2021-01-10 14:16:55 +01:00