IlanGodik has quit [Quit: Connection closed for inactivity]
herzmeister has quit [Quit: Leaving]
herzmeister has joined #ipfs
tmg has quit [Quit: Lost terminal]
fleeky_ has joined #ipfs
cwill has quit [Ping timeout: 248 seconds]
fleeky__ has quit [Ping timeout: 244 seconds]
lothar_m has quit [Quit: WeeChat 1.7-dev]
skoocda has joined #ipfs
skoocda has quit [Remote host closed the connection]
ivo_ has quit [Ping timeout: 245 seconds]
rgrinberg has quit [Remote host closed the connection]
jugash[m] has joined #ipfs
ivo_ has joined #ipfs
jn__ has joined #ipfs
rgrinberg has joined #ipfs
<pjz>
anyone have a pointer to a good validity-checking alg for addrs? So far all I've come up with to check is length and (maybe?) initial bytes are Qm
cubemonk1y has joined #ipfs
mildred1 has joined #ipfs
mildred has quit [Ping timeout: 260 seconds]
daemoz has joined #ipfs
kulelu88 has quit [Quit: Leaving]
cubemonk1y has quit [Ping timeout: 240 seconds]
ivo_ has quit [Ping timeout: 245 seconds]
hospes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
herzmeister has quit [Quit: Leaving]
herzmeister has joined #ipfs
wak-work has quit [Ping timeout: 258 seconds]
ivo_ has joined #ipfs
wak-work has joined #ipfs
mguentner has quit [Ping timeout: 260 seconds]
<Mateon1>
pjz: Decode it to bytes and check if the bytes make sense... maybe
<keks>
pjz: try to parse it with a multiaddr lib. I know about go and js, maybe there are implementations for other languages. if not, you can see how it is done there
<Mateon1>
For cids you might want to parse it with multibase
mguentner has joined #ipfs
eibriel has quit [Ping timeout: 246 seconds]
elico1 has joined #ipfs
elico has quit [Ping timeout: 258 seconds]
eibriel has joined #ipfs
nausea has quit [Ping timeout: 245 seconds]
nausea has joined #ipfs
nausea has joined #ipfs
nausea has quit [Changing host]
dignifiedquire has quit [Quit: Connection closed for inactivity]
smtudor has joined #ipfs
mguentner has quit [Quit: WeeChat 1.6]
mguentner has joined #ipfs
reit has quit [Ping timeout: 258 seconds]
lkcl has quit [Read error: Connection reset by peer]
UgJkA has joined #ipfs
robattila256 has quit [Ping timeout: 260 seconds]
smtudor has quit [Read error: Connection reset by peer]
cubemonk1y has joined #ipfs
sametsisartenep has quit [Quit: zZzZzZzZz]
giodamelio has quit [Ping timeout: 250 seconds]
giodamelio has joined #ipfs
ianopolous has quit [Read error: Connection reset by peer]
ianopolous has joined #ipfs
A124 has quit [Remote host closed the connection]
A124 has joined #ipfs
ulrichard has joined #ipfs
yoosi has quit [Remote host closed the connection]
yoosi has joined #ipfs
lkcl has joined #ipfs
lkcl has quit [Read error: Connection reset by peer]
<mib_kd743naq>
I moved away from cidv1 ( it ends up more overhead for the way I use ipfs ), but it still seems like a bug (unless I grossly misunderstood something )
<whyrusleeping>
uhm... what happens?
<whyrusleeping>
what do you mean when you say "doesnt work" ?
<mib_kd743naq>
the link doesn't resolve: in offline mode it fails, in online mode the damon keeps waiting
<mib_kd743naq>
I can put a really simple example with this
<mib_kd743naq>
just checking first if it should work
<mib_kd743naq>
I'll just put together a failing example, sec
reit has joined #ipfs
JustinDrake has joined #ipfs
<mib_kd743naq>
whyrusleeping: sorry, broke my generator (it's still not a real program)
<mib_kd743naq>
I fully understand the example is non-sensical, it is simplified maximally to illustrate the problem
josselin has joined #ipfs
<mib_kd743naq>
( daemon is running if you want to fetch the actual blocks )
sprint-helper has quit [Remote host closed the connection]
sprint-helper has joined #ipfs
DiCE1904 has quit [Read error: Connection reset by peer]
DiCE1904 has joined #ipfs
Taek has quit [Ping timeout: 260 seconds]
<mib_kd743naq>
yeah verified everything, I will just post this as an issue
bastianilso____ has joined #ipfs
josselin has quit [Remote host closed the connection]
chriscool1 has joined #ipfs
eibriel has quit [Ping timeout: 240 seconds]
Geertiebear has joined #ipfs
Geertiebear has quit [Remote host closed the connection]
eibriel has joined #ipfs
chriscool1 has quit [Quit: Leaving.]
chriscool1 has joined #ipfs
bastianilso____ has quit [Quit: bastianilso____]
espadrine has joined #ipfs
JustinDrake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mib_kd743naq has quit [Ping timeout: 260 seconds]
drakaro[m] has joined #ipfs
JustinDrake has joined #ipfs
JustinDrake has quit [Client Quit]
mib_kd743naq has joined #ipfs
dignifiedquire has joined #ipfs
cubemonk1y has quit [Read error: Connection reset by peer]
robattila256 has joined #ipfs
lothar_m has joined #ipfs
chriscool1 has quit [Ping timeout: 244 seconds]
rugu has joined #ipfs
<rugu>
Hey, is there any particular reason, ipfs repos don't allow use of semi-colons? Seems node devs are pretty divided on this point
<ansuz>
it's desirable to have everyone working on a codebase using the same style, and the style that was agreed upon is standardjs
<ansuz>
personally, I'm a semicolon guy
Encrypt has joined #ipfs
chriscool1 has joined #ipfs
<haad>
dignifiedquire: sha3 building is broken with electron with the new crypto code. it's the module version mismatch between node and electron. the canonical way is to use electron-rebuild (run after install) but that's failing too throwing an error "../src/node/../core/scoped_ssl.h:6:10: fatal error: 'openssl/aes.h' file not found".
JustinDrake has joined #ipfs
maxlath has joined #ipfs
<rugu>
ansuz: I just feel semi-colon makes things so safe.
<dignifiedquire>
yes known issue
<haad>
dignifiedquire: is it reported? is there any workarounds?
<haad>
any known fix?
<dignifiedquire>
there are issues open on js-multihasing-async libp2p-crypto
<dignifiedquire>
only fix is to not use it if it fails to compile and fallback to js
<haad>
why is that the only fix? file not found error sounds like a configuration problem in the build process. is that an issue on node-webcrypto-ossl side or on ours?
<dignifiedquire>
that is an issue of chromium/electron
<dignifiedquire>
which is marked as nofix
<dignifiedquire>
chromium uses boringssl instead of openssl
<dignifiedquire>
so compiling native bindings to openssl fails
<dignifiedquire>
see the issues things are referenced in detail there
<haad>
can you point me to the issues? I need to figure something out because Orbit is not usable atm. on any platform as electron fails and js-ipfs is not there yet with the updates js-ipfs-api got
<rugu>
dignifiedquire: Thanks, I am trying to do ecdh key exchange and then use aes to get an encryption key. But in core node, the entire cypto module is synchronous!
<pinbot>
now pinning /ipfs/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU
<pinbot>
[host 6] failed to grab refs for /ipfs/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU: Post http://[fc29:9fda:3b73:c1d2:9302:31e3:964c:144c]:5001/api/v0/refs?arg=/ipfs/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU&r=true&encoding=json&stream-channels=true&: dial tcp [fc29:9fda:3b73:c1d2:9302:31e3:964c:144c]:5001: getsockopt: connection timed out
<pinbot>
[host 1] failed to grab refs for /ipfs/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU: Post http://[fce3:c53b:c3c5:2f54:8bb0:b6d9:898e:f140]:5001/api/v0/refs?arg=/ipfs/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU&encoding=json&stream-channels=true&r=true&: dial tcp [fce3:c53b:c3c5:2f54:8bb0:b6d9:898e:f140]:5001: getsockopt: connection timed out
ZaZ has quit [Read error: Connection reset by peer]
bastianilso____ has joined #ipfs
wahah has joined #ipfs
<wahah>
hey
mildred1 has quit [Ping timeout: 260 seconds]
<wahah>
guys a noobie question, If I add a callback option to a synchronous function, does it become asynchronous? For example if I want to make the ECDH and encryption in https://nodejs.org/api/crypto.html async then?
mildred1 has joined #ipfs
anewuser has joined #ipfs
<dignifiedquire>
wahah: no
<wahah>
dignifiedquire: any suggestions on how to encrypt stuff async?
<wahah>
i will be using ecdh, aes and ecdsa
<dignifiedquire>
in node.js core you can't in the sense it will always be blocking the event loop, but if you need an async api you can create an wrapper around the function
<dignifiedquire>
function myAsyncFunc (cb) {
<dignifiedquire>
cb(err, res)
<dignifiedquire>
})
<dignifiedquire>
process.nextTick(function () {
<dignifiedquire>
}
<dignifiedquire>
const done = function (err, res) {
<dignifiedquire>
let result
<dignifiedquire>
try {
<dignifiedquire>
result = doSyncThing()
<dignifiedquire>
} catch (err) {
<dignifiedquire>
return done(err)
<dignifiedquire>
}
pfrazee has joined #ipfs
<wahah>
I assume at the end of result I will pass done(null, val) ?
<dignifiedquire>
if you want to not block the event loop you would need to use child_process and spawn another process
reit has quit [Ping timeout: 256 seconds]
<wahah>
isn't blocking the loop bad in nodejs. It is designed to handle multiple concurrent requests
<wahah>
dignifiedquire: so using process.nextTick() will allow me to make a sync code node js function async and not block the event loop?
<dignifiedquire>
it isn't great no, but that's how it is implemented in node core, (these are mostly simple bindings calling openssl functions under the hood)
<dignifiedquire>
wahah: it changes the interface of the function, but not the way of how the actual execution of doSyncThing is done
<dignifiedquire>
the nextTick is to avoid having callbacks that return synchronously
<wahah>
dignifiedquire: I know how to add a callback to a sync function, but if I use the above, does the encryption function (sync by default) become non-blocking?
<wahah>
if in ipfs I call multiple files together, each will require its own decryption which will by default block the event loop
<dignifiedquire>
you can't change how it is implemented
<wahah>
I understand, but in libp2p-crypto module, the functions seem to run async
<dignifiedquire>
which function?
ylp has quit [Ping timeout: 260 seconds]
<wahah>
dignifiedquire: I have seen that request, but it has not been resolved. A link to another library that implements in async is given. Well ipfs encryption blocks the thread as well? It seems
<wahah>
webcrypto library is used and not the native crypto
<dignifiedquire>
right, libp2p-secio uses differen things depending on where it is run
<dignifiedquire>
it uses webcrypto-ossl which is truely async on node.js and webcrypto in the browser which as well is truly async and executes operations on a different os thread
<wahah>
dignifiedquire: I am setting up an authorization server in which ecdh and aes will be used to encrypt username, password. The payload will be sent via lib-p2p
<wahah>
dignifiedquire: webcrypto-ossl has a big warning that says not for production use so I got pretty nervous seeing it :D
<dignifiedquire>
well it has its drawbacks
sametsisartenep has joined #ipfs
<dignifiedquire>
but that's mostly cross os installation
<dignifiedquire>
you could just use libp2p-crypto, it exposes interfaces for both ecdh and aes
<lgierth>
because that's exactly where the cli commands go to too
<James_Epp>
I accepted the firewall settings from windows when the popup came up.
JustinDrake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lgierth>
i'm out of advice for now, best to file an issue in the go-ipfs repo
ygrek has joined #ipfs
<lgierth>
here on irc things just scroll away :)
<James_Epp>
This is weird. I had the daemon running, I was at least connected to peers. Now I'm not.
<James_Epp>
Must be port forwarding or something.
ulrichard has quit [Remote host closed the connection]
<James_Epp>
I figured it out. I'm an idiot.
<lgierth>
what was it?
<James_Epp>
I had two shells open. %IPFS_PATH% was not the same on both. 100% my fault.
<lgierth>
ah yeah that would do that :)
arpu has quit [Ping timeout: 258 seconds]
anewuser has joined #ipfs
jonnycrunch has quit [Quit: jonnycrunch]
jonnycrunch has joined #ipfs
JustinDrake has joined #ipfs
jedahan has joined #ipfs
arpu has joined #ipfs
herzmeister has quit [Quit: Leaving]
herzmeister has joined #ipfs
ygrek has quit [Remote host closed the connection]
anewuser has quit [Quit: anewuser]
<James_Epp>
A friend and I are trying to test ipfs between each other. Everytime I download his hash on two windows computers I get to 10MB and it stops dead. Can anyone else reproduce? It's an ubuntu iso. Qmbgverh1vLpFt4RpVem3iYtrPsDNafY3rAidsMvVyV77j
<lgierth>
this is you two eh? QmcSbaSMEWrtsQ9mC4KUJuXrVBGJdK9ok9FCErLmUpcP8r & QmSVuGFHbCZfk7FGDsf5CAdUwDRPNjvhLNsrVPFonMzq1y
ygrek has joined #ipfs
<lgierth>
mh yeah i'm only getting two or three blocks too
<lgierth>
your friend on 0.4.4 too?
<deltab>
is it exactly the same point?
<lgierth>
it shouldn't matter that much, i'm just making sure it's nothing ancient :)
<lgierth>
ah i just got a bit more data -- naybe you're blocked on bandwidth between each other?
<deltab>
er, what I mean is, does it stop at exactly the same point?
<lgierth>
ipfs.io gateway api is happily loading it