https://github.com/numtel/open-nano-wallet
Nano (RaiBlocks) light wallet
https://github.com/numtel/open-nano-wallet
Last synced: about 1 year ago
JSON representation
Nano (RaiBlocks) light wallet
- Host: GitHub
- URL: https://github.com/numtel/open-nano-wallet
- Owner: numtel
- License: mit
- Created: 2018-01-30T02:16:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T06:53:20.000Z (about 8 years ago)
- Last Synced: 2025-03-21T06:41:24.650Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://numtel.github.io/open-nano-wallet
- Size: 809 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Open Nano Wallet
[Nano](https://nano.org) (Formerly [Raiblocks](https://raiblocks.net)) wallet that runs without a full node.
[View GitHub hosted instance](https://numtel.github.io/open-nano-wallet)
## How It Works
Backend services are comprised of [2 very simple AWS Lambda functions](api.yml):
1. `/account` Transaction history is gleaned from the [nanode.co block explorer](https://www.nanode.co)
2. `/publish` New blocks are published to the network using a generic UDP publisher
The frontend may be served statically since there is no central wallet database. Wallets are encrypted using a randomly generated salt and your given password then kept in the browser's `localStorage`.
Proof of work (PoW) is calculated using [numtel/nano-webgl-pow](https://github.com/numtel/nano-webgl-pow) and [jaimehgb/RaiBlocksWebAssemblyPoW](https://github.com/jaimehgb/RaiBlocksWebAssemblyPoW). A [WASM](https://caniuse.com/#feat=wasm) or [WebGL2](https://caniuse.com/#feat=webgl2) compatible browser is required to calculate work values.
Work values begin calculating as soon as possible and are persisted in the stored wallet for later use. Long transaction processing times indicate that the work value is still calculating.
## Installation
1. Create a new AWS CloudFormation stack using the [`api.yml` stack template](api.yml).
2. Update the endpoint URL values in [`index.html`](index.html)
3. Host the frontend
```sh
$ python -m SimpleHTTPServer
```
4. Browse to the frontend: [`http://localhost:8000`](http://localhost:8000)
## Redeemable link codes
The link code value contains a base64 encoded `Uint8Array` of length 40.
* The first 32 bytes are the private key of the redeem account.
* The last 8 bytes are a valid work value for using the `open` block as a `previous` in order to allow the recipient instant access to funds.
When encrypted with a password, the link code value contains 2 base64 encoded values separated by a colon.
* The first is the salt used to generate the encryption key.
* The second is the box generated by encrypting the original value.
See the [source code listing for the encrypt and decrypt functions](https://github.com/numtel/open-nano-wallet/blob/e7cdf269f96cb88dc513f4e4cf5f9620c4f12327/functions.js#L15-L42) for more information.
With the encoded information, redeemable accounts can be recovered by other means than this wallet application.
## License
MIT