Skip to content

Commit

Permalink
Bump Oasis Core to 22.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Sep 22, 2022
1 parent 69cbb88 commit e709852
Show file tree
Hide file tree
Showing 55 changed files with 3,676 additions and 1,740 deletions.
1,038 changes: 696 additions & 342 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contract-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2018"
license = "Apache-2.0"

[dependencies]
cbor = { version = "0.2.1", package = "oasis-cbor" }
cbor = { version = "0.5.0", package = "oasis-cbor" }
oasis-contract-sdk-types = { path = "types" }
oasis-contract-sdk-macros = { path = "../contract-sdk-macros", optional = true }

Expand Down
4 changes: 2 additions & 2 deletions contract-sdk/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ edition = "2018"
license = "Apache-2.0"

[dependencies]
cbor = { version = "0.2.1", package = "oasis-cbor" }
cbor = { version = "0.5.0", package = "oasis-cbor" }

# Third party.
k256 = { version = "0.9.6", default-features = false, features = ["keccak256", "ecdsa"] }
k256 = { version = "0.10.4", default-features = false, features = ["keccak256", "ecdsa"] }
thiserror = "1.0.30"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions contract-sdk/crypto/src/ecdsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::convert::TryInto;

use k256::{
ecdsa::{recoverable, Signature},
EncodedPoint,
elliptic_curve::{sec1::ToEncodedPoint, IsHigh},
};
use thiserror::Error;

Expand Down Expand Up @@ -53,7 +53,7 @@ pub fn recover(input: &[u8]) -> Result<[u8; 65], Error> {

match signature.recover_verify_key_from_digest_bytes(&msg.into()) {
Ok(recovered_key) => {
let key = EncodedPoint::from(&recovered_key).decompress().unwrap();
let key = recovered_key.to_encoded_point(false);

Ok(key.as_bytes().try_into().unwrap())
}
Expand Down

0 comments on commit e709852

Please sign in to comment.