From 36350fb60918eb57f3ea65cb6c6addf29793b1ea Mon Sep 17 00:00:00 2001 From: Izumi Hoshino Date: Mon, 1 Apr 2024 01:46:33 +0900 Subject: [PATCH] Updated documents --- CHANGELOG.md | 5 +++++ README.md | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f899baa..456aacc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,12 @@ This version is compatible with [`960f8d139940fa0814d3fac44da9a2975642f5d3`](htt ### Changed - Now `op_div` does not accept negative operands. - `convert_atom_to_bytes()` now is able to convert an object which has `toBytes()` method. +- `SExp` can be initialized from `LazyNode` of `clvm_wasm` (Rust version of `clvm`) - Update tests. +### Added +- Added `clvm_rs` support + - Added `run_chia_program` +- Added `asUint8Array()` method to `Stream` ## [2.0.1] This version is compatible with [`480b32840c525e17b5ab2f29036c033febaae71e`](https://github.com/Chia-Network/clvm/tree/480b32840c525e17b5ab2f29036c033febaae71e) of [clvm](https://github.com/Chia-Network/clvm) diff --git a/README.md b/README.md index 8f3c8a8..c88e1d9 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,11 @@ you need to put `blsjs.wasm` to the same directory as the code who loads `clvm`.
 ├── ...
 ├── main.js      # js file which clvm is compiled into
-└── blsjs.wasm   # copy it from npm_modules/clvm/browser/blsjs.wasm
+├── blsjs.wasm   # copy it from npm_modules/clvm/browser/blsjs.wasm
+└── clvm_wasm_bg.wasm   # copy it from npm_modules/clvm/browser/clvm_wasm_bg.wasm
 
-If you use [React](https://reactjs.org/), copy `blsjs.wasm` into `/public/static/js/` folder. It automatically copies wasm file next to main js file. +If you use [React](https://reactjs.org/), copy `blsjs.wasm` and `clvm_wasm_bg.wasm` into `/public/static/js/` folder. It automatically copies wasm file next to main js file. **Note1** Don't forget to wait `clvm.initialize()` if you are not sure whether `pubkey_for_exp`/`point_add` will be called. @@ -82,7 +83,7 @@ Don't forget to wait `clvm.initialize()` if you are not sure whether `pubkey_for If you're really sure that `pubkey_for_exp`/`point_add` will never be called, then you can opt out `blsjs.wasm` and `await clvm.initialize()`. If so, you can make your code fully synchronous. **Note3** -Redistributing your project with bundled `blsjs.wasm` must be compliant with Apache2.0 License provided by [Chia-Network](https://github.com/Chia-Network/bls-signatures/blob/main/LICENSE) +Redistributing your project with bundled `blsjs.wasm` and/or `clvm_wasm_bg.wasm` must be compliant with Apache2.0 License provided by [Chia-Network](https://github.com/Chia-Network/bls-signatures/blob/main/LICENSE) ### Browser compatibility `clvm-js` uses `BigInt`. So if runtime environment does not support `BigInt`, `clvm-js` doesn't work as well.