orbitdb-archive / ipfs-log

Append-only log CRDT on IPFS
https://orbitdb.github.io/ipfs-log/
MIT License
398 stars 55 forks source link

Add setIdentity method #260

Closed oed closed 5 years ago

oed commented 5 years ago

Description

This PR adds a setIdentity method so that identities can be changed when the log is already initialized. The reason for adding this is that we might want to start syncing a database before the user has been authenticated.

I wasn't sure if I should make it into a method like this or a javascript setter. Let me know if I should change it.

shamb0t commented 5 years ago

Lgtm :+1: thanks @oed !