枪中使用的关键方案和编码是什么?
我没有找到搜索的快速答案,所以在这里添加问题。
钥匙看起来像:
let lee = await SEA.pair()
>lee.pub
“ wfcqudb44nhkfikh4nhwkvzfhqy-xgrpwnzihjgmwri.xlxhmgwvgvyhcc95l6ni2rllmjjcmowwnbrmowwnbr3eq1r4br3eq1r4mou>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用于签名/验证:
枪支使用。
密钥是 base64 。
更具体地说,公钥是
x
和y
输出参数从运行exportkey
在JSON Web键(JWK)上cryptokeypair
从subtlecrypto.exportkey.exportkey
函数(使用subtleCrypto.generateKey.generekeykey
具有ECDSA P256曲线)。this 具有
x
x 和y
params的概述。用于加密/解密:
枪支使用ECDH P-256与上述过程相同的过程(公共键存储为
lee.epub
用于OP示例)For Signing/Verifying:
Gun uses ECDSA with the P-256 curve.
The keys are encoded in base64.
More specifically, the public key is a
.
delineated concatenation of thex
andy
output parameters from runningexportKey
on a JSON web key (JWK)CryptoKeyPair
object obtained from thesubtleCrypto.exportKey
function (following key generation usingsubtleCrypto.generateKey
with ECDSA P256 curve).This has an overview of the
x
andy
params.For Encryption/Decryption:
Gun uses ECDH P-256 cruve with same process as above (public keys stored as
lee.epub
for OP example)