Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Sep 7, 2024
1 parent 3b9e31c commit 4affb01
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: "npm ci"
- run: "npm diff --diff=@brumemoney/wallet.wasm@${{github.ref_name}} --diff=."
- run: "[[ -z $(npm diff --diff=@brumemoney/wallet.wasm@${{github.ref_name}} --diff=.) ]]"
- run: "npm diff --diff=@brumewallet/wallet.wasm@${{github.ref_name}} --diff=."
- run: "[[ -z $(npm diff --diff=@brumewallet/wallet.wasm@${{github.ref_name}} --diff=.) ]]"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
WebAssembly bundle for Wallet

```bash
npm i @brumemoney/wallet.wasm
npm i @brumewallet/wallet.wasm
```

[**Node Package 📦**](https://www.npmjs.com/package/@brumemoney/wallet.wasm)
[**Node Package 📦**](https://www.npmjs.com/package/@brumewallet/wallet.wasm)

## Features
- Reproducible building
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"type": "module",
"name": "@brumemoney/wallet.wasm",
"name": "@brumewallet/wallet.wasm",
"version": "1.0.0",
"description": "WebAssembly bundle for Wallet",
"homepage": "https://github.com/brumemoney/wallet.wasm",
"repository": "github:brumemoney/wallet.wasm",
"homepage": "https://github.com/brumewallet/wallet.wasm",
"repository": "github:brumewallet/wallet.wasm",
"author": "hazae41",
"license": "Unlicense",
"main": "./dist/cjs/node/index.cjs",
Expand Down
6 changes: 4 additions & 2 deletions src/node/mods/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ const secretBase16 = base16_encode_lower(secretMemory)
using proofMemory = generated.to_proof()
const proofBase16 = base16_encode_lower(proofMemory)

const valueBase16 = base16_encode_lower(generated.to_value())
using valueMemory = generated.to_value()
const valueBase16 = base16_encode_lower(valueMemory)
const valueBigInt = BigInt("0x" + valueBase16)

console.log(valueBigInt, secretBase16, proofBase16)

console.log(`Generated ${valueBigInt} wei in ${end - start}ms`)
console.log(`Generated ${valueBigInt} wei in ${end - start}ms`)

2 changes: 1 addition & 1 deletion src/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["hazae41 <4405263+hazae41@users.noreply.github.com>"]
edition = "2021"

description = "WebAssembly bundle for Wallet"
repository = "https://github.com/brumemoney/wallet.wasm"
repository = "https://github.com/brumewallet/wallet.wasm"
license = "Unlicense"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion src/wasm/pkg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "Unlicense",
"repository": {
"type": "git",
"url": "https://github.com/brumemoney/wallet.wasm"
"url": "https://github.com/brumewallet/wallet.wasm"
},
"files": [
"wallet_wasm_bg.wasm",
Expand Down
2 changes: 2 additions & 0 deletions src/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_imports)]

pub use base16_wasm::*;
pub use base58_wasm::*;
pub use base64_wasm::*;
Expand Down

0 comments on commit 4affb01

Please sign in to comment.