Giter Site home page Giter Site logo

utnet-org / utility Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 26.0 9.26 MB

utility blockchain node that drives web3 applications

License: GNU General Public License v2.0

Dockerfile 0.06% Just 0.05% Makefile 0.04% Rust 93.13% CSS 0.04% HTML 0.67% JavaScript 0.15% Python 3.45% Shell 0.15% C 0.08% TypeScript 1.84% SCSS 0.21% Roff 0.14%
ai vrf web3

utility's Introduction





Build Stable Status Prerelease Status codecov Discord chat Telegram Group

Table of Contents

About Utility

Utility's mission is to stimulate community-led innovation for the benefit of people worldwide.

To realize this mission, Utility provides a platform where developers and entrepreneurs can build applications that put users back in control of their data and assets. This is a core tenet of the ["Open Web" movement][open-web-url].

A key component of utnet is utility, a blockchain-powered unc-infra.tructure for serverless applications and smart contracts. Utility aims to offer the ease-of-use and scalability of modern PaaS like Firebase, but at a fraction of the cost of blockchains like Ethereum.

Installation

The easiest way to join the network, is by using the make release command or download release binaries, which you can install as follows:

# testnet node init directly use binaries
unc-node --home ~/.unc  init --chain-id testnet --download-genesis --download-config

# download snapshot data (optional)
## install rclone 1.66.0 or beyond
```sh
# Mac 
$ brew install rclone

# Linux
$ sudo apt install rclone

$ mkdir -p ~/.config/rclone
$ touch ~/.config/rclone/rclone.conf

## rclone config
[unc_cf]
type = s3
provider = Cloudflare
endpoint= https://ec9b597fa02615ca6a0e62b7ff35d0cc.r2.cloudflarestorage.com
access_key_id = 2ff213c3730df215a7cc56e28914092e
secret_access_key = b28609e3869b43339c1267b59cf25aa5deff4097737d3848e1491e0729c3ff6c
acl = public-read

## download data 
$ rclone copy --no-check-certificate unc_cf:unc/latest ./
$ latest=$(cat latest)
$ rclone copy --no-check-certificate --progress --transfers=6  unc_cf:unc/${latest:?}.tar.gz /tmp

## un archive snapshot
tar -zxvf /tmp/${latest:?}.tar.gz -C /tmp  && mv /tmp/${latest:?}/data ~/.unc

## on ~/.unc dir touch file `validator_key.json`  (optional)
{
    "account_id": "miner-addr"
    "public_key":"ed25519:2yMvZrTtjgFMtcpE12G3tdt7KsYKdKE6jufRnz4Yyxw3",
    "private_key":"ed25519:3NVx4sHxBJciEH2wZoMig8YiMx1Q84Ur2RWTd2GQ7JNfWdyDxwwYrUR6XtJR3YcYeWh9NzVEmsnYe2keB97mVExZ"
}

# node run
$ unc-node --home ~/.unc  run

To learn how to become validator, checkout documentation.

Directory Structure

├── chain: Consensus chain interaction utilities.
│ ├── bindings: block chain validate and rocksdb column.
│ ├── src: peer node bootstrap.
│ └── network: libp2p network discover.
├── docs: Documentation resources, including images and diagrams.
├── core: Components for utility primitives.
│ ├── crypto: Crypto libs rsa2048, secp256k1.
│ ├── primitives: Chain relatives base data structure.
│ └── store: rocksdb store data structure.
├── infra: The Utility instance, including application logic and attestation mechanisms.
│ ├── infra: Node initialize for Utility.
│ └── test: Command-line tools and utilities.
├── runtime: Core libraries for various protocol functionalities.
│ ├── runtime: Chain state apply, contracts executor.
│ └── runner: Rust bindings for smart contracts.
├── node: Node service for chain messages and transactions.
│ └── node: Application logic for the node service.
├── scripts: Utility scripts for development and operational tasks.
└── test: Testing suite for end-to-end, smoke, and utility testing.

Contributing

For detailed instructions on how to contribute, including our coding standards, testing practices, and how to submit pull requests, please see the contribution guidelines

Security

Please refer to SECURITY.md.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.