feat: add exporting/importing of non rsa keys in libp2p-key format (#179)

* feat: add exporting/importing of ed25519 keys in libp2p-key format

* feat: add libp2p-key export/import support for rsa and secp keys

* chore: dep bumps

* chore: update aegir

* refactor: import and export base64 strings

* refactor: simplify api for now

* chore: fix lint

* refactor: remove extraneous param

* refactor: clean up

* fix: review patches
This commit is contained in:
Jacob Heun
2020-08-05 17:14:12 +02:00
committed by GitHub
parent 609297be65
commit 7273739f04
16 changed files with 415 additions and 46 deletions

View File

@ -2,9 +2,11 @@
'use strict'
const chai = require('chai')
const dirtyChai = require('dirty-chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
chai.use(dirtyChai)
const { Buffer } = require('buffer')
const crypto = require('../')
const webcrypto = require('../src/webcrypto')