枪中使用的关键方案和编码是什么?

发布于 2025-01-24 18:23:12 字数 372 浏览 3 评论 0 原文

gun> gun db

我没有找到搜索的快速答案,所以在这里添加问题。

钥匙看起来像:

let lee = await SEA.pair()
>lee.pub

“ wfcqudb44nhkfikh4nhwkvzfhqy-xgrpwnzihjgmwri.xlxhmgwvgvyhcc95l6ni2rllmjjcmowwnbrmowwnbr3eq1r4br3eq1r4mou>

What are the key schemes, sizes, and encodings used in GUN db?

I didn't find a quick answer on searching so am adding the question here.

The keys look like:

let lee = await SEA.pair()
>lee.pub

"wfcQUDB44NhKFikH4NhWKVZfhQY-xGRpwnZIHjgmwRI.xLxhMgWvgvYHCc95L6Ni2RLmjJCMowWNbR3eQ1r4MOU"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牛↙奶布丁 2025-01-31 18:23:12

用于签名/验证:

枪支使用

密钥是 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 the x and y output parameters from running exportKey on a JSON web key (JWK) CryptoKeyPair object obtained from the subtleCrypto.exportKey function (following key generation using subtleCrypto.generateKey with ECDSA P256 curve).

This has an overview of the x and y params.

For Encryption/Decryption:

Gun uses ECDH P-256 cruve with same process as above (public keys stored as lee.epub for OP example)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文