如何使用OrbitB-DB在程序中实现用户身份?所有权和授予/撤销写作?分散的,没有3D派对服务,没有IPN?

发布于 2025-02-02 20:02:36 字数 413 浏览 3 评论 0 原文

  • Orbitdb说,它不能做到
  • 但用户不需要提供允许/允许的用户,

以 供persim ofersy presery to dbs of usip to db d. ?

how to implement user model without 3d-party services or ipns?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我还不会笑 2025-02-09 20:02:36

用户身份使用什么?

  • peer -id和私有键
  • - ipfs节点的 - 一个config json文件,该节点生成
  • 运行IPFS INIP/PATH/to/config的config JSON允许使用身份创建相同的节点,
  • 这很简单 - 不需要DIDS-它作为SSH键工作

所有权

  • 程序从发现开始 - 用户需要能够发现DBS,就像我们可以在GitHub
  • 程序上发现回购一样,创建一个公共OrbitDB数据库,任何人都可以写信给
  • 用户发布他们希望其他人希望看到该列表的DB
  • ,并且当写入时 -还要写出DB的名称,
  • 如果相同的名称 - 我们现在该如何真正来自我们期望的所有者?通过PEER -ID,
  • PubSub上的每条消息 - 以及OrbidB写入条目 - 都有发布它们的peer -id,
  • 因此程序显示了作者的db和peer -id的名称 - 这样我们就知道发现db中的记录完全来自于此peer
  • and - - 只要与PEER-ID和私钥的配置文件不会丢失 - 该人拥有该身份

如何添加/撤销在OrbitDB中写入/撤销的情况下,而又不用新的ID重新创建新DB?没有3D派对服务或IPN?

  • 这是
  • 一个辉煌的所有者 - 始终是所有者 - 想要
  • 一旦所有者创建DB,程序还会创建一个访问 - cotrol数据库 - 简单的列表 - 仅写入所有者,仅向所有者写入
  • 其他同行克隆所有者的DB,并且程序也会克隆 - Access-Control DB
  • 程序实现自定义访问控制器,该程序从访问控制器DB读取和检查 - 在那里列出了同行吗?然后,他们无需编写
  • 第三方的任何内容 - 所有需要在OrbitDB中完成的一切
  • ,并且访问控制器列表已经分散,持久性和可复制

是需要OrbitDB ID吗? ORBITB/钥匙店是否需要?

  • 如果程序使用obritdbaccesscontroller-在OrbitDB ID允许的情况下 - 是的 - 是的,
  • 但这是毫无用处的 - 我们可以添加或撤销
  • ,如上所述 - 更好的解决方案是访问控制权,随附每个数据库
  • ,为此 - 需要自定义访问控制器
  • ,并且既然我们有 - 为什么当Peer -ID更好时,我们会使用OrbitDB Identity,这是用户的身份,他们可以持久和备份和备份和备份他们再次从一个身份开始
  • IPF-IPFS节点配置JSON文件,带有PEER-ID和private-key

what to use for user identity?

  • peer-id and private-key
  • specifically - of ipfs node - a config json file that node generates
  • running ipfs init /path/to/config allows to create same node with identity
  • it is simple - no need for DIDs - it works as SSH keys

ownership

  • program starts with discovery - users need to be able to discover dbs, like we can discover repos on github
  • program creates a public orbitdb database anyone can write to
  • users publish the dbs they want others to see to that list
  • and - when the write they also write name of db
  • if same name - how do we now that this db is actually from owner we expect? by peer-id
  • every message on pubsub - and also orbidb write entries - have peer-id of who posted them
  • so program shows name of db and peer-id of author - this way we know that that record in discovery db is exactly from that peer
  • and - as long as config file with peer-id and private-key is not lost - that person owns that identity

how to add/revoke writes in orbitdb without re-creating new db with new id? without 3d party services or ipns?

  • this is brilliant
  • an owner - always an owner - wants to give/take permissions
  • once owner creates db, program also creates a access-cotrol database - a list simply - with write permissions only to owner
  • other peers clone owner's db - and program also clones access-control db
  • program implements custom access-controller that reads from access-controller db and checks - is peer listed there? then they can write
  • no third party anything needed - all is already done within orbitdb
  • and that access controller list already decentralized and persistent and replicatable

is orbitdb id needed? is orbitb/keystore needed?

  • no
  • if program were to use ObritDBAccessController - where permissions are give by orbitdb id - then yes
  • but it is useless - we can add or revoke
  • and - as said above - the better solution is access-controll-peer-id-list-db that comes with each database
  • and for that - custom access-controller is needed
  • and since we have that - why would we make it use orbitdb identity when peer-id is much better - it is the identity of user, that they can persist and backup and they init ipfs from again
  • one identity - ipfs node config json file with peer-id and private-key
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文