chore(release): v0.2.0-beta (#11)

* chore: refactor into 2 crates, example and sdk

* fix(ci): stopgap, comment delete tag step
This commit is contained in:
Aaryamann Challani
2024-05-27 13:42:54 +05:30
committed by GitHub
parent f2dccaeecc
commit 94ec1f2dfe
5 changed files with 12 additions and 7 deletions

View File

@@ -43,14 +43,14 @@ jobs:
run: |
cross build --release --target ${{ matrix.target }} --features ${{ matrix.curve }}
mkdir release
cp target/${{ matrix.target }}/release/*.a release/
cp ../target/${{ matrix.target }}/release/*.a 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 }}-${{matrix.curve}}.tar.gz
path: ./sdk/${{ matrix.target }}-${{matrix.curve}}.tar.gz
retention-days: 2
macos:
@@ -89,14 +89,14 @@ jobs:
run: |
cross build --release --target ${{ matrix.target }} --features ${{ matrix.curve }}
mkdir release
cp target/${{ matrix.target }}/release/*.a release/
cp ../target/${{ matrix.target }}/release/*.a 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 }}-${{ matrix.curve }}.tar.gz
path: ./sdk/${{ matrix.target }}-${{ matrix.curve }}.tar.gz
retention-days: 2
prepare-prerelease:

2
Cargo.lock generated
View File

@@ -606,7 +606,7 @@ dependencies = [
[[package]]
name = "stealth_address_kit"
version = "0.1.0"
version = "0.2.0-beta"
dependencies = [
"ark-bls12-377",
"ark-bls12-381",

View File

@@ -2,6 +2,9 @@
name = "stealth_address_kit_example"
version = "0.1.0"
edition = "2021"
description = "An example of using the stealth_address_kit library"
license = "MIT"
homepage = "https://vac.dev"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -1,6 +1,6 @@
[package]
name = "stealth_address_kit"
version = "0.1.0"
version = "0.2.0-beta"
edition = "2021"
description = "Stealth Address Kit: A Rust library for generating stealth addresses."
license = "MIT"

View File

@@ -1,5 +1,5 @@
use crate::define_curve_tests;
use crate::stealth_addresses::StealthAddressOnCurve;
use crate::{define_curve_ffi, define_curve_tests};
use ark_bn254::{Bn254, Fr, G1Projective};
impl StealthAddressOnCurve for Bn254 {
@@ -7,6 +7,8 @@ impl StealthAddressOnCurve for Bn254 {
type Fr = Fr;
}
#[cfg(feature = "ffi")]
use crate::define_curve_ffi;
#[cfg(feature = "ffi")]
define_curve_ffi!(bn254, Bn254, Fr, G1Projective, 32, 32);
define_curve_tests!(Bn254);