From 3c63bc07cffa0644e9c3ec617f32ff93b2113f03 Mon Sep 17 00:00:00 2001 From: Zhen Lu Date: Fri, 15 Dec 2023 12:52:41 -0800 Subject: [PATCH] Add Release.MD --- RELEASE.md | 46 +++++++++++++++++++++++++++++++++++++++++++ src/remote_signing.rs | 1 + 2 files changed, 47 insertions(+) create mode 100644 RELEASE.md diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..202eb81 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,46 @@ +Please follow the below steps to release a new version of the crypto library. + +# Python + +Python build and release is setup on Github action. + +## Step 1: Bump python lib version +In `python/lightspark_crypto/__init__.py`, bump the version number. + +## Step 2: Run `Publish to PyPI` workflow +https://github.com/lightsparkdev/lightspark-crypto-uniffi/actions/workflows/publish_python.yml + +# Go + +Go library needs to be built and released manually following the below steps. + +## Step 1: Build + +Run the following command to build the go library. + +```bash +$ make build-go +``` + +Then create a PR and commit the changes. + +## Step 2: Release + +Create a release tag and make a release on Github. + +## Step 3: Publish to Go + +Run the following command to publish the go library. + +```bash +$ GOPROXY=proxy.golang.org go list -m github.com/lightsparkdev/lightspark-crypto-uniffi/lightspark-crypto-go@[version] +``` + +# Kotlin + +TODO + +# Swift + +Run `Release` github action workflow to release the swift library. + diff --git a/src/remote_signing.rs b/src/remote_signing.rs index 3f4ceef..c6cde4e 100644 --- a/src/remote_signing.rs +++ b/src/remote_signing.rs @@ -44,6 +44,7 @@ impl RemoteSigningResponseWasm { } } +#[wasm_bindgen] #[derive(Clone, Copy, Debug)] pub enum RemoteSigningError { WebhookParsingError,