Closed mjp0 closed 4 years ago
Solved this. The test above was from master branch and not hypercore-8. In hypercore-8 you apparently need to pass keyPair
from hypercore-crypto to opts
and plain secretKey
doesn't work anymore.
That's most likely a regression. Will take a look on Monday, but good you found a workaround.
I'm testing with hypercore-8 branch and I ran into a regression that passing
secretKey
inopts
doesn't produce writable hyperdrive anymore.Weird thing is that
provide keypair
test intest/basic.js
works fine, but when you copy/paste the test code as a normal js file, it fails and shows the problem.This code fails for me with
Not writable
error:P.S. Yes, I know there's tape's
t
method there but it doesn't matter because the code doesn't passdrive.on('ready')
.