Peng Protocol : Peng(a) Design (Short)
O A Distributed Network for Creating Liquid Simple-Ledger-Tokens Using OP_Return Transactions verified by Digital Signatures on the Bitcoin (Cash, SV) Blockchain(s).
Definitions
TxF; Transaction Fees
OPTx; Output Transaction (OP_Return)
SLg; Simple-Ledger
AqLiq; Adequate Liquidity
NFT; Non-Fungible Token
NEO; Node Endpoint Operator
HYPR; Hydra Protection
COIN; Bitcoin-Cash or Bitcoin-SV
D-Sig; Digital Signature
UTXO; Unspent transaction output
DRM; Digital Rights management
TeF; Test by finality
Protocol
~ Basics ~
A network of web-based bots secured by HYPR and absolute consensus, who perform OPTxâs to smart contracts that allow users to deposit/withdraw COIN and make use of custom tokens on a simple-ledger which are fully liquid. Peng is not a layer 2, it is an intermediary for Layer 1 transactions.
~ Bots ~
Provision for âBotsâ: The âPengâ Network will operate using distributed bots listed as follows; âOversightsâ âViewportsâ âTradersâ âBailiffsâ and âissuersâ whose actions will function on D-Sig + âAbsolute consensusâ to prevent fraud, and use âHYPRâ to prevent tampering.
~ Absolute Consensus ~
Integration of âAbsolute Consensusâ: Absolute Consensus ensures that 100% consensus is required to perform an action on a network, each request has to already be verified by a digital signature (Normally this would be enough to validate that an action absolutely originated from the address in question and is not being faked, but âAbsolute Consensusâ assumes that the node verifying this request is lying).
A random node is selected from the network and presented with an encrypted message verified by D-Sig, the node has to verify that the D-Sig is correct, it then requests no more than 6 other nodes to verify it as well, if even 1 node rejects it; consensus cannot be reached. All the affected nodes are kicked from the network and the process restarts. A situation where consensus is never achieved is a âCascade Shutdownâ.
For the purpose of âPengâ, several other protective measures exist to prevent even a single node from agreeing with invalid transactions.
~ HYPR ~
Provision for âHydra Protectionâ: HYPR is a proposed DRM software that works by seizing control of the computer at root level, on top of distributing the guarded program library to 19 heads in separate folders across a computer and restricting the user from accessing them, if one of the âheadsâ is tampered sufficiently; the HYPR will delete all âguardedâ files plus any files which may appear similar to the guarded files.
~ Viewport ~
Provision for âViewportsâ: These bots will host the web view; they provide an interface through which users can view balances and initiate transactions. Users can only view the balance of the wallet they own, this (+ any other action) is verified by D-Sig, every âloginâ with a complete transaction is cached for a few days. The Viewports encrypt and decrypt OPTxâs which make up entries in the Simple-ledger.
~ Oversight ~
Provision for âOversightsâ: These bots will accept transactions from âviewportsâ after the prior have achieved consensus, âOversightsâ cannot decrypt messages, they simply execute them into OPTx once they have achieved consensus and verified the D-Sig.
~ Issuer ~
Provision for âIssuersâ: These bots will create new smart contracts and tokens, they cannot decrypt messages, they simply execute them into OPTx or contract creation once they have achieved consensus and verified the D-Sig.
~ Trader ~
Provision for âTradersâ: These bots are exclusive to NFT simple-ledger entries, they execute NFT escrow requests and NFT listing requests.
~ Bailiff ~
Provision for âBailiffsâ: These bots execute âkickâ orders once queued and after achieving consensus, âBailiffsâ have the final say in removing a NEO from the network. âBailiffsâ manage checking a NEO when they need to join/rejoin the network.
~ Simple Ledger ~
Integration of âSimple Ledgersâ: The âSimple ledgerâ is a system of encrypting and decrypting messages stored in OPTxâs sent to a smart contract on a blockchain. Each message is a ledger entry, the details of each message is account information involving balances, when a transaction on the âsimple ledgerâ occurs it simply means that a new entry is made with an updated ânonceâ and balance details. The auditors of this ledger always read the entry with the highest ânonceâ.
Each token is an account unto itself, they are discerned by number and what smart contract their balance is stored in, every userâs balance has clauses for every token on the smart contract they deposit to, meaning the token balance can be updated from a single OPTx.
The liquidity for tokens is stored as the token accountâs main balance and can be changed by a âswap protocolâ which allows every user (with funds on the particular smart contract) to exchange their COIN for the token and vice versa.
~ Main Ledger ~
Provision for âMain Ledgersâ: âMain Ledgersâ are smart contracts which obey specific OPTxâs, users deposit funds into the âMain ledgerâ. New âMain ledgersâ can be created once the maximum number of tokens for one âmain ledgerâ is reached. This has to be done by user request.
~ Balances ~
Each OPTx is a full balance of the userâs SLg COIN and all tokens on the particular âmain ledgerâ. Different balances exist for âTokensâ âUsersâ and âTradersâ. Each user balance has âTokenâ fields, which are empty slots by default, only when a tokenâs account is âactivatedâ and its âToken-selfâ field is filled; does it becomes active, the âToken-selfâ field is the supply of the token and is at first blank but updated by a userâs request. The Tokenâs SLg COIN balance is its liquidity and can be swapped to or from using the âswap protocolâ. Tokens cannot be created without âadequate liquidityâ which is 105% of the tokenâs supply * initial price set by the user.
All tokens have a liquidity fee which is set by the user and billed on each sell, payout of fees only occurs when liquidity is above 105% of the tokenâs price * supply, payout is calculated by deducting [fee] from each token sell order, the difference is returned to the userâs SLg COIN balance. Once a token has adequate-liquidity; all sell order deductions are instead sent to the âcreatorâ, which is the public key that activated the token and defined its fields. Token names are stored on the âviewportsâ, the actual token name is âToken #â @ xxxâŚxxx address.
~ Non-fungibility ~
NFTs can be created by using a second type of OPTx which does not have a COIN balance or âToken-selfâ balance, but instead has an âownerâ, âmetadataâ and other fields which allow trading or listing the NFT.
~ Allocation ~
Each NEO is entitled to an allocation as reward for being part of the network, these rewards come from TxF and token creation fees and are held within their nodeâs âOversightâ wallets until being sent to the NEO ownerâs public key.
~ Fees ~
There will be two tiers of fees; transaction fees, which are billed based on miner fees + 10%, and TeF which is an intricate algorithm that allows fees to go up when prices are low and go down when prices are high, it does this without an oracle or price checking (Because oracles can be subject to losses in connection or seizure in the data source).
~ Genesis ~
âGenesisâ Refers to starting up the network for the first time, this is achieved by booting up a âBailiffâ from the âgenesis keyâ, the âBailiffâ hosts the Proto-viewport pending the creation of âViewportsâ, and generates the web address (no domain name), then other bot sub-groups need to join, once there are 6 of each bot sub-group the network can begin transacting. The âgenesis keyâ is an offline version of the bot installer, it still makes use of âBailiff checksâ. The âgenesis keyâ cannot be used once the network is in full swing.
~ Cascade Shutdown ~
A Cascade shutdown is a hypothetical situation wherein âkickedâ NEOâs do not rejoin, where only one set of âBailiffsâ remain and they fail to achieve consensus, the system âshuts downâ as âBailiffâsâ kick one another off the network.
However, as stated, all âKickedâ NEOâs will immediately attempt to rejoin, ones which fail checks are terminated by HYPR. HYPR cannot be circumvented with existing technology.
~ Monetization ~
Implementation of Peng Vanity Addresses: There will be a collection of 99,999,999 possible vanity addresses. Each vanity address can be named and will act as an account that exists purely within the Peng SLg; these can be used remotely to carry out transactions anonymously. Each vanity address will cost 100,000TeF(e) (Or $5 at current estimates), which will be shared equally between the NEO that processes the transaction and the 4 users who own âPeng Genesisâ NFTs.
Full design paper available on my google drive.
Additional Content
In the following article I show a hypothetical scenario with images of how Peng would function, you can read it here.