@spirobel/monero-wallet-api
v0.2.0
Published
To install dependencies:
Downloads
6
Readme
@spirobel/monero-wallet-api
To install dependencies:
cd typescript || cd ../typescript
bun installTo build:
cd typescript || cd ../typescript
bun buildrust release build
cd rust || cd ../rust
cargo wasi build --target wasm32-wasip1 --release --libprerequisite: install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrustup install 1.83.0
rustup default 1.83.0
rustup target add wasm32-wasip1reproducible build with pinned cargo + rust + cargo wasi
make the image
cd rust || cd ../rust
docker build -t monero-wallet-api-build .build the library -> find the result in target/wasm32-wasip1/release
docker run -v $(pwd):/app -it monero-wallet-api-buildcd typescript || cd ../typescript
bun run build
bun run inlinesumif the content of the checksum.txt file stays the same, the build was reproduced.
to verify that the wasm file distributed on npm matches the checksum, add the npm package as a dependency to a project and compare the sha256sum output with the checksum.txt file in the git repo.
cd /tmp
bun init
bun add @spirobel/monero-wallet-api
cat node_modules/@spirobel/monero-wallet-api/dist/wasmFile.js | sha256sum