chore: setup for release

This commit is contained in:
rymnc
2024-05-21 20:10:14 +05:30
parent f9c8286db0
commit 8b8b3a4add
4 changed files with 320 additions and 336 deletions

View File

@@ -40,13 +40,13 @@ jobs:
cross build --release --target ${{ matrix.target }} --features ${{ matrix.curve }}
mkdir release
cp target/${{ matrix.target }}/release/*.a release/
tar -czvf ${{ matrix.target }}-erc-5564-${{matrix.curve}}.tar.gz release/
tar -czvf ${{ matrix.target }}-${{matrix.curve}}.tar.gz release/
- name: Upload archive artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}-archive
path: ${{ matrix.target }}-erc-5564-${{matrix.curve}}.tar.gz
path: ${{ matrix.target }}-${{matrix.curve}}.tar.gz
retention-days: 2
macos:
@@ -82,13 +82,13 @@ jobs:
cross build --release --target ${{ matrix.target }} --features ${{ matrix.curve }}
mkdir release
cp target/${{ matrix.target }}/release/*.a release/
tar -czvf ${{ matrix.target }}-erc-5564-${{ matrix.curve }}.tar.gz release/
tar -czvf ${{ matrix.target }}-${{ matrix.curve }}.tar.gz release/
- name: Upload archive artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}-archive
path: ${{ matrix.target }}-erc-5564-${{ matrix.curve }}.tar.gz
path: ${{ matrix.target }}-${{ matrix.curve }}.tar.gz
retention-days: 2
prepare-prerelease:

640
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,10 @@
[package]
name = "erc-5564-rs"
name = "stealth_address_kit"
version = "0.1.0"
edition = "2021"
[lib]
name = "erc_5564_rs"
name = "stealth_address_kit"
path = "src/lib.rs"
crate-type = ["staticlib"]

View File

@@ -13,8 +13,8 @@ Uses the [arkworks-rs](https://github.com/arkworks-rs/curves) suite of libraries
## Usage
```rust
use erc_5564_rs::{StealthAddressOnCurve};
use ark_bn254::Bn254; // or ark_bls_12_381::Bls12_381 or ark_bls_12_377::Bls12_377, erc_5564_rs::Secp256k1, erc_5564_rs::Secp256r1
use stealth_address_kit::{StealthAddressOnCurve};
use ark_bn254::Bn254; // or ark_bls_12_381::Bls12_381 or ark_bls_12_377::Bls12_377, stealth_address_kit::Secp256k1, stealth_address_kit::Secp256r1
fn main() {
let (spending_key, spending_public_key) = Bn254::random_keypair();