11 Commits

Author SHA1 Message Date
Jacek Sieka
6a513ae02e
secp: adapt to secp256k1 update (#220) 2020-04-12 07:50:34 +02:00
Jacek Sieka
ec1492a65a result -> results 2020-04-07 13:32:10 +03:00
Jacek Sieka
42b36d1aef
secp: handle invalid keys better (#210)
* secp: handle invalid keys better

we can't guarantee with the type system that invalid keys don't exist,
so we have to introduce error handling for it
2020-04-04 11:40:47 +02:00
Jacek Sieka
02d661503f
refactor secp interface (#203)
* avoid mix of exceptions and return codes
* introduce result
* use deprecated compatibility API to avoid big-bang refactoring
* loosely based on nim-libp2p secp as well as the rust-secp256k1 wrapper
* oh, boy does our secp256k1 wrapper need updating - we're _far_
behind...
2020-04-02 14:40:29 +02:00
Zahary Karadjov
6ef16785ce
Add equals operator for keys 2020-02-19 11:11:45 +02:00
Zahary Karadjov
d70bb85392 Review all exceptions and classify them as Defects and Errors 2020-02-06 16:32:00 +01:00
Zahary Karadjov
fc327718fb
Added PrivateKey.toKeyPair 2020-01-21 18:58:26 +02:00
Yuriy Glukhov
091239a710 Addded non-recoverable signature type and routines 2020-01-08 17:22:43 +02:00
Yuriy Glukhov
10e35d3def Support for compressed public key format 2019-11-21 11:50:12 +02:00
Ștefan Talpalaru
9146e8e2f0
assert() -> doAssert() 2019-03-13 23:15:26 +01:00
Yuriy Glukhov
4c89f9e270 Moved eth-keys to eth 2019-02-05 12:32:22 +02:00