mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-16 03:11:03 +00:00
* fix: add buffer, cleanup, reduce size - add buffer related to https://github.com/ipfs/js-ipfs/issues/2924 - remove unnecessary eslint ignore - remove tweelnacl and use node-forge - remove browserify-aes and use node-forge - use multibase to encode b58 - require only sha256 from multihashing - reduce bundle size after all the deps here https://github.com/ipfs/js-ipfs/issues/2924 are merged libp2p-crypto will be able to be bundle with `node: false` 🎉 * fix: reduce bundle size * fix: use new secp * fix: bundle size * chore: update secp Co-Authored-By: Jacob Heun <jacobheun@gmail.com> Co-authored-by: Jacob Heun <jacobheun@gmail.com>
10 lines
445 B
JavaScript
10 lines
445 B
JavaScript
'use strict'
|
|
|
|
const { Buffer } = require('buffer')
|
|
module.exports = {
|
|
// protobuf marshaled key pair generated with libp2p-crypto-secp256k1
|
|
// and marshaled with libp2p-crypto.marshalPublicKey / marshalPrivateKey
|
|
pbmPrivateKey: Buffer.from('08021220e0600103010000000100000000000000be1dc82c2e000000e8d6030301000000', 'hex'),
|
|
pbmPublicKey: Buffer.from('0802122103a9a7272a726fa083abf31ba44037f8347fbc5e5d3113d62a7c6bc26752fd8ee1', 'hex')
|
|
}
|