Gruruya
|
340606cb8c
|
Consistently apply {.noinit.} pragma
|
2023-04-05 17:54:06 -04:00 |
Gruruya
|
78a0f867a2
|
Correct template parameter naming
|
2023-04-05 17:49:48 -04:00 |
Gruruya
|
359a54ab44
|
Remove `nimble.lock`, was breaking tests on Nim >1.6
Was causing
`Error: cannot open file: stew/byteutils`
|
2023-04-05 14:53:40 -04:00 |
Gruruya
|
f50180d1e5
|
Inline `signSchnorr Rng` procs
|
2023-04-04 20:55:05 -04:00 |
Gruruya
|
87bd737715
|
Remove unused template param
|
2023-04-04 20:41:52 -04:00 |
Gruruya
|
0fe89981c6
|
Make `signSchnorr` accept `Opt[array[32, byte]]` rather than `[array[32,byte]]`
|
2023-04-04 19:49:09 -04:00 |
Gruruya
|
f2518c6282
|
Fix on Nim 1.2
|
2023-04-04 19:32:22 -04:00 |
Gruruya
|
059e007469
|
Unify `schnorrSig` implementations and add `array[32, bytes]` variant
|
2023-04-04 19:25:24 -04:00 |
Gruruya
|
0ae96c588e
|
Rename `signSchnorr` without `rng` to `signSchnorrUnsafe`
|
2023-04-04 16:40:15 -04:00 |
Gruruya
|
a2cfa22b20
|
Remove non-`rng` signSchnorr variant from tests
|
2023-04-04 16:37:43 -04:00 |
Gruruya
|
b35f4556f6
|
Add comment detailing that `signSchnorr` without an `rng` is discouraged
|
2023-04-04 15:32:05 -04:00 |
Gruruya
|
8d8fa3864c
|
Don't check the RNG for Schnorr sig using private key requirements.
|
2023-04-04 15:22:34 -04:00 |
Gruruya
|
9c0c7a766b
|
Remove unneeded {.bycopy.}
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
|
2023-04-04 15:22:23 -04:00 |
Gruruya
|
f9c4f33d4d
|
Correct `noncefp` to be a pointer in `extraparams` object
|
2023-04-04 04:05:40 -04:00 |
Gruruya
|
37ec59be9e
|
Comments
|
2023-04-04 03:33:36 -04:00 |
Gruruya
|
3c80efbeee
|
Allow passing a `Rng`/`FoolproofRng` to `signSchnorr` for improved security
|
2023-04-04 03:08:15 -04:00 |
Gruruya
|
978d4fdee0
|
Comment
|
2023-04-04 01:09:45 -04:00 |
Gruruya
|
552031cceb
|
Fix errors on Nim 1.2
|
2023-04-04 01:05:53 -04:00 |
Gruruya
|
c193667f53
|
Add low-level test for `secp256k1_keypair`
|
2023-04-04 00:48:06 -04:00 |
Gruruya
|
6465acd0e6
|
Comments
|
2023-04-04 00:43:22 -04:00 |
Gruruya
|
a2a6e9ea49
|
Add from/to raw/hex
|
2023-04-04 00:37:43 -04:00 |
Gruruya
|
acb11b2031
|
Remove extra test
|
2023-04-04 00:12:55 -04:00 |
Gruruya
|
f32bef8d60
|
Add `default` {.error.} proc for SkSchnorrSignature
|
2023-04-04 00:11:37 -04:00 |
Gruruya
|
5c02a843fe
|
Remove accidental extra indentation
|
2023-04-03 23:52:03 -04:00 |
Gruruya
|
c749e86971
|
Fix type
|
2023-04-03 23:51:14 -04:00 |
Gruruya
|
51420c40bd
|
Reduce code duplication
|
2023-04-03 23:50:16 -04:00 |
Gruruya
|
e75a1e2c82
|
Rework patch. Implement Schnorr signing and undo breaking changes.
|
2023-04-03 23:42:03 -04:00 |
Gruruya
|
7a36c249f8
|
Re-order
|
2023-04-03 22:43:37 -04:00 |
Gruruya
|
289e60fcd3
|
Small fixes
|
2023-04-03 19:50:43 -04:00 |
Gruruya
|
8e2e9cf762
|
Add more helper procs for new SkKeyPair
|
2023-04-03 19:11:27 -04:00 |
Gruruya
|
858d6ca3d6
|
Make SkKeyPair a wrapper around secp256k1_keypair
|
2023-04-03 18:25:51 -04:00 |
Gruruya
|
2ed110f198
|
Remove unnecessary {.bycopy.} pragmas
Done under the impression that {.bycopy.} is not necessary when only
passing the object to C via ptr.
|
2023-04-03 18:23:44 -04:00 |
Gruruya
|
e0d2aa198a
|
Fix schnorr magic const declaration on 1.6 and below
|
2023-03-30 22:02:14 -04:00 |
Gruruya
|
2d529dc845
|
Add tests for Schnorr signing
|
2023-03-30 22:02:07 -04:00 |
Gruruya
|
668bf39b2a
|
Add Schnorrsig interface to `abi.nim`
Multikey interface is a dependency the for schnorrsig, so it was added
as well.
|
2023-03-30 20:06:30 -04:00 |
Gruruya
|
b3d0e8d841
|
Add {.bycopy.} pragma
|
2023-03-30 17:59:18 -04:00 |
Gruruya
|
445963cf46
|
Enable Schnorrsig module in wrapper
The extrakeys module is a dependency for Schnorrsig, so that's enabled as well.
|
2023-03-30 17:58:54 -04:00 |
jangko
|
4c41c5029f
|
ci: workaround for nim 1.6 and nim devel
|
2023-02-23 12:49:23 +07:00 |
jangko
|
169ad82cea
|
reduce compiler warnings
|
2023-02-23 12:08:51 +07:00 |
Jacek Sieka
|
fd173fdff8
|
enable x86_64 assembly on x86_64 only (#42)
|
2022-12-05 14:54:12 +01:00 |
Jakub Sokołowski
|
72a9c4dd56
|
ci: add Jenkinsfile for running tests on macos
Also adds a `Makefile` to seaprate out the building of compiler.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
|
2022-12-05 12:39:05 +01:00 |
Jacek Sieka
|
eb5868e069
|
bump upstream, fix cuchar warnings (#39)
|
2022-11-24 16:20:13 +02:00 |
Jacek Sieka
|
88b2702fea
|
bump checkout, avoid redundant PR builds
|
2022-11-23 09:03:37 +01:00 |
Jacek Sieka
|
8e1d11c799
|
update ci/nimble (#40)
* update flag parsing
* fix mac CI
|
2022-11-19 16:50:01 +01:00 |
Kim De Mey
|
c7f1a37d9b
|
Merge pull request from GHSA-q3x5-92cp-3pjr
|
2022-08-19 17:22:43 +02:00 |
Ivan Yonchovski
|
ab99e2de33
|
Add setup files (#38)
|
2022-07-25 22:08:33 +03:00 |
Miran
|
e625f47423
|
move -d:nimRawSetjmp to nim.cfg (#37)
Refs https://github.com/status-im/nimbus-build-system/issues/44
|
2022-07-25 21:57:38 +03:00 |
zah
|
5340cf1881
|
Restructure the project to allow nimble check to pass (#36)
* Restructure the project to allow nimble check to pass
* Add a lock file
|
2022-06-20 14:31:15 +03:00 |
Ștefan Talpalaru
|
e092373a5c
|
CI: test with multiple Nim versions (#35)
|
2022-01-11 18:28:34 +01:00 |
Tanguy
|
153ec71a34
|
Fix for styleCheck:usages (#34)
|
2021-12-27 11:27:55 +01:00 |