Skip to content

Commit

Permalink
[Example] Add actions for new elliptic curves
Browse files Browse the repository at this point in the history
  • Loading branch information
smlu committed Dec 23, 2023
1 parent 7991a67 commit 5b4d0d7
Show file tree
Hide file tree
Showing 5 changed files with 584 additions and 32 deletions.
248 changes: 224 additions & 24 deletions examples/helloack/bin/helloack.abi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@
}
],
"structs": [
{
"name": "bt_ecc_brainpoolP320r1_sha384",
"base": "",
"fields": []
},
{
"name": "bt_ecc_brainpoolP256r1_sha256",
"base": "",
"fields": []
},
{
"name": "bt_ecc_brainpoolP384r1_sha384",
"base": "",
"fields": []
},
{
"name": "bt_ecc_brainpoolP521r1_sha512",
"base": "",
"fields": []
},
{
"name": "bt_ecc_secp256k1_sha256",
"base": "",
Expand All @@ -22,6 +42,16 @@
"base": "",
"fields": []
},
{
"name": "bt_ecc_secp384r1_sha384",
"base": "",
"fields": []
},
{
"name": "bt_ecc_secp521r1_sha512",
"base": "",
"fields": []
},
{
"name": "bt_rsa_1024_sha1",
"base": "",
Expand Down Expand Up @@ -67,6 +97,110 @@
"base": "",
"fields": []
},
{
"name": "check_ecdsa_brainpoolP256_sha256",
"base": "",
"fields": [
{
"name": "qx",
"type": "bytes_view"
},
{
"name": "qy",
"type": "bytes_view"
},
{
"name": "msg",
"type": "bytes_view"
},
{
"name": "r",
"type": "bytes_view"
},
{
"name": "s",
"type": "bytes_view"
}
]
},
{
"name": "check_ecdsa_brainpoolP320_sha384",
"base": "",
"fields": [
{
"name": "qx",
"type": "bytes_view"
},
{
"name": "qy",
"type": "bytes_view"
},
{
"name": "msg",
"type": "bytes_view"
},
{
"name": "r",
"type": "bytes_view"
},
{
"name": "s",
"type": "bytes_view"
}
]
},
{
"name": "check_ecdsa_brainpoolP384_sha384",
"base": "",
"fields": [
{
"name": "qx",
"type": "bytes_view"
},
{
"name": "qy",
"type": "bytes_view"
},
{
"name": "msg",
"type": "bytes_view"
},
{
"name": "r",
"type": "bytes_view"
},
{
"name": "s",
"type": "bytes_view"
}
]
},
{
"name": "check_ecdsa_brainpoolP512_sha512",
"base": "",
"fields": [
{
"name": "qx",
"type": "bytes_view"
},
{
"name": "qy",
"type": "bytes_view"
},
{
"name": "msg",
"type": "bytes_view"
},
{
"name": "r",
"type": "bytes_view"
},
{
"name": "s",
"type": "bytes_view"
}
]
},
{
"name": "check_ecdsa_secp256k1_sha256",
"base": "",
Expand Down Expand Up @@ -120,43 +254,59 @@
]
},
{
"name": "check_rsa_pss_sha1",
"name": "check_ecdsa_secp384r1_sha384",
"base": "",
"fields": [
{
"name": "pubkey",
"type": "rsa_pss_public_key_view"
"name": "qx",
"type": "bytes_view"
},
{
"name": "qy",
"type": "bytes_view"
},
{
"name": "msg",
"type": "bytes_view"
},
{
"name": "sig",
"name": "r",
"type": "bytes_view"
},
{
"name": "s",
"type": "bytes_view"
}
]
},
{
"name": "check_rsa_pss_sha256",
"name": "check_ecdsa_secp521r1_sha512",
"base": "",
"fields": [
{
"name": "pubkey",
"type": "rsa_pss_public_key_view"
"name": "qx",
"type": "bytes_view"
},
{
"name": "qy",
"type": "bytes_view"
},
{
"name": "msg",
"type": "bytes_view"
},
{
"name": "sig",
"name": "r",
"type": "bytes_view"
},
{
"name": "s",
"type": "bytes_view"
}
]
},
{
"name": "check_rsa_pss_sha384",
"name": "check_rsa_pss_sha1",
"base": "",
"fields": [
{
Expand All @@ -174,7 +324,7 @@
]
},
{
"name": "check_rsa_pss_sha512",
"name": "check_rsa_pss_sha256",
"base": "",
"fields": [
{
Expand All @@ -192,12 +342,12 @@
]
},
{
"name": "check_rsa_sha1",
"name": "check_rsa_pss_sha512",
"base": "",
"fields": [
{
"name": "pubkey",
"type": "rsa_public_key_view"
"type": "rsa_pss_public_key_view"
},
{
"name": "msg",
Expand All @@ -210,7 +360,7 @@
]
},
{
"name": "check_rsa_sha256",
"name": "check_rsa_sha1",
"base": "",
"fields": [
{
Expand All @@ -228,7 +378,7 @@
]
},
{
"name": "check_rsa_sha384",
"name": "check_rsa_sha256",
"base": "",
"fields": [
{
Expand Down Expand Up @@ -297,6 +447,26 @@
}
],
"actions": [
{
"name": "bteccbr1",
"type": "bt_ecc_brainpoolP256r1_sha256",
"ricardian_contract": ""
},
{
"name": "bteccbr13",
"type": "bt_ecc_brainpoolP384r1_sha384",
"ricardian_contract": ""
},
{
"name": "bteccbr132",
"type": "bt_ecc_brainpoolP320r1_sha384",
"ricardian_contract": ""
},
{
"name": "bteccbr15",
"type": "bt_ecc_brainpoolP521r1_sha512",
"ricardian_contract": ""
},
{
"name": "btecck1",
"type": "bt_ecc_secp256k1_sha256",
Expand All @@ -307,6 +477,16 @@
"type": "bt_ecc_secp256r1_sha256",
"ricardian_contract": ""
},
{
"name": "bteccr13",
"type": "bt_ecc_secp384r1_sha384",
"ricardian_contract": ""
},
{
"name": "bteccr15",
"type": "bt_ecc_secp521r1_sha512",
"ricardian_contract": ""
},
{
"name": "btrsa1ksha1",
"type": "bt_rsa_1024_sha1",
Expand Down Expand Up @@ -352,6 +532,26 @@
"type": "bt_rsa_pss_4096_sha256",
"ricardian_contract": ""
},
{
"name": "ecdsabr1",
"type": "check_ecdsa_brainpoolP256_sha256",
"ricardian_contract": ""
},
{
"name": "ecdsabr13",
"type": "check_ecdsa_brainpoolP384_sha384",
"ricardian_contract": ""
},
{
"name": "ecdsabr132",
"type": "check_ecdsa_brainpoolP320_sha384",
"ricardian_contract": ""
},
{
"name": "ecdsabr15",
"type": "check_ecdsa_brainpoolP512_sha512",
"ricardian_contract": ""
},
{
"name": "ecdsak1",
"type": "check_ecdsa_secp256k1_sha256",
Expand All @@ -362,6 +562,16 @@
"type": "check_ecdsa_secp256r1_sha256",
"ricardian_contract": ""
},
{
"name": "ecdsar13",
"type": "check_ecdsa_secp384r1_sha384",
"ricardian_contract": ""
},
{
"name": "ecdsar15",
"type": "check_ecdsa_secp521r1_sha512",
"ricardian_contract": ""
},
{
"name": "rsapsssha1",
"type": "check_rsa_pss_sha1",
Expand All @@ -372,11 +582,6 @@
"type": "check_rsa_pss_sha256",
"ricardian_contract": ""
},
{
"name": "rsapsssha34",
"type": "check_rsa_pss_sha384",
"ricardian_contract": ""
},
{
"name": "rsapsssha512",
"type": "check_rsa_pss_sha512",
Expand All @@ -392,11 +597,6 @@
"type": "check_rsa_sha256",
"ricardian_contract": ""
},
{
"name": "rsasha34",
"type": "check_rsa_sha384",
"ricardian_contract": ""
},
{
"name": "rsasha512",
"type": "check_rsa_sha512",
Expand Down
Binary file modified examples/helloack/bin/helloack.wasm
Binary file not shown.
Loading

0 comments on commit 5b4d0d7

Please sign in to comment.