Skip to content
Asch is an efficient, flexible, safe and decentralized application platform, which was initially designed to lower the barrier to entry for developers.The services provided by the Asch platform include a public chain and a set of application SDKs.
JavaScript Shell
Branch: develop
Clone or download
Latest commit eb42c76 Jul 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
init add execute permission Oct 22, 2017
public/dist fix(ENOENT): Add .gitkeep file to public/dist directory Oct 18, 2018
src chore(contract): limit arguments size of contract call, and do some o… Jun 30, 2019
test chore: add pre-commit check Aug 25, 2018
.editorconfig feat: support multisig group Jun 14, 2018
.eslintignore chore: add pre-commit check Aug 25, 2018
.eslintrc.js chore: use asch-base instead of airbnb-base Jul 11, 2018
.gitignore test: add coverage reporter tool (#257) Aug 24, 2018
.npmrc remove eslintignore & add npmrc Jun 13, 2018
.nycrc test: add coverage reporter tool (#257) Aug 24, 2018
.travis.yml fix(travis):update node vm version Apr 24, 2019
ISSUE_TEMPLATE.md Create ISSUE_TEMPLATE.md Feb 1, 2018
README.md doc: update dependency requirement May 20, 2019
app.js bump version v1.5.2 Jul 1, 2019
aschd
build.js fix(contract): fix balance is bignumbe cause app.balance.transfer faild Oct 17, 2018
config-mainnet.json chore: change default loglevel to info Aug 1, 2018
config-testnet.json bump version v1.5.0-beta+5 Jun 12, 2019
config.json fix(contract): fix pay contract external arguments issue Apr 25, 2019
configure chore: add repo configure file Aug 25, 2018
genesisBlock.json
jest.config.js chore: add jest config Aug 20, 2018
package.json bump version v1.5.2 Jul 1, 2019

README.md

Build Status Author License Platform


Asch

Asch system is a decentralized application platform, which is designed to lower the threshold for developers, such as using JavaScript as develop language, supporting relational database to save transaction data, and making DAPP development be similar with traditional Web application. It is sure that these characteristics are very attractive to developers and SMEs. The ecosystem of the whole platform cannot be improved until developers make a huge progress on productivity. Also, Asch platform is designed to be open for various fields, not limited to some particular parts such as finance, file storage, or copyright proof. It provides underlying and abstract API which can be combined freely to create different types of applications. In consensus mechanism, Asch inherits and enhances DPOS algorithm, by which the possibility of forks and risk of duplicate payments would be significantly reduced. Furthermore, Asch sidechain mode not only can mitigate the pressure of blockchain expansion, but also make DAPP more flexible and personal. Asch system, as a proactive, low-cost and full stack solution, will surely be a next generation incubator of decentralized applications.

More infomation please visit

System Dependency

  • nodejs v10.14.1+
  • npm v6.4.1+
  • g++
  • libssl

For ubuntu 14.04.x or higher.

# Install dependency package
sudo apt-get install curl sqlite3 ntp wget git libssl-dev openssl make gcc g++ autoconf automake python build-essential -y
# libsodium for ubuntu 14.04
sudo apt-get install libtool -y
# libsodium for ubuntu 16.04
sudo apt-get install libtool libtool-bin -y

# Install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
# This loads nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# Install node and npm for current user.
nvm install v8
# check node version and it should be v8.x.x
node --version

# git clone sourece code
git clone https://github.com/AschPlatform/asch && cd asch

# Install node packages
npm install

# Build
> node build linux {localnet|testnet|mainnet}

# Run
> cd build/asch-linux-{version}-{localnet|testnet|mainnet}
> chmod +x aschd
> ./aschd start

# or run
> node app.js

Installation on docker.

Please install Docker firstly

# pull asch code docker image
docker pull aschplatform/asch:v1.3.0
# run docker and asch
docker run -i -t --name asch1.3.0 -p 4096:4096 aschplatform/asch:v1.3.0 /bin/bash
root@e149b6732a48:/# cd /data/asch && ./aschd start
Asch server started as daemon ...

Web Wallet

Then you can open http://localhost:4096 in your browser to visit the Web Wallet.

Usage

node app.js --help

  Usage: app [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -c, --config <path>        Config file path
    -p, --port <port>          Listening port number
    -a, --address <ip>         Listening host name or ip
    -b, --blockchain <path>    Blockchain db path
    -g, --genesisblock <path>  Genesisblock path
    -x, --peers [peers...]     Peers list
    -l, --log <level>          Log level
    -d, --daemon               Run asch node as daemon
    --reindex                  Reindex blockchain
    --base <dir>               Base directory

Default localnet genesis account

This is the genesis account of localnet and one hundred million XAS in it.

{
  "address": "ABuH9VHV3cFi9UKzcHXGMPGnSC4QqT2cZ5",
  "publicKey": "116025d5664ce153b02c69349798ab66144edd2a395e822b13587780ac9c9c09",
  "secret": "stone elephant caught wrong spend traffic success fetch inside blush virtual element" // password
}

Releated projects

License

The MIT License (MIT)

Copyright (c) 2016-2018 Asch
Copyright (c) 2015 Crypti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.