Skip to content

Commit

Permalink
Merge branch 'paritytech:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
hacpy authored Dec 5, 2023
2 parents b208f8a + 48dabd8 commit 2a6bcb8
Show file tree
Hide file tree
Showing 11 changed files with 4,678 additions and 58 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Checkout sources
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 50

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/dependabot.yml

This file was deleted.

32 changes: 16 additions & 16 deletions .github/workflows/rust-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Install sudo for windows #https://github.com/actions/virtual-environments/issues/572
if: matrix.platform == 'windows-latest'
Expand All @@ -48,7 +48,7 @@ jobs:
refreshenv
- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand All @@ -70,19 +70,19 @@ jobs:
shell: bash

- name: Cache cargo registry
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: $HOME/.cargo/registry
key: cargo-registry-${{ env['cache_hash'] }}

- name: Cache cargo index
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: $HOME/.cargo/git
key: cargo-git-${{ env['cache_hash'] }}

- name: Cache cargo build
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: target
key: cargo-target-${{ env['cache_hash'] }}
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Set default compiler
if: matrix.compiler == 'clang' && matrix.platform != 'windows-latest'
Expand All @@ -134,7 +134,7 @@ jobs:
refreshenv
- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand All @@ -156,19 +156,19 @@ jobs:
shell: bash

- name: Cache cargo registry
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: $HOME/.cargo/registry
key: cargo-registry-${{ env['cache_hash'] }}

- name: Cache cargo index
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: $HOME/.cargo/git
key: cargo-git-${{ env['cache_hash'] }}

- name: Cache cargo build
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: target
key: cargo-target-${{ env['cache_hash'] }}
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Set default compiler
if: matrix.compiler == 'clang' && matrix.platform != 'windows-latest'
Expand All @@ -231,7 +231,7 @@ jobs:
refreshenv
- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand All @@ -253,19 +253,19 @@ jobs:
shell: bash

- name: Cache cargo registry
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: $HOME/.cargo/registry
key: cargo-registry-${{ env['cache_hash'] }}

- name: Cache cargo index
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: $HOME/.cargo/git
key: cargo-git-${{ env['cache_hash'] }}

- name: Cache cargo build
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: target
key: cargo-target-${{ env['cache_hash'] }}
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ matrix.platform }}.${{ matrix.toolchain }}.${{ matrix.compiler }}.zip
path: artifacts/
26 changes: 13 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Set default compiler
if: matrix.compiler == 'clang'
Expand All @@ -40,7 +40,7 @@ jobs:
echo "CXX=clang++" >> "$GITHUB_ENV"
- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand All @@ -54,10 +54,10 @@ jobs:
components: clippy, rustfmt
override: true

- uses: Swatinem/rust-cache@v1.3.0
- uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # v2.0.1

- name: Cache sccache
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: "$HOME/sccache"
key: sccache-${{ env['cache_hash'] }}
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Set default compiler
if: matrix.compiler == 'clang'
Expand All @@ -110,7 +110,7 @@ jobs:
echo "CXX=clang++" >> "$GITHUB_ENV"
- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand All @@ -124,10 +124,10 @@ jobs:
components: clippy, rustfmt
override: true

- uses: Swatinem/rust-cache@v1.3.0
- uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # v2.0.1

- name: Cache sccache
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: "$HOME/sccache"
key: sccache-${{ env['cache_hash'] }}
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0

- name: Set default compiler
if: matrix.compiler == 'clang'
Expand All @@ -191,7 +191,7 @@ jobs:
echo "CXX=clang++" >> "$GITHUB_ENV"
- name: Checkout sources & submodules
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
Expand All @@ -205,10 +205,10 @@ jobs:
components: clippy, rustfmt
override: true

- uses: Swatinem/rust-cache@v1.3.0
- uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # v2.0.1

- name: Cache sccache
uses: actions/cache@v2.1.6
uses: actions/cache@v3.0.11
with:
path: "$HOME/sccache"
key: sccache-${{ env['cache_hash'] }}
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ matrix.platform }}.${{ matrix.toolchain }}.${{ matrix.compiler }}.zip
path: artifacts/
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libsecp256k1"
description = "Pure Rust secp256k1 implementation."
license = "Apache-2.0"
version = "0.7.0"
version = "0.7.1"
authors = ["Wei Tang <hi@that.world>"]
repository = "https://github.com/paritytech/libsecp256k1"
keywords = ["crypto", "ECDSA", "secp256k1", "bitcoin", "no_std"]
Expand All @@ -25,7 +25,9 @@ lazy_static = { version = "1.4.0", optional = true }
secp256k1-test = { package = "secp256k1", version = "0.20.3", features = ["rand-std", "recovery"] }
clear_on_drop = "0.2"
serde_json = "1.0"
hex = "0.4"
hex-literal = "0.3.3"
bincode = "1.3.3"

[build-dependencies]
libsecp256k1-gen-ecmult = { version = "0.3.0", path = "gen/ecmult" }
Expand Down
Loading

0 comments on commit 2a6bcb8

Please sign in to comment.