Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
529a87b
adding privateKey getter
Mar 21, 2025
a383f28
Merge remote-tracking branch 'origin/convert-to-wallet-class' into co…
Mar 21, 2025
963bafd
version bump
Mar 21, 2025
a5c2eb0
added Pear compat
Mar 30, 2025
9d3b09a
added Pear compat
Mar 31, 2025
bb641bf
added support for Pear desktop
Apr 1, 2025
de50e1b
added pear typedef
Apr 2, 2025
db41cf7
added pear typedef
Apr 9, 2025
166b038
replaced question with awaits. tty enter bug remains.
Apr 20, 2025
80ec203
cleaned dependencies
Apr 20, 2025
096578f
fixed bug where enter had to be hit multiple times in interactive mod…
Apr 20, 2025
daf309c
fixed bug where enter had to be hit multiple times in interactive mod…
Apr 20, 2025
c09dec0
ignoring package log for now
Apr 20, 2025
3cede93
revived and fixed mocha tests
Apr 21, 2025
d3b661f
added HD Wallet test
Apr 21, 2025
d77c55a
added HD Wallet test
Apr 21, 2025
f46aac8
added HD Wallet test
Apr 21, 2025
959412e
Add 32 byte nonce generation
b-garbacz Apr 22, 2025
8fbd650
version bump
Apr 22, 2025
593a234
remove unused size constant
b-garbacz Apr 22, 2025
0d296a6
version bump
Apr 22, 2025
76437e7
removed rl.close() as it has side-effects in parent apps
Apr 26, 2025
a33cb26
unpinned fs
May 25, 2025
f7a7922
unpinned fs
May 25, 2025
c002de6
Implement keystore encryption
leonardostsouza May 8, 2025
7cb558c
Implement sensitive data cleanup
leonardostsouza May 8, 2025
3299564
Export constants to an external file
leonardostsouza May 9, 2025
bb0e949
Refactor commentaries and error messages
leonardostsouza May 9, 2025
926bed7
Improve file import and export error handling
leonardostsouza May 12, 2025
4c59a5e
Refactor data export tests
leonardostsouza Jun 23, 2025
1216780
Implement backwards compatibility of encrypted storage
leonardostsouza Jun 26, 2025
778ead0
Refactor encryption and decryption function to use buffers as input
leonardostsouza Jun 26, 2025
c7eb3d2
Update instructions for testing
leonardostsouza Jun 26, 2025
c945a36
Return buffers instead of strings in Wallet class functions
leonardostsouza Jun 26, 2025
2870faf
Update unit tests for buffer returns
leonardostsouza Jun 30, 2025
d3887f4
Refactor import/export keystorage logic
leonardostsouza Jun 30, 2025
01f131c
Implement native support for trac address
leonardostsouza Jul 4, 2025
747210e
Implement bech32m encoding/decoding for address
leonardostsouza Jul 8, 2025
c3fa4d3
Implement safe versions of bech32 encode/decode
leonardostsouza Jul 9, 2025
b9108fc
Remove verifyOnly mode by making verify method static
leonardostsouza Jul 16, 2025
e4e0ba0
Define adress constants
leonardostsouza Jul 24, 2025
8db1db0
Fix interactive mode blocking other instances of readline
leonardostsouza Jul 28, 2025
26ff6b5
Implement support for bare-fs
leonardostsouza Jul 31, 2025
e501c96
chore(ci): add github actions CI
b-garbacz Aug 6, 2025
079acde
fix: restore package-lock.json
b-garbacz Aug 6, 2025
6a2389b
Merge pull request #15 from Trac-Systems/14-implement-ci
b-garbacz Aug 6, 2025
57287c7
Add blake3 package (#21)
leonardotc Aug 20, 2025
2ac550d
Reimplement peerwallet to use new trac-crypto-api (#23)
leonardostsouza Aug 29, 2025
cf2ccb0
fix(CI): update test steps to include node and bare tests
b-garbacz Aug 29, 2025
2092be6
Merge pull request #24 from Trac-Systems/fix-CI-utilize-brittle-tests
b-garbacz Aug 29, 2025
9f110bd
Implement key derivation
leonardostsouza Sep 16, 2025
c52ee29
chore: bump trac-crypto-api package version
b-garbacz Sep 19, 2025
43e38c0
chore: remove micro-key-producer from devDependencies
b-garbacz Sep 19, 2025
ccadd2e
bump version
b-garbacz Sep 19, 2025
23f605b
Expose trac-crypto-api constants
leonardostsouza Sep 19, 2025
3a9fbb4
Fix PeerWallet random keypair generation from cli
leonardostsouza Sep 19, 2025
8c5113a
Allow empty passwords for keypair encryption
leonardostsouza Sep 19, 2025
eaa995e
Fix encrypted file read
leonardostsouza Sep 19, 2025
0205acf
update package json
b-garbacz Sep 19, 2025
ad42f95
chore: update package json 0.0.43-msb-r2.4
b-garbacz Oct 10, 2025
a9451d4
Improved interaction for 12-24 word recovery
jusufsuljic Oct 14, 2025
3758253
Merge pull request #29 from Trac-Systems/28-add-12-word-mnemonic-support
jusufsuljic Oct 15, 2025
aff2c7c
chore: bump version to 0.0.43-msb-r2.5
b-garbacz Oct 16, 2025
110a677
chore: update version to 0.0.43-msb-r2.6 and upgrade trac-crypto-api …
b-garbacz Oct 20, 2025
3b681fd
Expose blake3 methods
leonardostsouza Oct 24, 2025
38b35a5
refactor: update user input options in PeerWallet to remove manual se…
b-garbacz Oct 27, 2025
4631ff0
chore: bump version to 0.0.43-msb-r2.7
b-garbacz Oct 27, 2025
3e5b5f0
chore: bump version to 0.0.43-msb-r2.8 and update trac-crypto-api to …
b-garbacz Nov 5, 2025
226028d
Fix constants naming
leonardostsouza Dec 16, 2025
0ea3c99
Implement wallet creation from keypair
leonardostsouza Dec 16, 2025
437d37c
WIP: Convert PeerWallet into factory class for Wallet
leonardostsouza Dec 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: WALLET-CI

on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [ 20 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run node tests
run: npm run test:node
- name: Install bare
run: npm i -g bare
- name: Run bare tests
run: npm run test:bare
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# idea
.idea
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ wallet.exportToFile(filePath);
To run the tests, use the following command:

```bash
npx mocha test.js
npm run test
```

## License
Expand Down
6 changes: 6 additions & 0 deletions constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import tracCryptoApi from 'trac-crypto-api';

export const TRAC_NETWORK_MSB_MAINNET_PREFIX = 'trac';
export const TRAC_PUBLIC_KEY_SIZE = tracCryptoApi.address.PUB_KEY_SIZE;
export const TRAC_SECRET_KEY_SIZE = tracCryptoApi.address.PRIV_KEY_SIZE;
export const TRAC_SIGNATURE_SIZE = tracCryptoApi.signature.SIZE;
Loading
Loading