orbitdb-archive / orbit-db-store

Base class for orbit-db data stores
MIT License
40 stars 22 forks source link

Idiomatic Way to Get Log Entry from Hash #118

Closed piboistudios closed 2 years ago

piboistudios commented 2 years ago

The Log entry contains the identity of the user that signed the data. This is very useful information.

How can I get this from a given hash? Do I just go to the IPFS CID and the block of data is there?

I was wondering because, to create a ledger chronicling ownership with OrbitDB is technically as simple as having a log with { to } (and the original owner is the identity). Otherwise, I'd have to store {to, from}, which would be redundant.

piboistudios commented 2 years ago

Oh, nevermind. Probably just Entry.fromMultihash