Encry is a distributed digital asset platform supporting smart contracts in non turing-complete Prism language (https://github.com/EncryFoundation/PrismLang) and custom asset issuing.
PrismLang - Contract-oriented scripting language designed specially for EncryCore.
At first, you should download latest release from this page, your target in EncryCore.jar
. Make sure that you have a compatible Java Runtime Environment 1.8 or later (64-bit version, you can find official guide here). Once download is complete, you should navigate to the folder where EncryCore.jar
is located and execute the following command:
$ java -jar EncryCore.jar
To run this app with additional configurations you should execute the following command:
$ java -jar EncryCore.jar file_with_your_configurations.conf
List of default configs you can find in:
EncryCore/srs/main/resources/configs/
To run EncryCore node you need JRE 1.8 or later (64-bit version, you can find official guide here) and sbt(Simple build tool for scala and java applications, official guide) to be installed. If you running a Windows machine, please make sure, that you have git client installed.
Configuration file is src/main/resources/application.conf
.
Linux/MacOS/Windows:
$ git clone https://github.com/EncryFoundation/EncryCore.git
$ cd EncryCore
$ git checkout master
$ sbt run
- After successful installation using any of the described methods above you will have node CLI(command line interface) in opened terminal, description of the valid CLI commands can be found below.
- Description of node's api can be found here
You can interact with your node using command line interface. Note that generic command structure is:
[GROUP_NAME] [COMMAND] -[ARGUMENT_1]=[VAL_1] -[ARGUMENT_2]=[VAL_2]
If you just have installed node, to check that everything is fine you can run :
wallet createKey
Here is list of the other valid commands:
| Group name | Command | Argument | Meaning
|------------|-----------------|-----------------|--------------------------------
| node | shutdown | None | Shutdown the node
| node | stopMining | None | Node stops mining
| node | startMining | None | Node starts mining
| settings | addPeer | host, port | Add peer to 'knownPeers'
| wallet | pubKeys | None | Print available public keys
| wallet | privKeys | None | Print available private keys
| wallet | addrs | None | Print available addresses
| wallet | createKey | None | Add key to storage
| wallet | balance | None | Show balance of current wallet
| wallet | transfer | addr, amount | Transfer `amount` to `addr`ess
| app | help | None | Show all supported commands
$ sbt test
All contributions are made under the GNU General Public License v3. See LICENSE.
YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.