field-manual icon indicating copy to clipboard operation
field-manual copied to clipboard

Replication conditions

Open nezzard opened this issue 5 years ago • 3 comments

Hi, is there any possibilities for make conditions for accepting new entry?

For example if(newEntry != true) { return false } ellse { addNewEntry }

The main idea is, if new entry has incorrect signature, then don't add entry to own copy of public db

nezzard avatar Sep 25 '18 14:09 nezzard

if the db is public you can do something even better: Prevent tampering by fixing/removing the entry. this won't work if your database is a EventStore but it should work in the case of all the others. you can do your checks in the replicated event: https://github.com/orbitdb/orbit-db/blob/master/API.md#replicated

m00nwtchr avatar Oct 03 '18 15:10 m00nwtchr

checks in the replicated event

It's ok, but, how to prevent adding entry inside replicate event? Can i break this entry? If yes how? And after that, will db continue replication?

Or i need to remove wrong entry after replication?

nezzard avatar Dec 09 '18 21:12 nezzard

Moving this to the Field Manual so we can go into more detail

aphelionz avatar Sep 27 '19 16:09 aphelionz