Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add secp256k1 vrf rust part #55

Merged
merged 9 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 31 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Nightly default
Expand All @@ -25,55 +25,55 @@ jobs:
- name: build
run: cargo build --all --all-targets --verbose --release
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto.dylib
file: target/release/libffi_c_crypto.dylib
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_zkp.dylib
file: target/release/libffi_c_zkp.dylib
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto_binary.dylib
file: target/release/libffi_java_crypto_binary.dylib
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto_binary.dylib
file: target/release/libffi_c_crypto_binary.dylib
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_fisco_bcos_sdk.dylib
file: target/release/libffi_fisco_bcos_sdk.dylib
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_fisco_bcos.dylib
file: target/release/libffi_c_fisco_bcos.dylib
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto.dylib
Expand All @@ -85,7 +85,7 @@ jobs:
- name: rename to ffi_java_sdk lib
run: mv target/release/libffi_java_crypto.dylib target/release/libffi_java_sdk.dylib
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_sdk.dylib
Expand All @@ -95,11 +95,15 @@ jobs:

build_with_centos:
name: build_with_centos
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION: "node16"
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: "node16"
runs-on: ubuntu-latest
container:
image: docker.io/centos:7
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: install rust language
Expand All @@ -115,55 +119,55 @@ jobs:
run: |
cargo build --all --all-targets --verbose --release
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto.so
file: target/release/libffi_c_crypto.so
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_zkp.so
file: target/release/libffi_c_zkp.so
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto_binary.so
file: target/release/libffi_java_crypto_binary.so
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_crypto_binary.so
file: target/release/libffi_c_crypto_binary.so
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_fisco_bcos_sdk.so
file: target/release/libffi_fisco_bcos_sdk.so
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_c_fisco_bcos.so
file: target/release/libffi_c_fisco_bcos.so
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_crypto.so
Expand All @@ -175,7 +179,7 @@ jobs:
- name: rename to ffi_java_sdk lib
run: mv target/release/libffi_java_crypto.so target/release/libffi_java_sdk.so
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libffi_java_sdk.so
Expand All @@ -190,7 +194,7 @@ jobs:
matrix:
os: [windows-2019]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 5
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
Expand All @@ -199,55 +203,55 @@ jobs:
run: |
cargo build --all --all-targets --verbose --release
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_crypto.dll
asset_name: ffi_c_crypto.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_c_zkp.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_zkp.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_java_crypto_binary.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto_binary.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_c_crypto_binary.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_crypto_binary.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_fisco_bcos_sdk.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_fisco_bcos_sdk.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_c_fisco_bcos.dll
file: D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_c_fisco_bcos.dll
tag: ${{ github.ref }}
overwrite: true
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_java_crypto.dll
Expand All @@ -259,7 +263,7 @@ jobs:
- name: rename to vrf lib
run: mv D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_crypto.dll D:\a\WeDPR-Lab-Crypto\WeDPR-Lab-Crypto\target\release\ffi_java_sdk.dll
- name: Upload wedpr-lab-crypto binaries to release
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v4-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: ffi_java_sdk.dll
Expand Down
Loading
Loading