【发布时间】:2021-05-26 14:54:51
【问题描述】:
是否有一个方便的函数可以从它的公钥中获取超核的发现密钥?
我知道我可以在hypersdk 中使用myCore.key 和myCore.discoveryKey
但如果您只有一个十六进制字符串形式的密钥(例如“778f8d955175c92e4ced5e4f5563f69bfec0c86cc6f670352c457943666fe639”),您将如何获得发现密钥?
其中一个超核协议模块中是否有便利功能?
注意,the discovery key is the blake2b-256 hash of the public key。
【问题讨论】:
标签: javascript node.js hash hypercore-protocol