qqmee / aleo-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDK for aleo blockchain

Maintainer aleochain.io team.

SDK package size has been greatly reduced compared to @aleohq/sdk (> 1.45 MiB). Less features. Based on testnet3 branch.

Package (.wasm) Size Gzip (6 lvl) Brotli (6 lvl)
@aleohq/sdk 3 MiB 2 MiB 1.45 MiB
@qqmee/sdk-account-nodejs 176 KiB 66 KiB 59 KiB
@qqmee/sdk-account-web ^ ^ ^
@qqmee/sdk-account-bundler ^ ^ ^

Features

  • create a new acccount
  • from private key
  • from view key
  • from seed

Examples

They here

Install rust (archlinux)

pacman -S rustup wasm-pack
rustup update stable --force

Install nodejs

Follow https://github.com/nvm-sh/nvm#installing-and-updating

nvm install --lts # or 16

How to build

Example for account package

Download

git clone https://github.com/qqmee/aleo-sdk && cd aleo-sdk/packages/account

Build

wasm-pack build --scope qqmee --features console_error_panic_hook --target nodejs # or web

How to run examples

Use wasm-pack as mentioned above before launch

cd examples
npm i
node account.mjs

About

License:GNU Affero General Public License v3.0


Languages

Language:Rust 100.0%