6 Commits

Author SHA1 Message Date
Hugo Dias
35f196ea4d
fix: add buffer and update deps (#25)
* fix: add buffer and update deps

update secp256k1 dep and fix code
use multibase to encode b58
avoid un-necessary circular dependency no libp2p-crypto
use  only sha256 from multihashing-async

* Update src/crypto.js

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>

* chore: remove commitlint from CI

Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-03-17 11:59:23 +01:00
Alex Potsides
1974eb92be feat: use async await (#18)
BREAKING CHANGE: Callback support has been dropped in favor of async/await.

* feat: use async/await

This PR changes this module to remove callbacks and use async/await. The API is unchanged aside from the obvious removal of the `callback` parameter.

refs https://github.com/ipfs/js-ipfs/issues/1670

* fix: use latest multihashing-async as it is all promises now
2019-07-10 11:35:58 +01:00
Alberto Elias
f4dbd62e49 feat: add id() method to Secp256k1PrivateKey
Feature parity with ed25519 and rsa
2019-02-20 13:23:05 +01:00
David Dias
0dcf1a6f52 fix: circular circular dep -> DI 2017-07-22 13:31:42 -07:00
David Dias
4ee48a737a feat: next libp2p-crypto (#4)
* feat: next libp2p-crypto

* chore: update deps
2017-07-22 11:12:30 -07:00
Yusef Napora
4c36aeba17 feat: initial implementation 2017-02-09 12:35:39 +01:00