Skip to content

Commit 7af475d

Browse files
committed
Bump Oasis Core to 22.2.x
1 parent 408b8c5 commit 7af475d

55 files changed

Lines changed: 3692 additions & 1763 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 702 additions & 350 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contract-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2018"
77
license = "Apache-2.0"
88

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

contract-sdk/crypto/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ edition = "2018"
88
license = "Apache-2.0"
99

1010
[dependencies]
11-
cbor = { version = "0.2.1", package = "oasis-cbor" }
11+
cbor = { version = "0.5.0", package = "oasis-cbor" }
1212

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

1717
[dev-dependencies]

contract-sdk/crypto/src/ecdsa.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::convert::TryInto;
22

33
use k256::{
44
ecdsa::{recoverable, Signature},
5-
EncodedPoint,
5+
elliptic_curve::{sec1::ToEncodedPoint, IsHigh},
66
};
77
use thiserror::Error;
88

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

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

5858
Ok(key.as_bytes().try_into().unwrap())
5959
}

0 commit comments

Comments
 (0)