Logo
Explore Help
Sign In
fluencelabs/js-libp2p-crypto
1
0
Fork 0
You've already forked js-libp2p-crypto
mirror of https://github.com/fluencelabs/js-libp2p-crypto synced 2025-05-12 06:57:20 +00:00
Code Issues Projects Releases Wiki Activity
js-libp2p-crypto/test/fixtures/secp256k1.js

10 lines
445 B
JavaScript
Raw Normal View History

feat: add support for secp256k1 keys through the `libp2p-crypto-secp256k1` module
2017-02-04 04:23:38 -05:00
'use strict'
fix: add buffer, cleanup, reduce size (#170) * 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>
2020-03-23 15:55:35 +00:00
const { Buffer } = require('buffer')
feat: add support for secp256k1 keys through the `libp2p-crypto-secp256k1` module
2017-02-04 04:23:38 -05:00
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')
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 110ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API