35 – jl777 explains some Komodo tech to a new comer

Forkwitch seems an experienced IT guy and he just helped live testing dPoW protection. He has a mind-blown moment at discovering Crypto Conditions:

jl777:
Glad you are here @forkwitch
Current Iguana notarizer is pretty complex, as it evolved over the years. Definitely can be improved and, actually, we were thinking it a good idea that a new version be written from scratch.

forkwitch:
Thank you @jl777, glad there are devs like you and not ignorant and building such technology and making it better and better. It is very interesting for me to understand the architecture of Iguana. For me it is a big honor to one day I hope see a improvement in the new Iguana I helped with. I wrote before now it’s good to show small PoW tokens how dPoW can secure them. From attacker standpoint dPoW is nightmare.

dukeleto:
Glad to hear that

jl777:
That was my goal, to make attacking a dPoW chain a big headache that the attacker would just attack some other coin

forkwitch:
You reached your goal! I needed 3 attack trials and first two I failed to reorg because a notarization happened during my 51 session. This is when attacker becomes nervous and hands start shaking. With the dpowconfs from the fsm codes attacker will curse Komodo Platform and dPoW.
All hackers gonna be mad on you jl777. You made a blockchain PoW firewall auto-checkpoint machine with BTC security. Attack simply not affordable but foremost not funny!

[…]

Do i read and understand this correct? With the Crypto Conditions technology of Komodo I can design any boolean circuit with whatever logical gates I want, that means fully Turing complete?? This is interesting. Then I can provide data to my circuit (if I understand correct any data that can be from blockchain or other sources) and the processing gets evaluated. After this I have the result from the circuit because it knows the evalution and if it’s gonna be true or false result

jl777:
Yes, it allows to add new consensus rules and as long as you have a boolean evaluator it will work […] many example CC, each about 1000 lines of code that extend the normal consensus rules with a new vout type.
When spent the vout, evalcode validation must be passed and return true. The C/C++ code that executes on validation can do whatever code inside the daemon can do. @miketout of Verus, solved the Nothing-at-Stake problem with one CC. Channels CC is a better variant of Lightning Network for low cost chains. Assets CC implements tokens and DEX. Oracles CC gets offchain data onchain and your CC can use that data.

forkwitch:
This is really more interesting

jl777:
Yes dPoW is just needed to have secure chains. CC allows to make a revolutionary new blockchain, with 1% of the effort as the 99% of the normal coin behavior is already implemented.

forkwitch:
I believe maybe in some time dPoW will be interconnected with CC. If I can, I would use notarization information in my circuits for security layer. Then CC uses also the dPoW info for more security.

jl777:
We are working on Gateway CC that will tokenize external coins and it is almost fully decentralized, also 1:1 sidechains are in the near term goals, so legacy coins can continue to trade on exchanges, but to use with CC you swap it for the sidechain.

forkwitch:
Gateway CC will connect the different CC chains?

jl777:
The CC already are calling internal functions that can determine notarization happened or not, we do need to implement that, but it won’t be hard.
Gateway CC would allow to tokenize BTC onchain of the CC chain. Then you do CC things to the BTC tokens and, when done, can redeem it back to a BTC address. Theoretically any Bitcoin-protocol coin can be gatewayed onchain. It is an improved version of multigateway from 4 years ago.

forkwitch:
I believe I understand the idea. With Gateway CC I can make my CC chain with my new consensus. Now I want to trade and do things on the real chain. I can use Gateway CC to turn my CC token into real Bitcoin like a swap because the system accepts it as a peg.

jl777:
CC in general allows you to create a new consensus rule.

forkwitch:
Improved version of multigateway from 4 years ago…. I don’t know the multigateway.

jl777:
Gateway CC, in specific, has the ruleset so that externally deposited BTC is converted into onchain tokens (from Assets CC), the other ruleset is that the BTC tokens that are redeemed are sent to the designated BTC address. So using the Gateway CC and a set of BTC custodian nodes, you can get a BTC equivalent token onchain. This then allows betting, or whatever, with the BTC equivalent token, i.e. giving all the powers of CC to the BTC.

forkwitch:
Now understood! Thanks for explanation.

jl777:
The various CC are able to use each other, so can be combined. The Gateway CC uses the Oracles CC to get the merkle data from BTC, that way it can validate a BTC deposit was actually made, using only onchain data. Really, your imagination is the only thing that limits what a CC can do!
Best part is with very small amount of code you can test a live chain with the new consensus…

forkwitch:
There are no limits. The creation of hybrid blockchain systems is a exciting vision of this CC technology.

jl777:
And once it has dPoW it can be secure enough for real world use. I will grant you free dPoW for your chain.

forkwitch:
If I made a forkswitch token with fancy blockchain rules, for example changing the blockscheme, and then I want to “connect” it to another CC chain or KMD, the CC Gateway enables this interconnection easy.

jl777:
You can use the latest new encryption algo. Quantum secure stuff…

forkwitch:
I will come back to this offer and create a chain with the dPoW! Thank you for the generosity!

jl777:
…or maybe homomorphic “magic” that allows private contracts. Anyway, I have a feeling you will come up with something pretty cool. Always happy to help with CC design!

forkwitch:
Or dynamic deflation mechanisms for healthy economics.

jl777:
Stablecoin CC! Yes another cool direction.

forkwitch:
I always was so much interested in the fiat scam currency world and such things… that combining the blockchain tech with things and problems from real world economics and the slavery system, is exciting for me.

jl777:
You could set up any complex type of feedback logic with coins locked/unlocked according to blockchain dynamics. Currently -ac_perc option is the only one in this area, it adds to the coinbase a defined percentage of all the txvalues to the ac_pubkey. It acts as a “GDP based” inflation tax.

forkwitch:
Don’t understand me wrong, dPoW is cool thing and big help for the PoW world. But CC I believe you all underestimate it! I am reading the reference specifications. I am impressed!

jl777:
I personally believe CC is one of the biggest things in blockchain in the last few years, much more than dPoW. It is a 100x accelerator of blockchain development.

forkwitch:
I am regular reading the blockchain ‘news’. How come I never read it? Must be taken over by mainstream media.

jl777:
There is no blockchain ‘news’, it is all paid advertisement. Only very rare exceptions to that.

forkwitch:
CC in the Komodo Platform is like when ETH starts talking to you and take care of pets!

jl777:
CC does make your head explode, I didn’t realize what I was creating until after I did.

Emmanuel:
@forkwitch mainstream media systematically ignores Komodo. Only China govt. brought some attention to it recently, and then they had to include the word “Komodo” in their articles.

forkwitch:
This is a big thing. Is there a documentation maybe?? I want to make a little ‘CC hello world’. For example check if last blockhash is odd or even and return specific string for eval.

jl777:
https://github.com/KomodoPlatform/Mastering_CryptoConditions

How to write utxo based CryptoConditions contracts for KMD chains – by jl777

Faucet.cpp is the simplest CC, start with that ~/komodo/src/cc/faucet.cpp

polycryptoblog:
The big guys know of us, however I believe they view us as adversarial, Komodo creates new things every week, far outpacing anyone else’s development.

forkwitch:
Thank you jl777 I start with Faucet CC

jl777:
Good luck and #crypto-conditions for any specific questions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s