Onix is a decentralized blockchain project built on Bitcoin's UTXO model

Related tags

Cryptography onix
Overview

What is Onix?

Onix is a decentralized blockchain project built on Bitcoin's UTXO model, with support for Ethereum Virtual Machine based smart contracts, and secured by a proof of stake consensus model. It achieves this through the revolutionary Account Abstraction Layer which allows the EVM to communicate with Onix's Bitcoin-like UTXO blockchain. For more general information about Onix as well as links to join our community, go to https://onixcoin.io

Welcome to the Onix Ignition Main Network. This is the main network where the tokens hold value and should be guarded very carefully. If you are testing the network, or developing unstable software on Onix, we highly recommend using either testnet or regtest mode.

The major features of the Onix network include:

  1. Compatibility with the Ethereum Virtual Machine, which allows for compatibility with most existing Solidity based smart contracts. No special solidity compiler is required to deploy your smart contract to Onix.
  2. A Proof of Stake consensus system which is optimized for Onix's contract model. Any user can stake and help to secure the network. There is no voting, master nodes, or minimum amount required. There have been transactions as small as 2 Onix that have created blocks in the past. Staking from smart contracts is under development.
  3. The Decentralized Governance Protocol is completely implemented and functional, which allows certain network parameters to be modified without a fork or other network disruption. This currently controls parameters like block size, gas prices, etc.
  4. Uses the UTXO transaction model and is compatible with Bitcoin, allowing for existing tooling and workflows to be used with Onix. This allows for the infamous SPV protocol to be used which is ideal for light wallets on mobile phones and IoT devices.

Note: Onix Core is considered beta software. We make no warranties or guarantees of its security or stability.

What is Onix Core?

Onix Core is our primary mainnet wallet. It implements a full node and is capable of storing, validating, and distributing all history of the Onix network. Onix Core is considered the reference implementation for the Onix network.

Onix Core currently implements the following:

  • Sending/Receiving ONIX coins
  • Sending/Receiving ORC20 tokens on the Onix network
  • Staking and creating blocks for the Onix network
  • Creating and interacting with smart contracts
  • Running a full node for distributing the blockchain to other users
  • "Prune" mode, which minimizes disk usage
  • Regtest mode, which enables developers to very quickly build their own private Onix network for Dapp testing
  • Testnet mode, using the public Onix Testnet, with faucet available
  • Compatibility with the Bitcoin Core set of RPC commands and APIs
  • Full SegWit capability with p2sh-segwit (legacy) and bech32 (native) addresses

Community Resources

Make sure to check out these resources as well for more information and to keep up to date with all the latest news about Onix. At least 1 developer is always around, so if you're developing on Onix and need help, we'd love to welcome you to our community.

Onix Smart Contract Limitations

  • EVM smart contracts cannot receive coins from or send coins to any address type other than pay-to-pubkeyhash (starts with X) addresses. This is due to a limitation in the EVM
  • Contracts are not allowed to create contracts with an initial endowment of coins. The contract must first be created, and then be sent coins in a separate transaction. Humans are also not allowed to create contracts with an initial endowment of coins.
  • Although all of the infrastructure is present, Onix Core does not currently parse Solidity event data. You must parse this yourself using either searchlogs or -record-log-opcodes features.
  • It is not possible to send a contract coins without also executing the contract. This is also the case of Ethereum. This was promised in earlier discussions and technically does work, but due to lack of time for testing this feature was disabled.
  • In Onix there can be multiple addresses used to create a proof-of-stake block. However, the EVM can only see the first output using the coinbase operation in Solidity (this address is also the one registered for the continuous staker rewards after 500 blocks).

Building Onix Core

Validate and Reproduce Binaries

Onix uses a tool called Gitian to make reproducible builds that can be verified by anyone. Instructions on setting up a Gitian VM and building Onix are provided in Gitan Building

Build on Ubuntu

This is a quick start script for compiling Onix on Ubuntu

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev libgmp3-dev
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

# If you want to build the Qt GUI:
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler qrencode

git clone https://github.com/onixcoin-io/onix.git --recursive
cd onix

# Note autogen will prompt to install some more dependencies if needed
./autogen.sh
./configure 
make -j2

Build on CentOS

Here is a brief description for compiling Onix on CentOS, for more details please refer to the specific document

# Compiling boost manually
sudo yum install python-devel bzip2-devel
git clone https://github.com/boostorg/boost.git
cd boost
git checkout boost-1.66.0
git submodule update --init --recursive
./bootstrap.sh --prefix=/usr --libdir=/usr/lib64
./b2 headers
sudo ./b2 -j4 install

# Installing Dependencies for Onix
sudo yum install epel-release
sudo yum install libtool libdb4-cxx-devel openssl-devel libevent-devel gmp-devel

# If you want to build the Qt GUI:
sudo yum install qt5-qttools-devel protobuf-devel qrencode-devel

# Building Onix
git clone --recursive https://github.com/onixcoin-io/onix.git
cd onix
./autogen.sh
./configure
make -j4

Build on Mac OS

The commands in this guide should be executed in a Terminal application. The built-in one is located in /Applications/Utilities/Terminal.app.

Preparation

Install the Mac OS command line tools:

xcode-select --install

When the popup appears, click Install.

Then install Homebrew.

Dependencies

brew install cmake automake berkeley-db4 libtool boost miniupnpc openssl pkg-config protobuf qt5 libevent imagemagick librsvg qrencode gmp

NOTE: Building with Qt4 is still supported, however, could result in a broken UI. Building with Qt5 is recommended.

Build Onix Core

  1. Clone the onix source code and cd into onix

     git clone --recursive https://github.com/onixcoin-io/onix.git
     cd onix
    
  2. Build onix-core:

    Configure and build the headless onix binaries as well as the GUI (if Qt is found).

    You can disable the GUI build by passing --without-gui to configure.

    ./autogen.sh
    ./configure
    make
    
  3. It is recommended to build and run the unit tests:

    make check
    

Run

Then you can either run the command-line daemon using src/onixd and src/onix-cli, or you can run the Qt GUI using src/qt/onix-qt

License

Onix is GPLv3 licensed.

Development Process

The master branch is regularly built and tested, but is not guaranteed to be completely stable. Tags are created regularly to indicate new official, stable release versions of Onix.

The contribution workflow is described in CONTRIBUTING.md and useful hints for developers can be found in doc/developer-notes.md.

Testing

Testing and code review is the bottleneck for development; we get more pull requests than we can review and test on short notice. Please be patient and help out by testing other people's pull requests, and remember this is a security-critical project where any mistake might cost people lots of money.

Automated Testing

Developers are strongly encouraged to write unit tests for new code, and to submit new unit tests for old code. Unit tests can be compiled and run (assuming they weren't disabled in configure) with: make check. Further details on running and extending unit tests can be found in /src/test/README.md.

There are also regression and integration tests, written in Python, that are run automatically on the build server. These tests can be run (if the test dependencies are installed) with: test/functional/test_runner.py

The Travis CI system makes sure that every pull request is built for Windows, Linux, and macOS, and that unit/sanity tests are run automatically.

Manual Quality Assurance (QA) Testing

Changes should be tested by somebody other than the developer who wrote the code. This is especially important for large or high-risk changes. It is useful to add a test plan to the pull request description if testing the changes is not straightforward.

Issues
  • Ver 0.1.2

    Ver 0.1.2

    • Removed super staking enabled by default.
    • Kept log events enabled by default.
    • Fixed disabled checkboxes for log events and super staking on the options dialog: they can be toggled on/off now.
    • Removed pruning message when starting from scratch.
    • Added labels to address selectors on the Delegation and SuperStaker addition dialogs.
    • Added labels to sender address selectors on the smart contracts pages.
    opened by lavacaballero 0
  • Problem when reindexing the blockchain

    Problem when reindexing the blockchain

    When toggling log events and super staking on the options dialog, a blockchain reindex is issued.

    When the wallet restarts, an "assertion failed" error is thrown and the wallet can't get past it.

    Until this issue is fixed, you'll have to follow the next steps to delete the blockchain data files so they're redownloaded:

    On windows:

    1. Open the Windows Explorer.
    2. On the location bar, type %appdata%\Onix and press enter.
    3. Select and delete the next directories: blocks, chainstate and stateOnix.
    4. Launch the wallet again.

    On Mac:

    1. Open a Finder window.
    2. On the Mac menu, select "Go" and then "Go to folder".
    3. Select Users > your name > Library.
    4. Look for the Application Support folder and double click on it.
    5. Look for the Onix folder and double click on it.
    6. Select and delete the next directories: blocks, chainstate and stateOnix.
    7. Launch teh wallet again.

    On Linux:

    1. Open a file browser window.
    2. Go to the .onix directory.
    3. Select and delete the next directories: blocks, chainstate and stateOnix.
    4. Launch the wallet again.
    opened by lavacaballero 0
Releases(0.2.1)
  • 0.2.1(Jan 20, 2022)

    Changes on this release

    • Updated testnet params, chaindata and checkpoints.
    • Added getcontractcode RPC API method.

    Mandatory update for testnet usage

    If you're using the testnet, you need to update the wallet and resync the testnet chain only.

    New RPC method added

    We added the getcontractcode RPC method to the wallet. This method returns a given smart contract hex code by address.

    New platform supported

    Now our core wallet is being built for RasPiOS64. If you have a RPi 4 with at least 4 GB of RAM and the 64 bits version of the RasPiOS or similar, then you can get the precompiled binaries from here.

    sha256 sums:

    79ac7807e6713c0f3a58ded52bcea223d37007ee71c5242f6fbc66af4ccdaefc onix-0.2.1-linux.tar.gz
    22046c7f354842314213c8e6c6cfd49a46caec9d04b7a848edcd0c796fe1656f onix-0.2.1-mac.zip
    9d9a9292cd5968169554199ff0f65f95f61e934d5ce6729e8aece984e3e8125c onix-0.2.1-windows.zip
    a0422aee48560f96f04d3dd72fccd4afa38f58de977e5647135912ce39e8dfb3 onix-0.2.1-rpi64.tar.gz
    
    Source code(tar.gz)
    Source code(zip)
    onix-0.2.1-linux.tar.gz(31.98 MB)
    onix-0.2.1-mac.zip(27.42 MB)
    onix-0.2.1-rpi64.tar.gz(49.57 MB)
    onix-0.2.1-windows.zip(31.81 MB)
  • 0.2.0(Dec 16, 2021)

    Changes on this release

    • Bumped protocol and wallet version.
    • Updated minimumchainwork and checkpoints.

    This is a mandatory update

    Fork inflicted on block #54786 to undo the steal of 2m+ coins after hack at Blockchain Financial, the platform where we are integrating services and directing the GRWI/ONIX swap.

    All users need download this wallet version and resync the blockchain to keep on the right side.

    Users that fail to update will remain stranded on the wrong side.

    For reference, please see:

    sha256 sums:

    7ed2b196913eaf0711f63f5602c650c5b1a6581e5908951e364e79195761d996  onix-0.2.0-linux.tar.gz
    99c6e6166e5355f86137222a5035f87c6b5bdb9372b457011a69c44c59877340  onix-0.2.0-mac.zip
    199fa1687e7107c2e9f1a11a27660923429d7efc4dcdb68944e20e1633adaad6  onix-0.2.0-windows.zip
    
    Source code(tar.gz)
    Source code(zip)
    onix-0.2.0-linux.tar.gz(31.98 MB)
    onix-0.2.0-mac.zip(27.42 MB)
    onix-0.2.0-windows.zip(31.75 MB)
  • 0.1.2(Dec 3, 2021)

    Warning: these wallets have been deprecated. We are inflicting a fork in our blockchain as mentioned on this news article. Do not download any of these binaries.

    On this release we fixed a couple of glitches on the Qt wallet and added a much needed feature:

    • Removed super staking enabled by default.
    • Kept log events enabled by default.
    • Fixed disabled checkboxes for log events and super staking on the options dialog: they can be toggled on/off now.
    • Removed pruning message when starting from scratch.
    • Added labels to address selectors on the Delegation and SuperStaker addition dialogs.
    • Added labels to sender address selectors on the smart contracts pages.
      Note: labels are added as soon as the first input at the top of each page is modified.

    Notes:

    • Since super staking was previously enabled by default, it is most likely that it will be kept on after applying this update. To make sure the options are properly set, you should open the options dialog and click on the "Reset options" button.
      If you want to proceed with this, you might get an error.
      Please check this issue for a workaround.

    Features added to Windows and Linux

    Command Line Interface executives have been detached

    • All platforms include the Qt wallet and CLI executives. For the Mac, they're part of the application package, but for Windows and Linux, all files were included in the same directory on our previous releases.
    • Starting this release, you'll find a "cli" folder where the CLI executives are found to leave the Qt alone to avoid confusions.
    • On Windows, the helper scripts to start/stop the "headless" daemon have been moved into the cli folder.
    • On Linux, we left the Qt binary alone. Well... not quite... keep reading.

    Launcher icon for Linux is now available

    • If you're using Linux as desktop, you'll be glad to find a couple of scripts for adding and deleting the launcher entry of the Onix Core. Just extract the tar file and take a look at the included README.txt for further instructions.

    Mac package is now compatible with Catalina

    • Starting with this release, our builds for Mac will be backwards compatible with macOS 10.15.

    sha256 sums:

    ee9cc9d0f5eee2c6fa0732ca3cd17bb6a8714a4b074de8b8586ff29f6eb8a2a8 onix-0.1.2-linux.tar.gz
    7ee4fa7f0e7892f170f3b9ed24293677f3566d41b7c01533d94968c5f39ce346 onix-0.1.2-mac.zip
    97e6105ed3a8bbac15b2ca1a9e41de4b433e38214b7aacf50fa4f3f1d3180047 onix-0.1.2-windows.zip
    
    Source code(tar.gz)
    Source code(zip)
    onix-0.1.2-linux.tar.gz(31.98 MB)
    onix-0.1.2-mac.dmg.zip(27.42 MB)
    onix-0.1.2-windows.zip(31.81 MB)
  • 0.1.1(Nov 4, 2021)

    Warning: these wallets have been deprecated. Do not download any of these binaries.

    • Updated minimumchainwork, checkpoints and chainTxData
    • Fixed GitHub repository name
    • Fixed file permissions

    sha256 sums:

    d7811abd36d82c7e00f69c96d3e6acd02134da0ebd094a2b4680720fa07695e9  onix-0.1.1-linux.tar.gz
    92c2fd5edfbdc1f3cd53d9185e49109a4b414f2e7ddc9b422d43f0115fefd2ed  onix-0.1.1-mac-qt.dmg.zip
    a75d00982dd7a22a2ecacc3944c9b126964bb4e4cdc2cd8e26b4ea9cd8c77b68  onix-0.1.1-windows.zip
    
    Source code(tar.gz)
    Source code(zip)
    onix-0.1.1-linux.tar.gz(31.95 MB)
    onix-0.1.1-mac-qt.dmg.zip(27.32 MB)
    onix-0.1.1-windows.zip(31.47 MB)
  • 0.1.0(Oct 31, 2021)

    Warning: these wallets have been deprecated. Do not download any of these binaries.

    We've built the binaries with the next specifications:

    • Windows: 64 bits, compatible with Windows 7 and up.
    • Mac: OSX 12 (Monterey) set as target.
    • Linux: static build. Tested to run on CentOS 7 and Ubuntu 18.

    sha256 sums:

    aedbe2acd9f9961ac1a9da8481495c24adf045fb32e577a57bc4cdb09ddd42b5  onix-0.1.0-linux.tar.gz
    ba6a01f872f6ea2dad0a2a8a5c0b4e9ea0941b108a0fe326f5a2fd8537991887  onix-0.1.0-mac-qt.dmg.zip
    6755eb2b62c52ac0b5e73aaae813bdc6b14958f3876d98c25be97442f503185f  onix-0.1.0-windows.zip
    
    Source code(tar.gz)
    Source code(zip)
    onix-0.1.0-linux.tar.gz(31.95 MB)
    onix-0.1.0-mac-qt.dmg.zip(27.33 MB)
    onix-0.1.0-windows.zip(31.47 MB)
Owner
Onix CryptoCurrency Development
Official account of the Onix CryptoCurrency development team and main maintainer.
Onix CryptoCurrency Development
Blenderizer is a Smart Contract for WAX Blockchain to play burning NFTs.

Blenderizer is a Smart Contract for WAX Blockchain to play burning NFTs. You can set up a list of AtomicAssets NFTs IDs to burn and a ID of a new NFT to mint in exchange. This is a funy system to control NFT supply excesses and to make your collection more atractive.

MarcosDK 13 May 30, 2022
Demo c++/blockchain tech

Blockchain This is a blockchain concept coded in c++. I used the POW or proof-of-work algorithm. Some of the detailed concepts of the real blockchain

Narek 8 Aug 23, 2021
Internet Identity, a blockchain authentication system for the Internet Computer

Internet Identity Service See ./docs/internet-identity-spec.adoc for a details specification and technical documentation.

DFINITY 217 Jul 13, 2022
Simple C++ implementation of a blockchain based cryptocurrency

Welcome to PandaCoin! PandaCoin is a minimalist implementation of a layer 1 cryptocurrency similar to Bitcoin. It is designed with utmost simplicity a

null 13 Jul 4, 2022
Babycoin Onion Blockchain Explorer

Babycoin Onion Blockchain Explorer Currently available Babycoin blockchain explorers have several limitations which are of special importance to priva

null 1 May 15, 2022
Simple-blockchain with c++ cplusplus

Blockchain A blockchain is a ledger which has been written in such a way that updating the data contained within it becomes very difficult, some say t

Aryan Shrestha 5 Jun 16, 2022
HIBA is a system built on top of regular OpenSSH certificate-based authentication that allows to manage flexible authorization of principals on pools of target hosts without the need to push customized authorized_users files periodically.

HIBA is a system built on top of regular OpenSSH certificate-based authentication that allows to manage flexible authorization of principals on pools of target hosts without the need to push customized authorized_users files periodically.

Google 321 Jul 28, 2022
This tool demonstrates the power of UAC bypasses and built-in features of Windows.

Auto-Elevate This tool demonstrates the power of UAC bypasses and built-in features of Windows. This utility auto-locates winlogon.exe, steals and imp

null 121 Jul 29, 2022
DARKCAT Project - A Strong Prototype Crypto-Locker

Darkcat is an Open Source Crypto-locker directed at an audience with an interest in the field of Cyber Security. The locker is similar to how very obnoxious Ransomwares operate using 2-Layer Key Encryption with the intent of making it almost impossible to recover any key from memory even during the event of Encryption.

Alexander Töpfer 28 Jul 21, 2022
2020-1 KyungHee University information protection project

PGP Pretty Good Privacy의 약자로, 컴퓨터 파일을 암호화하고 복호화하는 프로그램입니다. Visual Studio 2019 기반으로 코드를 완성했고, PGP 동작 과정을 콘솔에 표현했습니다. PGP Transmission Mode의 Step 3 단계에서

Sungsu 4 Jun 10, 2022
FFF is a decentralized blockchain based on IPFS/RIPPLE, which integrates lua virtual machine-based smart contracts.

FFF is a decentralized blockchain based on IPFS/RIPPLE, which integrates lua virtual machine-based smart contracts. It is also a software platform designed to help coordinate voluntary free market operations amongst a set of social actors.

gen2600 5 May 31, 2022
Emusicchain is a blockchain built using Cosmos SDK and Tendermint and created with Starport.

emusicchain emusicchain is a blockchain built using Cosmos SDK and Tendermint and created with Starport. Get started starport chain serve serve comma

null 2 May 13, 2022
The decentralized package manager for C++ and friends 🏝️

Buckaroo The decentralized package manager for C++ and friends. Why Buckaroo? Package managers like Yarn and Cargo have shown how productive developer

LoopPerfect 892 Jul 31, 2022
Decentralized pool for Monero mining

Monero P2Pool Decentralized pool for Monero mining. NOTE This is a highly experimental and untested software. I did some extensive testing locally, bu

null 525 Aug 3, 2022
Decentralized architecture for loss tolerant semi-autonomous robotics

gestalt-arch Decentralized architecture for loss tolerant semi-autonomous robotics Objective We demonstrate a decentralized robot control architecture

null 4 Dec 18, 2021
(bad) decentralized chat app

ircreborn what is this well. ircreborn was created because i felt that all the good platforms had too many paywalled features. (also because discord h

X 9 Apr 1, 2022
ESP32-Skid-Steer - Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on the model.

ESP32-Skid-Steer Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on

null 5 Feb 4, 2022
CS 244B project to use a public blockchain as a two-phase commit coordinator to securely commit an atomic transaction across any two systems of a database.

blockchain-2pc CS 244B project to use a public blockchain as a two-phase commit coordinator to securely commit an atomic transaction across any two sy

null 4 Jun 13, 2022
Blenderizer is a Smart Contract for WAX Blockchain to play burning NFTs.

Blenderizer is a Smart Contract for WAX Blockchain to play burning NFTs. You can set up a list of AtomicAssets NFTs IDs to burn and a ID of a new NFT to mint in exchange. This is a funy system to control NFT supply excesses and to make your collection more atractive.

MarcosDK 13 May 30, 2022
Demo c++/blockchain tech

Blockchain This is a blockchain concept coded in c++. I used the POW or proof-of-work algorithm. Some of the detailed concepts of the real blockchain

Narek 8 Aug 23, 2021
WasmEdge Runtime is a high-performance, extensible, and hardware optimized WebAssembly Virtual Machine for automotive, cloud, AI, and blockchain applications.

WasmEdge Runtime is a high-performance, extensible, and hardware optimized WebAssembly Virtual Machine for automotive, cloud, AI, and blockchain applications.

null 3.5k Jul 29, 2022
Internet Identity, a blockchain authentication system for the Internet Computer

Internet Identity Service See ./docs/internet-identity-spec.adoc for a details specification and technical documentation.

DFINITY 217 Jul 13, 2022
Simple C++ implementation of a blockchain based cryptocurrency

Welcome to PandaCoin! PandaCoin is a minimalist implementation of a layer 1 cryptocurrency similar to Bitcoin. It is designed with utmost simplicity a

null 13 Jul 4, 2022
An easy to use C++ Library to interact with the Algorand Blockchain.

Algoduino An easy to use Library to interact with the Algorand Blockchain. Lead Maintainer: Ted Nivan Documentation You can find installation instruct

algoduino 5 Mar 18, 2022
Babycoin Onion Blockchain Explorer

Babycoin Onion Blockchain Explorer Currently available Babycoin blockchain explorers have several limitations which are of special importance to priva

null 1 May 15, 2022
A simple C++ API client for the Ark Blockchain.

Ark C++ - Client A simple C++ API client for the Ark Blockchain. Lead Maintainer: Simon Downey Documentation You can find installation instructions an

ARK Ecosystem 11 Jan 21, 2022
Simple-blockchain with c++ cplusplus

Blockchain A blockchain is a ledger which has been written in such a way that updating the data contained within it becomes very difficult, some say t

Aryan Shrestha 5 Jun 16, 2022