Commit Graph

27 Commits

Author SHA1 Message Date
Lee Miller 37b79ccde1
Add additional functions:
encodePublic(publicKey), decodePublic(publicKey) used in
encrypt() and decrypt() respectively - to comply with the network.

Minor formatting change.
2023-01-03 18:00:44 +02:00
Jordan Baczuk ad39c5d117 update dependencies and secp256k1 api. fixes #42 2019-09-25 14:54:02 -06:00
Erik Nilsson 98f7eec7e7 eccrypto.generatePrivate() (#38)
* eccrypto.generatePrivate()

* Fix comment indentation
2019-03-23 19:02:32 -06:00
Jordan Baczuk 1ac5b09ce5
1.1 (#34)
1.1.0
2018-12-11 07:47:43 -07:00
Kagami Hiiragi 55d7c343dd Fix for latest nan and secp256k1-node
Fixes #10
2015-11-08 16:28:45 +03:00
Chad Engler 3922b1b4ab move ecdh load into try{}; add fallback override env var 2015-05-28 06:57:06 -07:00
Chad Engler 365674f622 fix jshint issue 2015-05-27 08:39:33 -07:00
Chad Engler 0ebe1f0be6 add fallback to browser is secp256k1 2015-05-27 08:29:18 -07:00
Kagami Hiiragi 0101427024 Pass `null` instead of `undefined` on `.verify` 2015-02-10 16:52:38 +03:00
Kagami Hiiragi 9dbecf0592 Update to latest secp256k1-node 2015-01-28 16:14:17 +03:00
Kagami Hiiragi 9f0bbd6aa2 Fix 2015-01-21 03:06:23 +03:00
Kagami Hiiragi 4351c28a6c Add more input checkings 2015-01-21 03:04:56 +03:00
Kagami Hiiragi a95815cc7a Fix for short messages
Zero-pad it for secp256k1
2015-01-20 23:17:25 +03:00
Kagami Hiiragi 1cf476250a ECIES (Node) 2015-01-14 02:29:39 +03:00
Kagami Hiiragi 4e1001a842 ECDH (Node) 2015-01-13 22:39:37 +03:00
Kagami Hiiragi cd217b2d02 ECIES (Browser) 2015-01-13 16:21:11 +03:00
Kagami Hiiragi 4e3f857332 Fix API 2015-01-13 15:11:53 +03:00
Kagami Hiiragi e723993d1c Refactoring 2015-01-12 20:50:21 +03:00
Kagami Hiiragi f10072c932 Do not overwrite global variables
Also do not use Promise shim in browsers since it's supported natively
by new browsers (and we can use only new browsers because of the
WebCryptoAPI).
2015-01-06 14:21:46 +03:00
Kagami Hiiragi ae968011a8 Fix doc strings 2015-01-02 18:21:24 +03:00
Kagami Hiiragi b9f504f800 Remove boilerplate 2015-01-02 16:47:09 +03:00
Kagami Hiiragi f8c682da07 Typo fix 2014-12-26 21:02:01 +03:00
Kagami Hiiragi bc3e660761 Accept private key too when verify 2014-12-26 20:48:39 +03:00
Kagami Hiiragi b39277ba24 Browser ECDSA with the help of elliptic 2014-12-25 18:45:43 +03:00
Kagami Hiiragi e103615f49 Implement sign/verify for node implementation 2014-12-24 02:14:28 +03:00
Kagami Hiiragi bade7b61fa Start to implement node wrapper 2014-12-23 23:28:40 +03:00
Kagami Hiiragi e23721404b Initial commit 2014-12-21 20:46:37 +03:00