@spirobel/monero-wallet-api
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@spirobel/monero-wallet-api

To install dependencies:

cd typescript || cd ../typescript
bun install

To build:

cd typescript || cd ../typescript
bun build

rust release build

cd rust || cd ../rust
cargo wasi build  --target wasm32-wasip1 --release --lib

reproducible 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-build
cd typescript || cd ../typescript
bun run build
bun run inlinesum

if 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

Readme

Keywords

none

Package Sidebar

Install

npm i @spirobel/monero-wallet-api

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

612 kB

Total Files

14

Last publish

Collaborators

  • spirobel