-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【提案】 安全模块限制 #209
Comments
ECDSA key example
{
"crv": "P-256",
"ext": true,
"key_ops": [
"verify"
],
"kty": "EC",
"x": "U7uuf8JvwW1Ph5yuQk-4jRuHdBPb3Me_koP22CskEKw",
"y": "er0piIbBzGKI8yXt3Jt53Bhr4TyuTx8WGMpOtk5xN_k"
}
{
"crv": "P-256",
"d": "1eQRkpP_wpVPIT0ksrihZFQSmCZyODQhxZcKnbagFAA",
"ext": true,
"key_ops": [
"sign"
],
"kty": "EC",
"x": "N-kwtatqOClcrN56MUgGdKsMaq7B8fc7a7ks05URaO0",
"y": "w3cM8fmuD53ZnOdTcSaNdyH8k6pDj5RrnZpo9VcmZV8"
} |
扩展
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
app进行安全限制
正式应用只允许挂载到有IPC备案应用安装中心进行安装。
bundle_signature
格式为
hex:{signature}
生成方式为:
signature = sign(algorithm, "{app_id}:{bundle_hash}", private_key)
验证方式为:
success = verifiy(algorithm, "{app_id}:{bundle_hash}" , public_key,signature)
public_key_url
该字段将会用于验证应用持有者的身份
该链接必须使用和app-id同域名的网站链接,
请求回来是一个“算法+公钥地址”的格式 "{algorithm}:hex;{publicKey}",比如说rsa-sha256:hex;5394efaada3a24b624f098385496a85044a9ebb40dbc5f3ce945d3466d899121
请求回来的是公钥json。
dweb_signature
新增dweb_signature:string,
metadata.json
内容进行签名。该字段也是通过 私钥对
hash
签名,通过public_key_url
请求的公钥验证上述签名算法将使用
ECDSA (Elliptic Curve Digital Signature Algorithm)
(基于椭圆曲线密码学 (ECC) 的数字签名算法)The text was updated successfully, but these errors were encountered: