mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-15 21:50:54 +00:00
* fix: replace node buffers with uint8arrays All usage of node buffers have been replaced with uint8arrays. BREAKING CHANGES: - Where node Buffers were returned, now Uint8Arrays are * chore: remove commented code
11 lines
497 B
JavaScript
11 lines
497 B
JavaScript
'use strict'
|
|
|
|
const uint8ArrayFromString = require('uint8arrays/from-string')
|
|
|
|
module.exports = {
|
|
// protobuf marshaled key pair generated with libp2p-crypto-secp256k1
|
|
// and marshaled with libp2p-crypto.marshalPublicKey / marshalPrivateKey
|
|
pbmPrivateKey: uint8ArrayFromString('08021220e0600103010000000100000000000000be1dc82c2e000000e8d6030301000000', 'base16'),
|
|
pbmPublicKey: uint8ArrayFromString('0802122103a9a7272a726fa083abf31ba44037f8347fbc5e5d3113d62a7c6bc26752fd8ee1', 'base16')
|
|
}
|