Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discuss]: DID Connect 开发体验优化讨论 #80

Open
FireTable opened this issue Aug 2, 2023 · 0 comments
Open

[Discuss]: DID Connect 开发体验优化讨论 #80

FireTable opened this issue Aug 2, 2023 · 0 comments

Comments

@FireTable
Copy link

FireTable commented Aug 2, 2023

Report

详细描述

最近连续做了两个新应用 InscriptionBase is for builders
https://github.com/blocklet/inscription
https://github.com/blocklet/awesome-ethereum-blocklets/tree/main/blocklets/base-is-for-builders

对比 DID Connect 和其它钱包 Connect 在开发体验上有点割裂,在这里记录一下

  • DID Connect 目前强烈依赖 Handler,有些不依赖后端服务的操作也要起个 express
    • 跟军哥讨论了一下,v2 应该会有改善,但是没过 battle test 所以没有试用
  • DID Connect 开发过程很繁琐
    • base-is-for-builders 的应用,做了 2 个事情:将 'all your base are belong to you.' person-data 签名得到 sig + 发送 mint(sig)
      建议: 兼容市面上的钱包调用类型方式,减少开发者学习成本
    • 其它钱包 Connect 20 行不到代码量(因为前端有 singer 对象,能直接签名,很简洁)
      image
    • DID Connect 需要两个文件承载,代码量比较多,还用到了 networkflow, person 签名等加密技术,我认为概念有点多
      image
  • 开发者体验不太好
    • 由于开发方式不一样的问题,我经常要写 2 套代码:在 express 中的 DID Connect + 前端的其它钱包 Connect

Reproduce this bug

Screenshot or error message (optional)

Unusual Behavior

Desired Behavior

Possible solutions (optional)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant