Commit Graph

65 Commits

Author SHA1 Message Date
Richard Ramos f1bdb572f4 fix: code review 2020-11-14 18:35:46 +02:00
Richard Ramos ef264648fc fix: code review 2020-11-14 18:35:46 +02:00
Richard Ramos 9387bd8b2d Expose privkey_tweak_add 2020-11-14 18:35:46 +02:00
Eugene Kabanov fb9699702b
Perform constant time comparison of keys and signatures. (#24)
Bump version to 0.5.1.
2020-07-30 16:48:40 +02:00
Jacek Sieka bf6cc94a3c
use external rng instead of nimcrypto (#23)
* use external rng instead of nimcrypto

allows passing in different RNG's to generate keys

* pass in array of random data to random keygen function

* back to a proc

* docs

* gcsafe rng callback needed

* introduce foolproofrng that can't fail

* silence compiler warning

* hint at random not being good enough in defect
2020-07-06 15:07:29 +02:00
Jacek Sieka be98963599
fromHex needs to be public after all 2020-06-22 16:59:37 +02:00
Jacek Sieka 5701a60143
use requiredInit (#22)
* use requiredInit

Use requiredInit on keys - this simplifies error handling by providing
more compile-time guarantees through type.

Loophole: `clear` will leave an invalid key type in memory, not
guaranteed by type - it requires an explicit action to produce, so it's
somewhat better than the current situation where by default, keys are
invalid, but it's not watertight.

something like a `sink` would be needed which would have to guarantee
that `clear` is the last use of the instance.

* close requiresinit loophole

* remove clear for public stuff

* fix side effects

`secp256k1_context_no_precomp` is constant actually

* document nosideeffect

* document nosideeffect

* document fix
2020-06-22 16:08:21 +02:00
Jacek Sieka e8fa92a0c6
more installdirs 2020-04-17 08:05:26 +02:00
Jacek Sieka 6dce6c22ea
add installdir 2020-04-17 07:57:30 +02:00
Jacek Sieka 306289244c
add convenience api (#21)
fixes #19
2020-04-17 07:43:30 +02:00
Jacek Sieka 5af866754b
upstream: update (#18) 2020-04-11 16:38:24 +02:00
cheatfate 16b3cd84b6
Fix #17.
Bump version to 0.1.2.
2020-03-08 22:22:50 +02:00
cheatfate 25b04816a0
Fix path handling for compile targets.
Bump version to 0.1.1.
2020-03-08 20:26:54 +02:00
Ștefan Talpalaru 85b2620a6e
CI: update script path 2019-08-24 05:03:42 +02:00
Ștefan Talpalaru a41d4432a1
Merge branch 'buildnim' 2019-06-18 21:56:25 +02:00
Ștefan Talpalaru ac89b63ba7
build_nim.sh 2019-06-18 21:39:16 +02:00
Ștefan Talpalaru 53baf442f2 add "--threads:on" to tests 2019-01-15 17:30:41 +02:00
Bruno Škvorc 9b21ca7e14
Update README.md 2019-01-02 15:00:18 +01:00
Yuriy Glukhov 024cc57eb5 Fixed nimble file 2018-09-18 17:30:58 +03:00
mratsim 1b65bb7607 re-add submodule, fix windows CI regression 53b5b9388c (diff-11c909939117928998b102a1fff7d363L45) 2018-09-10 18:22:38 +02:00
mratsim 09c67ca580 Nim now uses global user cache 2018-09-10 18:08:04 +02:00
Jacek Sieka c8324b690b
appveyor: fix version check 2018-09-06 12:09:01 -06:00
Jacek Sieka fe6353e514
readme: update license 2018-09-05 12:48:35 -06:00
Jacek Sieka 53b5b9388c
ci: update
readme: fix license, badges
2018-09-04 23:05:11 -06:00
Jacek Sieka 24fa7028a6
travis: use cached nim instead of docker 2018-09-02 19:57:26 -06:00
Jacek Sieka 41dccda0d7
split build and install instructions 2018-06-17 22:10:21 +02:00
Jacek Sieka 88f3b41c19 add submodule init to install docs 2018-06-17 12:43:41 +03:00
alexm-status d0fd605137
Update README.md 2018-05-30 14:40:14 -07:00
alexm-status f1475ba26f
Update README.md 2018-05-27 14:26:27 -07:00
alexm-status 5e28e97091
Update README.md 2018-05-27 14:26:12 -07:00
alexm-status 908e5e71a6
Update README.md 2018-05-23 17:33:24 -07:00
alexm-status f22aed5b18
Update README.md 2018-05-23 17:31:18 -07:00
mratsim 5e298f06b2 fix CI link in readme 2018-04-06 16:31:46 +02:00
mratsim 0abe1b200a Fix appveyor badge 2018-03-30 12:02:33 +02:00
mratsim 16784fc6cd Add badges to README 2018-03-30 11:33:32 +02:00
mratsim 74db620c93 Update Appveyor 32-bit download path 2018-03-30 11:25:34 +02:00
Yuriy Glukhov 56f78b4aaf
Merge pull request #9 from status-im/Dont-use-int128-on-32-bit
Don't use int128 on 32 bit
2018-03-28 14:08:56 +03:00
Yuriy Glukhov eaaf9f7d9f
Merge branch 'master' into Dont-use-int128-on-32-bit 2018-03-28 14:03:31 +03:00
mratsim 89618eeff2 Finalize arch specific defines + tests 2018-03-28 12:56:26 +02:00
mratsim 6f1368f1bd update submodule before test 2018-03-28 12:48:32 +02:00
Yuriy Glukhov af0c6b1996 Trying to make it work on 32bit platforms... 2018-03-28 13:43:25 +03:00
mratsim 29b92ea420 use official release for testing. 2018-03-28 12:40:14 +02:00
mratsim 825eca67f5 Nimble was executing the compiler tests 2018-03-28 12:18:36 +02:00
mratsim c7b20c8a7a Add appveyor test config 2018-03-28 11:57:07 +02:00
Yuriy Glukhov 55adc18d0c
Merge pull request #8 from cheatfate/master
Add wrapper for secp256k1_ecdh_raw()
2018-03-21 11:43:54 +02:00
cheatfate 3a39aa0892 Add wrapper for secp256k1_ecdh_raw() 2018-03-21 11:42:07 +02:00
Yuriy Glukhov 6aea1b8dda Switch to status fork as git submodule (#7) 2018-03-21 10:30:55 +01:00
Yuriy Glukhov b810d49470
Merge pull request #6 from cheatfate/master
Added secp256k1_ecdsa_recoverable_signature_parse_compact().
2018-03-19 16:53:12 +02:00
cheatfate bbb83bab0f Added secp256k1_ecdsa_recoverable_signature_parse_compact(). 2018-03-19 16:47:21 +02:00
Yuriy Glukhov 134f825a01
Merge pull request #5 from cheatfate/master
Changing `stdcall` to `cdecl`.
2018-03-16 18:43:58 +02:00