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

Save encryptionKey in Oplog header? #95

Closed Nuhvi closed 2 years ago

Nuhvi commented 2 years ago

Relevant https://github.com/hypercore-protocol/corestore-next/pull/15

Opening an encrypted Hypercore from storage without the encryptionKey causes some issues, for example, opening a core with _discoveryKey only while replicating using Corestore, see https://github.com/hypercore-protocol/corestore-next/issues/14 and https://github.com/hypercore-protocol/corestore-next/pull/15