maidsafe / sn_dbc

Safe Network DBCs
BSD 3-Clause "New" or "Revised" License
15 stars 16 forks source link

refactor!: make bearer a user concern #249

Closed oetyng closed 1 year ago

oetyng commented 1 year ago

This removes the whole Owner/OwnerOnce recursive and confusing relationship, which infused the "bearer" concept into this Dbc library, and unnecessarily complicated the code.

Instead we use a simpler terminology, where we talk of the (MainKey:PublicAddress) pair, and the (DerivedKey:DbcId) pair.

The api is now much simpler, as the possible concept of a "bearer" is a concern of the user of this library.