Omni*Contract (OXC) is arguably the simplest smart contract ever invented.
The simplest form of OXC consists of THREE (3) OmniHashes, which are collectively known as OXC3 or OXC Triplets:
OmniHash is a 53-bit integer hash encoded in Base64 string.
Users may enter the Contract text in the top left text box above and press the OmniHash button to generate the Contract Contents Hash, OR enter the following in browser console to verify the OmniHash function for themselves:
bnToB64(cyrb53($('#input2').val()))) bnToB64(cyrb53('anystring')) The public keys of Party A and B are shown below. Users may press the HPBKA and HPBKB buttons to generate the hash of the public keys.
Next, the user may press the OXC3 button to copy the OXC3 Triplets, then ROOT to generate the Root Hash --- hash of OXC3 Triplets.
Finally, the user may go to the end of this page, click on the Readable button to generate a copy of Human Readable OXC.