hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

fix(open from existing): create encrypted core from unencrypted core #104

Closed Nuhvi closed 2 years ago

Nuhvi commented 2 years ago

same logic in core.session() added to core._openFromExisting with one difference; new core will override existing.encryption

Allows https://github.com/hypercore-protocol/corestore-next/pull/17 to pass

mafintosh commented 2 years ago

@Nazeh hmm somehow this got a ton of unrelated changes bundled into it

Nuhvi commented 2 years ago

@mafintosh My bad, solved now. The function is not simplified as you suggested, but close enough