diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..df8fc7cc --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.2.17] - 2022-07-13 + +### Fixed +- The generated PEM file now have correct `EC PARAMETERS` of secp256k1. (#124) + +## [0.2.16] - 2022-06-22 + +### Added +- New command `replace-node-provider-id`. (#118) + +### Changed +- All queries are performed as update equivalents, in order to certify their responses. (#115) diff --git a/Cargo.lock b/Cargo.lock index dd6f2a7d..948c1fd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2326,7 +2326,7 @@ dependencies = [ [[package]] name = "quill" -version = "0.2.16" +version = "0.2.17" dependencies = [ "anyhow", "base64 0.13.0", diff --git a/Cargo.toml b/Cargo.toml index dd9c74ed..734b0b6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "quill" -version = "0.2.16" +version = "0.2.17" authors = ["DFINITY Team"] edition = "2018" diff --git a/src/lib/mod.rs b/src/lib/mod.rs index 0c658f5e..a34b3ced 100644 --- a/src/lib/mod.rs +++ b/src/lib/mod.rs @@ -29,7 +29,9 @@ use std::path::PathBuf; pub const IC_URL: &str = "https://ic0.app"; -const EC_PARAMETERS: [u8; 7] = [6, 4, 43, 129, 4, 0, 10]; +// The OID of secp256k1 curve is `1.3.132.0.10`. +// Encoding in DER results in following bytes. +const EC_PARAMETERS: [u8; 7] = [6, 5, 43, 129, 4, 0, 10]; pub fn get_ic_url() -> String { std::env::var("IC_URL").unwrap_or_else(|_| IC_URL.to_string())