mratsim
56e569936a
Export raw_key - Discovery depends on hashing the raw_key
2018-03-22 08:54:49 +01:00
Yuriy Glukhov
34732e8440
Merge pull request #10 from status-im/Private-fields-remove-ttmath-for-secp256k1-backend
...
[WIP] Private fields + remove ttmath for secp256k1 backend
2018-03-21 23:14:20 +02:00
mratsim
85e7f11efe
Remove tests of private fields + Hide privat fields for real
2018-03-21 21:03:12 +01:00
mratsim
a4ed335c8b
Fix tests with ttmath
2018-03-21 18:21:49 +01:00
mratsim
4454750f95
Hide the (r,s) in signature
2018-03-21 17:59:50 +01:00
mratsim
b4f513c847
Rebase on master (new serialization #9 and tests #11 )
2018-03-21 16:45:39 +01:00
mratsim
6383b00bc2
Hiding fields, removing ttmath from libsecp backend
2018-03-21 16:37:31 +01:00
Yuriy Glukhov
0c4bc995d2
Tests for Signature serialization ( #11 )
2018-03-21 16:29:58 +01:00
mratsim
92bdd41643
Remove ttmath and allow compilation to C, change "private" field names.
2018-03-21 15:54:41 +01:00
Yuriy Glukhov
09c42764e3
Added signature serialization procs ( #9 )
2018-03-21 15:45:52 +01:00
mratsim
98e8886f86
Hiding fields, removing ttmath from libsecp backend
2018-03-21 14:11:48 +01:00
Yuriy Glukhov
ef185ff1ee
PublicKey serialization and stringification ( #8 )
2018-03-21 10:57:36 +01:00
Mamy Ratsimbazafy
74bdca4f1c
Merge pull request #7 from yglukhov/parse-pubkey
...
Added parsePublicKey and some helpers
2018-03-16 10:48:14 +01:00
Yuriy Glukhov
9154b14e53
Added parsePublicKey and some helpers
2018-03-16 11:29:00 +02:00
Zahary Karadjov
a1c604c073
use the correct case-sentive name of the SHA2 module
2018-03-15 16:21:56 +02:00
mratsim
36fe3e56b4
Fix hmac seq[bytes] -> string conversion
2018-03-15 12:18:10 +01:00
mratsim
0a20775035
Merge branch 'master' of https://github.com/status-im/nim-eth-keys
2018-03-13 15:42:12 +01:00
mratsim
b5a4d72ad3
Fix: 0.18.0 $
on array broke nimSHA2
...
https://github.com/jangko/nimSHA2/issues/2
2018-03-13 15:42:06 +01:00
Mamy Ratsimbazafy
adf29031da
Merge pull request #3 from yglukhov/travis
2018-03-12 22:01:40 +07:00
Yuriy Glukhov
23d2290bd4
Moved recovery interface to libsecp package
2018-03-12 16:51:28 +02:00
Yuriy Glukhov
2986baf484
Travis config
2018-03-03 12:03:07 +02:00
mratsim
cc15d36cfe
Fix $
compat with Nim 0.18
2018-03-02 11:59:29 +01:00
mratsim
c132fac2ce
Relicense under dual Apachev2/MIT
2018-03-02 11:57:43 +01:00
mratsim
af6f00bd78
require Nim 0.18
2018-03-02 10:11:55 +01:00
mratsim
946c8270d4
^
not **
is the proper power operator in Nim
2018-03-01 16:40:03 +01:00
Mamy Ratsimbazafy
5e192ebec9
Fix native backend compilation (static types only) ( #4 )
...
* Fix types
* Fix compilation of native backends (implementation tests still fails)
2018-03-01 16:33:34 +01:00
mratsim
18b8617d37
toHex: array indexing requires explicit bytes->int conversion
...
on latest devel
2018-03-01 13:43:42 +01:00
Zahary Karadjov
6c300a2c6f
Set license to Apache v2
2018-02-27 19:41:16 +02:00
mratsim
24bd6e354b
Update README: Implementation with libsecp256k1 backend finished
2018-02-14 20:49:26 +01:00
mratsim
c042a71175
Add signing verification and public key recovery
2018-02-14 20:40:05 +01:00
mratsim
ea6316d5ce
Add message signing + tests
2018-02-14 19:50:36 +01:00
mratsim
4ee4227eec
merge leftover
2018-02-14 17:55:57 +01:00
Mamy Ratsimbazafy
d3df9f5055
Libsecp256k1 backend ( #2 )
...
* Add safe hex, endianness and bytes conversion tools
* comment typo endianess -> endianness
* Add libsecp256k1 - private and public keygen and serialization + tests
2018-02-14 16:24:29 +01:00
Mamy Ratsimbazafy
33b9df4c83
[WIP] add native ECDSA backend implementation (⚠ to be debugged)
...
* Add jacobian primitives
* Add ECDSA algos
* Implement ECDSA, HMAC crypto (to be cleaned up)
* [WIP] test suite
* Fix arrayOfBytes <-> UInt256 casting issue
* ecdsa_raw_sign: Fix shadowing result which lead to implicit object field construction requires a .partial object
* Fix casting + remove tests covered by ranged type
* Fix toHex conversion and add first test (failing)
* Fix modular inversion for unsigned ints
* Add modulo template
* Public key generation bug still to hunt.
2018-02-13 19:20:27 +01:00
mratsim
326e44dd17
gitignore and readme update
2018-02-08 11:26:57 +01:00
mratsim
0f4617cd2f
initial commit
2018-02-08 10:51:13 +01:00