Skip to content

Commit 092256e

Browse files
committed
Merge branch 'main' into merge-2.0
2 parents 336afd2 + f214b92 commit 092256e

File tree

78 files changed

+36383
-221
lines changed

Some content is hidden

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

78 files changed

+36383
-221
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ workflows:
8484
- main
8585
- /^[0-9]+\.[0-9]+$/
8686
# Add your branch here if benchmarking matters to your work
87-
- add-noop
87+
- secp256r1-support
8888
- coverage
8989
deploy:
9090
jobs:
@@ -108,7 +108,7 @@ workflows:
108108
jobs:
109109
arm64:
110110
machine:
111-
image: ubuntu-2004:202101-01
111+
image: ubuntu-2204:2024.01.1
112112
resource_class: arm.large
113113
steps:
114114
- checkout
@@ -843,7 +843,7 @@ jobs:
843843
command: apt update && apt install -y python3-pip
844844
- run:
845845
name: Install dependencies
846-
command: pip3 install requests bs4
846+
command: pip3 install requests bs4 --break-system-packages
847847
- run:
848848
name: Check dead links
849849
command: devtools/deadlinks.py

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ and this project adheres to
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- cosmwasm-vm: Add `secp256r1_verify` and `secp256r1_recover_pubkey` imports for
12+
ECDSA signature verification over secp256r1. ([#1983])
13+
14+
[#1983]: https://github.com/CosmWasm/cosmwasm/pull/1983
15+
16+
### Changed
17+
18+
- cosmwasm-std: Enable `add_event` and `add_events` functions to process types
19+
implementing `Into<Event>` ([#2044])
20+
21+
[#2044]: https://github.com/CosmWasm/cosmwasm/pull/2044
22+
923
## [2.0.0] - 2024-03-12
1024

1125
### Fixed

Cargo.lock

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

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,18 @@ extern "C" {
227227
recovery_param: u32,
228228
) -> u64;
229229

230+
/// Verifies message hashes against a signature with a public key, using the
231+
/// secp256r1 ECDSA parametrization.
232+
/// Returns 0 on verification success, 1 on verification failure, and values
233+
/// greater than 1 in case of error.
234+
fn secp256r1_verify(message_hash_ptr: u32, signature_ptr: u32, public_key_ptr: u32) -> u32;
235+
236+
fn secp256r1_recover_pubkey(
237+
message_hash_ptr: u32,
238+
signature_ptr: u32,
239+
recovery_param: u32,
240+
) -> u64;
241+
230242
/// Verifies a message against a signature with a public key, using the
231243
/// ed25519 EdDSA scheme.
232244
/// Returns 0 on verification success, 1 on verification failure, and values

contracts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Introducing the development contracts in the order they were created.
4444
## Optimized builds
4545

4646
Those development contracts are used for testing in other repos, e.g. in
47-
[wasmvm](https://github.com/CosmWasm/wasmvm/tree/master/api/testdata) or
47+
[wasmvm](https://github.com/CosmWasm/wasmvm/tree/main/testdata) or
4848
[cosmjs](https://github.com/cosmos/cosmjs/tree/main/scripts/wasmd/contracts).
4949

5050
They are [built and deployed](https://github.com/CosmWasm/cosmwasm/releases) by

contracts/burner/Cargo.lock

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

0 commit comments

Comments
 (0)