【发布时间】:2019-12-31 19:36:49
【问题描述】:
我正在尝试使用ethr-did library. 生成和注册 DID
我创建了一个
const ethrDid = new EthrDID({provider, address, registry})
然后通过
对有效载荷进行签名const helloJWT = await ethrDid.signJWT({hello: 'world'})
但是当我这样做是通过 jwt 验证时
const {payload, issuer} = ethrDid.verifyJWT(jwt)
它给出了一个错误
(node:3310) UnhandledPromiseRejectionWarning: Error: Unsupported DID method: 'ethr'
我搜索了整个互联网,但没有找到任何东西。
【问题讨论】: