Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'mraszyk/release-0.26' into public
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Jul 23, 2024
2 parents 9ad2475 + 846b2ae commit d78eedd
Show file tree
Hide file tree
Showing 9 changed files with 17,417 additions and 1,457 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- uses: actions/setup-python@v4
with:
python-version: "3.10"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- uses: actions/github-script@v6
with:
script: |
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# IDEs
.vscode/
.idea/

node_modules
docusaurus/build
docusaurus/.docusaurus
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This repository contains the source files of the Interface Spec, which describes the externally visible behaviour of the Internet Computer.
The language-independent description of this IC interface is available in [ic.did](./spec/_attachments/ic.did).

It used to contain a reference implementation and acceptance test suite; these can now be found at <https://github.com/dfinity/ic-hs>.
It used to contain a reference implementation and acceptance test suite; these can now be found at [https://github.com/dfinity/ic-hs](https://github.com/dfinity/ic-hs).

## About the Interface Spec

Expand Down
15,712 changes: 15,712 additions & 0 deletions docusaurus/package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
},
"dependencies": {
"@akebifiky/remark-simple-plantuml": "^1.0.2",
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"@docusaurus/core": "^3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@mdx-js/react": "^3.0.1",
"clsx": "^2.1.0",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"remark-math": "^3.0.1"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remark-math": "^6.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.1",
"remark-code-import": "^0.4.0"
"@docusaurus/module-type-aliases": "^3.4.0",
"remark-code-import": "^1.2.0"
},
"browserslist": {
"production": [
Expand All @@ -41,6 +41,6 @@
]
},
"engines": {
"node": ">=16.14"
"node": ">=18.0"
}
}
30 changes: 30 additions & 0 deletions spec/_attachments/ic.did
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ type ecdsa_curve = variant {
secp256k1;
};

type schnorr_algorithm = variant {
bip340secp256k1;
ed25519;
};

type satoshi = nat64;

type bitcoin_network = variant {
Expand Down Expand Up @@ -303,6 +308,27 @@ type sign_with_ecdsa_result = record {
signature : blob;
};

type schnorr_public_key_args = record {
canister_id : opt canister_id;
derivation_path : vec blob;
key_id : record { algorithm : schnorr_algorithm; name : text };
};

type schnorr_public_key_result = record {
public_key : blob;
chain_code : blob;
};

type sign_with_schnorr_args = record {
message : blob;
derivation_path : vec blob;
key_id : record { algorithm : schnorr_algorithm; name : text };
};

type sign_with_schnorr_result = record {
signature : blob;
};

type node_metrics_history_args = record {
subnet_id : principal;
start_at_timestamp_nanos : nat64;
Expand Down Expand Up @@ -377,6 +403,10 @@ service ic : {
ecdsa_public_key : (ecdsa_public_key_args) -> (ecdsa_public_key_result);
sign_with_ecdsa : (sign_with_ecdsa_args) -> (sign_with_ecdsa_result);

// Threshold Schnorr signature
schnorr_public_key : (schnorr_public_key_args) -> (schnorr_public_key_result);
sign_with_schnorr : (sign_with_schnorr_args) -> (sign_with_schnorr_result);

// bitcoin interface
bitcoin_get_balance : (bitcoin_get_balance_args) -> (bitcoin_get_balance_result);
bitcoin_get_balance_query : (bitcoin_get_balance_query_args) -> (bitcoin_get_balance_query_result) query;
Expand Down
3 changes: 3 additions & 0 deletions spec/_attachments/interface-spec-changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog {#changelog}

### 0.26.0 (2024-07-23) {#0_26_0}
* EXPERIMENTAL: Management canister API for threshold Schnorr signatures.

### 0.25.0 (2024-06-14) {#0_25_0}
* Query call statistics.
* New `wasm_memory_persistence` option for canister upgrades.
Expand Down
Loading

0 comments on commit d78eedd

Please sign in to comment.