Fusion identities are a way to specify how multiple devices relates in such a way that they represent a new combined (fusion) identity. This code is an implementation of the fusion identity spec.
Requires the ssb-db2 and ssb-db2-box2 modules to be used on the ssb server.
Initializes the fusion identity code, meaning:
- existing keys are loaded into db2
- newly consented feeds are automatically entrusted the key
- posts a proof-of-key when entrusted a key for a fusion identity
Returns an objects with the following methods:
Create a new fusion identity and entrust yourself with the private key.
Invite a feedId
to be part of a fusion identity. fusion
is an
object with rootId
property.
Consent to joining a fusion identity. fusion
is an
object with rootId
property.
Tombstone a fusion identity so that it can no longer be used.
fusion
is an object with rootId
property. reason
is an optional
text description for the tombstoning.
Gets the current state of the fusion identity (members, invited, if tombstoned)
Returns a list of all fusion identities where you have been invited but not yet consented.
Returns a list of all non-tombstoned fusion identities
Returns a list of all tombstoned fusion identities