Skip to content

Commit

Permalink
Update to 0.3.0 of arkworks (celo-org#108)
Browse files Browse the repository at this point in the history
* updating to newest arkworks

* new compiler errors

* fewer errors:

* fewer errors

* fewer build errors

* removed txt'

* fewer errors

* compiles

* tests compile

* dkg-core compiles

* tests pass bls12-377 threshold-bls

* remove 381

* ffi builds

* dkg-core tests pass

* rename zexe

* rename zexe

* ethers update

* abigen works:

* build.rs works

* fewer errors

* removed cli

* gt exp start

* gt mul done not tested

* gt exp unit test passes

* new functions to scalar

* changed scalar interface

* delete

* fix rand package version mismatch and warning about FFI with byte array references (celo-org#89)

* edit

* add getrandom/js as optional dependency (celo-org#90)

* Make parallel an optional feature to support WASM environments (celo-org#91)

* add getrandom/js as optional dependency

* make parallel an optional feature to support WASM environments

* include message in PRNG seed to prevent always using the same blinding factor

* add back deprecated get_rng function

* remove DO NOT MERGE edits

* fixed identity for GT

* GT elem subgroup check

* clippy

* edit

* edit

* zexe rename

* [dkg-core] add private key validation (celo-org#95)

* fix(ffi): remove redundant internal unsafe marker (celo-org#92)

* fix(ffi): remove redundant internal unsafe marker

* reduce unsafe scope

* [threshold-bls] add defense against weak blinding (celo-org#94)

* add(threshold-bls): add defense against weak blinding

* panic if rng is zero or one

* update tokio features

* fewer errors

* fewer error

* fewer type errors

* fewer errors

* compiles

* fewer warnings

* bytecode writes

* cargo fmt

* update xcode

* change solidity compiler version

* clippy

* clippy

* remove 32 bit ios arch

* update rust, .lock

* remove 32 bit ios

* change rust version

* ci install python

* rerun ci

* change ci

* add to ci

* change ci

* ci sudo

* add js to getrandom

* clippy

* fewer clippy errors

* ignore clippy needless collect

* fmt

* clippy

* update tokio

* update version numbers

* Update .gitignore

Co-authored-by: piersy <[email protected]>

* add dkg cli to toml

* Fix edition

* Properly drop values in ffi

* Fix build script

* Add back opts

* Use more modern rust

Last build failed because of this:
https://app.circleci.com/pipelines/github/celo-org/celo-threshold-bls-rs/461/workflows/a47f4385-aaad-4b33-85e6-b4a993a04625/jobs/2015

* Use stable tokio

* Fix style

* Use bigger CircleCI container for tests

* Fix clippy complaints

* Paul/test (celo-org#110)

* Fix edition

* Properly drop values in ffi

* Fix build script

* Add back opts

* Use more modern rust

Last build failed because of this:
https://app.circleci.com/pipelines/github/celo-org/celo-threshold-bls-rs/461/workflows/a47f4385-aaad-4b33-85e6-b4a993a04625/jobs/2015

* Use stable tokio

* Fix style

* Use bigger CircleCI container for tests

* Fix clippy complaints

* edits

* Remove generated files and add them to .gitignore (celo-org#111)

Also remove erroneously added .DS_Store files.

* docs: Update README (celo-org#112)

* Paul/ci (celo-org#113)

* ci: Use new rust images

* ci: Use newer node image

* ci: clippy is installed by default

* Update lockfile

* pin ethers-rs to 0.17.0

* add back dockerfile and test script

* Use stable ethers (celo-org#114)

* Update ethers

* Update gumdrop

* fix cargo audit

* Update dockerfile (celo-org#115)

Co-authored-by: Victor Graf <[email protected]>
Co-authored-by: Hanyun Xu <[email protected]>
Co-authored-by: piersy <[email protected]>
Co-authored-by: Paul Lange <[email protected]>
Co-authored-by: Paul Lange <[email protected]>
  • Loading branch information
6 people authored Jan 17, 2023
1 parent b0ef82f commit 365e2f7
Show file tree
Hide file tree
Showing 38 changed files with 3,025 additions and 2,036 deletions.
27 changes: 12 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
contracts:
docker:
- image: circleci/node:latest
- image: cimg/node:lts
steps:
- checkout
- run:
Expand All @@ -16,19 +16,19 @@ jobs:
cross-ios:
macos:
xcode: 11.4.0
xcode: 13.3.0
working_directory: ~/work
steps:
- checkout
- run:
name: Install rustup
command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- run:
name: Install Rust 1.41
command: rustup install 1.41.0 && rustup default 1.41.0
name: Install Rust 1.64
command: rustup install 1.64.0 && rustup default 1.64.0
- run:
name: Install iOS targets
command: rustup target add armv7-apple-ios armv7s-apple-ios aarch64-apple-ios x86_64-apple-ios
command: rustup target add aarch64-apple-ios x86_64-apple-ios
- run:
name: Build iOS
command: cd crates/threshold-bls-ffi/cross && make ios
Expand All @@ -37,14 +37,14 @@ jobs:

test:
docker:
- image: circleci/rust:latest
- image: cimg/rust:1.64.0
resource_class: large
steps:
- checkout
- run:
name: Install Dependencies
command: |
cargo install cargo-audit
rustup component add clippy
mkdir -p "$HOME/bin"
wget -q https://github.com/ethereum/solidity/releases/download/v0.6.6/solc-static-linux -O $HOME/bin/solc
chmod u+x "$HOME/bin/solc"
Expand All @@ -59,14 +59,14 @@ jobs:
name: Check style
command: |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo clippy --all-targets --all-features -- -D warnings -Aclippy::upper_case_acronyms
- run:
name: Audit Dependencies
command: cargo audit --ignore RUSTSEC-2019-0031 # ignore lazy static warning

wasm:
docker:
- image: circleci/rust:latest
- image: cimg/rust:1.64.0
steps:
- checkout
- run:
Expand All @@ -78,16 +78,13 @@ jobs:

cross-android:
docker:
- image: circleci/rust:latest
- image: cimg/rust:1.64.0
working_directory: ~/work
steps:
- checkout
- run:
name: Install rustup
command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- run:
name: Install Rust 1.41
command: rustup install 1.41.0 && rustup default 1.41.0
name: Install Python
command: sudo apt install python
- run:
name: Install Android targets
command: rustup target add aarch64-linux-android armv7-linux-androideabi arm-linux-androideabi i686-linux-android x86_64-linux-android
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ react-native

solidity/cache
solidity/build
*.swp
*.bin
.DS_Store
solidity/artifacts/DKG.sol/DKG.json
crates/dkg-cli/src/dkg_contract.rs
Loading

0 comments on commit 365e2f7

Please sign in to comment.