Skip to content

Instantly share code, notes, and snippets.

@duanyytop
Last active December 19, 2023 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duanyytop/490342c22600137cb40f03fdbf996df3 to your computer and use it in GitHub Desktop.
Save duanyytop/490342c22600137cb40f03fdbf996df3 to your computer and use it in GitHub Desktop.
JoyID 集成 typed message 需要的支持

JoyID 集成 typed message 需要的支持

GitHub repo: https://github.com/cryptape/ckb-transaction-cobuild-poc/tree/main

JoyID 集成 ckb typed message 会分两个阶段完成:

1. JoyID 合约开发、测试、部署和验证

这个阶段上述 repo 中的 ckb-transaction-cobuild/contracts 可供合约参考,dapp 可以用来作为链外 generator 验证合约是否符合预期,因此暂时不需要 cryptape 提供其他协助

2. JoyID 产品集成 ckb typed message

这个阶段需要 spore-sdk 提供如下方法:

  • 根据 BuildingPacket 解析出具有可视化的数据结构 message,用于 JoyID 钱包展示
  • 根据 BuildingPacket 生成 messageDigest,用于 JoyID 钱包签名
  • 构建 WitnessLayout 的方法(这个更通用)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment