1.0.1 • Published 5 years ago

@tabcat/orbit-db-signal-protocol-store v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

orbit-db-signal-protocol-store

signal protocol store interface for orbit-db docstore: https://github.com/signalapp/libsignal-protocol-javascript/blob/master/test/InMemorySignalProtocolStore.js

Usage

install with npm:

npm install @tabcat/orbit-db-signal-protocol-store

create orbitdb instance: https://github.com/orbitdb/orbit-db/blob/master/README.md#usage

create the signal protocol store:

const docstore = await orbitdb.create('signal-protocol-store', 'docstore', { replicate:false })
// recommend disabling replication on orbit docstore so secrets are not sent to peers

const signalProtocolStore = new OrbitDBSignalProtocolStore(docstore)
// signalProtocolStore can now be used in libsignal as the store

using libsignal-protocol-javascript: