Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 7107d4f

Browse files
authored
Merge pull request #376 from ipfs/security-gpg
feat: Add security@ipfs.io GPG key
2 parents f876171 + 6500103 commit 7107d4f

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/core/components/init-assets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ module.exports = function addDefaultAssets (self, log, callback) {
3535
importer(self._ipldResolver),
3636
pull.through((el) => {
3737
if (el.path === 'files/init-docs/docs') {
38-
// const hash = mh.toB58String(el.multihash)
3938
log('to get started, enter:')
4039
log()
4140
log(`\t jsipfs files cat /ipfs/QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB`)
4241
// TODO when we support pathing in unixfs-engine
42+
// const hash = mh.toB58String(el.multihash)
4343
// log(`\t jsipfs files cat /ipfs/${hash}/readme`)
4444
log()
4545
}

src/core/components/init.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ module.exports = function init (self) {
5959
]
6060

6161
if (typeof addDefaultAssets === 'function') {
62+
console.log('init assets')
63+
6264
tasks.push((cb) => addDefaultAssets(self, opts.log, cb))
6365
}
6466

src/init-files/init-docs/security-notes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Please note the following:
1414
user provided data. But please point any problems out to us in a
1515
github issue, or email security@ipfs.io privately.
1616

17+
- security@ipfs.io GPG key:
18+
- 4B9665FB 92636D17 7C7A86D3 50AAE8A9 59B13AF3
19+
- https://pgp.mit.edu/pks/lookup?op=get&search=0x50AAE8A959B13AF3
20+
1721
- ipfs uses encryption for all communication, but it's NOT PROVEN SECURE
1822
YET! It may be totally broken. For now, the code is included to make
1923
sure we benchmark our operations with encryption in mind. In the future,

test/core/init.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ describe('init', () => {
6868
it('init docs are written', (done) => {
6969
ipfs.init({ bits: 1024 }, (err) => {
7070
expect(err).to.not.exist()
71-
const multihash = new Buffer('12205e7c3ce237f936c76faf625e90f7751a9f5eeb048f59873303c215e9cce87599', 'hex')
71+
const multihash = 'QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB'
7272

73-
ipfs.object.get(multihash, {}, (err, node) => {
73+
ipfs.object.get(multihash, { enc: 'base58' }, (err, node) => {
7474
expect(err).to.not.exist()
7575
expect(node.links).to.exist()
7676
done()

0 commit comments

Comments
 (0)