amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

[Question] How to make sure that the user does not modify this data #1183

Closed Jourdelune closed 2 years ago

Jourdelune commented 2 years ago

Hello, I am new to gun and I would like to know how to do so that a user does not modify data, for example imagine that someone writes a text on a forum, to which the number of views is displayed, how could I do so that people do not modify the code to add or reduce the views?

rococtz commented 2 years ago

Short answer is that there are 2 ways: 1) User space - create an app user and use SEA.certify so the user can only edit his own views 2) Content Addressing - nobody can change this ever (which seems more suitable)

Long answer: you can probably write a book about how to do this the right way

Jourdelune commented 2 years ago

okay, thanks you fr your answers!