The Peercoin Advanced Relay Subnet (PARS) is a subnet of the peercoin network that can mint non-standard transactions without forking the peercoin chain.
In short, it made it possible to get the following OP_RETURN transaction in the peercoin chain:
txnid: 3eace20c260a93865146f5d0761350e01079d9d933bbbbd0ed9dc52241ce261e
data:
Ezekiel 25:17 The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men.
Blessed is he who in the name of charity and good will shepherds the weak through the valley of darkness,
for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger
those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee.
Brought to you by:
_ _
| | | |
| |__ _ __ ___ | |__ ___ ___ _ __ ___
| '_ \| '__/ _ \| '_ \ / _ \/ _ \ '__/ __|
| | | | | | (_) | |_) | __/ __/ | \__ \
|_| |_|_| \___/|_.__/ \___|\___|_| |___/
https://twitter.com/hrobeers
https://github.com/hrobeers
Unfortunately the current blockexplorers fail to correctly display this non-standard transaction, but you can verify it as follows:
getrawtransaction 3eace20c260a93865146f5d0761350e01079d9d933bbbbd0ed9dc52241ce261e
And decode the resulting hex string. (you might use http://string-functions.com/hex-string.aspx)
[size=14pt]Direct donation: PARSecHDJ2mLw3q18FExaxZcx6AQsWDzrP[/size]
[size=14pt]Peer4commit: [/size]
[size=14pt]Questions & help: https://peercoin.chat/channel/pars[/size]
[size=24pt]UPDATES[/size]
[size=18pt]PARS v0.5.4[/size]
If you are actively minting, please consider joining the PARS network. It allows innovation on our main chain!
Existing PARS minters, please upgrade to the latest version!
https://github.com/hrobeers/peercoin-advanced-relay
change log:
[ul][li]All non-standard redeem transactions for P2SH transactions are relayed. This is needed to spend smart contracts on our chain.[/li]
[li]The âgetinfoâ rpc call shows the PARS version information e.g. âPARS:0.5.4(v0.5.4ppc-7-ge1946db-dirty)â[/li]
[li]Other peers can be identified as PARS nodes, so you can check how many PARS connections your node has.[/li]
[li]Blocks minted by PARS nodes are tagged, so that the effective PARS minting power can be monitored.[/li][/ul]
How does it work?
The current protocol allows any valid script to be included in the chain. However, it does only relay a limited set of standard transaction types. This means that non-standard transactions wonât be relayed by the network and have very little chance to make it into the chain.
This is where PARS steps in. PARS is a set of nodes that relay and mint more types of transactions. This means that every time a block is minted by a PARS node, the current set of non-standard transactions relayed in the PARS is flushed into the chain. The more minting power joins the PARS network, the faster we can get non-standard transactions in the chain.
PARS is operational today, not an empty promise.
Read a use case here: https://www.peercointalk.org/index.php?topic=4684.msg44265#msg44265
Why?
The beauty of peercoin is that you donât need to control a mining pool to get a block in the chain. This allows for experimentation with the non-standard transaction types without massive investments and without compromising the security or stability of the main chain. This simply canât be achieved on a pure PoW network without controlling a significant mining pool.
Security
The reason not all transactions are relayed is that the script system can be used to DoS attack the network. To be on the safe side, peercoin (just like bitcoin) whitelists a limited set of known trasaction types that are known to have no DoS vulnerabilities.
The PARS also uses whitelisting but will upon request enable non-standard transactions with only limited review. This allows for rapid development, but makes it more vulnerable to DoS attacks.
Since the PARS is a subnet of the peercoin network, only the PARS will be affected in case of such a DoS attack, but the peercoin network will just continue to operate as it doesnât relay the DoS transaction.
DoS attacks on the PARS should be encouraged to show vulnerabilities in specific transaction types.
What it is not
The PARS is not a soft fork of Peercoin, nor does it try to replace the standard client. The PARS shall always obey the peercoin protocol, and should never control more minting power than needed for effective experimentation.
How does it benefit Peercoin?
As this concept is made possible due to the blessing of PoS, we can attract people exploring Bitcoinâs script system.
As txn types get explored in the PARS, we might consider accepting them in the reference client after in depth testing. This might convince new innovations to build on our chain instead of going back to their home chain.
The increased activity on our chain burns txn fees and therefore lowers our inflation. Welcoming experimentation can benefit our currency thanks to the genius of burned txn fees.
PARS can also allow things like smart contracts to be used on Peercoinâs chain.
How do I setup a PARS node?
Get the peercoin-advanced-relay client: https://github.com/hrobeers/peercoin-advanced-relay
Add the following to ppcoin.conf: âaddnode=37.252.121.73:9901â
Start minting