Skip to content

Commit d904fa2

Browse files
authored
Merge pull request #2106 from CosmWasm/bls12_381
BLS12-381 signature verification
2 parents 6263034 + add97a0 commit d904fa2

File tree

140 files changed

+7033
-50
lines changed

Some content is hidden

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

140 files changed

+7033
-50
lines changed

.circleci/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ workflows:
101101
- main
102102
- /^[0-9]+\.[0-9]+$/
103103
# Add your branch here if benchmarking matters to your work
104+
- bls12_381
104105
- secp256r1-support
105106
- coverage
106107
deploy:
@@ -248,13 +249,17 @@ jobs:
248249
keys:
249250
- cargocache-v2-package_crypto-rust:1.73-{{ checksum "Cargo.lock" }}
250251
- run:
251-
name: Build
252+
name: Build (no features)
252253
working_directory: ~/project/packages/crypto
253-
command: cargo build --locked
254+
command: cargo build --locked --no-default-features
255+
- run:
256+
name: Build (all features)
257+
working_directory: ~/project/packages/crypto
258+
command: cargo build --locked --features std
254259
- run:
255260
name: Run tests
256261
working_directory: ~/project/packages/crypto
257-
command: cargo test --locked
262+
command: cargo test --locked --features std
258263
- save_cache:
259264
paths:
260265
- /usr/local/cargo/registry
@@ -1039,7 +1044,7 @@ jobs:
10391044
- run:
10401045
name: Run crypto benchmarks
10411046
working_directory: ~/project/packages/crypto
1042-
command: cargo bench -- --color never --save-baseline crypto
1047+
command: cargo bench --features std -- --color never --save-baseline crypto
10431048
- save_cache:
10441049
paths:
10451050
- /usr/local/cargo/registry

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ and this project adheres to
3737
([#2124])
3838
- cosmwasm-vm: Read the state version from Wasm modules and return them as part
3939
of `AnalyzeReport` ([#2129])
40+
- cosmwasm-vm: Add `bls12_381_aggregate_g1`, `bls12_381_aggregate_g2`,
41+
`bls12_381_pairing_equality`, `bls12_381_hash_to_g1`, and
42+
`bls12_381_hash_to_g2` to enable BLS12-381 curve operations, such as verifying
43+
pairing equalities ([#2106])
4044

4145
[#1983]: https://github.com/CosmWasm/cosmwasm/pull/1983
4246
[#2057]: https://github.com/CosmWasm/cosmwasm/pull/2057
@@ -46,6 +50,7 @@ and this project adheres to
4650
[#2092]: https://github.com/CosmWasm/cosmwasm/pull/2092
4751
[#2098]: https://github.com/CosmWasm/cosmwasm/pull/2098
4852
[#2099]: https://github.com/CosmWasm/cosmwasm/pull/2099
53+
[#2106]: https://github.com/CosmWasm/cosmwasm/pull/2106
4954
[#2107]: https://github.com/CosmWasm/cosmwasm/pull/2107
5055
[#2120]: https://github.com/CosmWasm/cosmwasm/pull/2120
5156
[#2124]: https://github.com/CosmWasm/cosmwasm/pull/2124

Cargo.lock

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

0 commit comments

Comments
 (0)