Skip to content

Instantly share code, notes, and snippets.

@adam-hanna
Last active October 25, 2018 23:52
Show Gist options
  • Save adam-hanna/b95b7738f83df621f2da75a80773c4a3 to your computer and use it in GitHub Desktop.
Save adam-hanna/b95b7738f83df621f2da75a80773c4a3 to your computer and use it in GitHub Desktop.
20181025 - c3 / dna meeting notes

Brainstorming Notes

Dictionary

We want to change these EOS words/phrases to these new words/phrases:

From To Notes
stake lock coins are being "locked up" and are safe
owner master the master key controls all of the sub-keys
active live the key is either alive and being used or dead
wallet key ring a wallet is really a thing that stores keys, like a key ring

C3 Learnings

  • Business logic must produce a deterministic next state (e.g. rows must be sorted the same way, no uuid's, etc.)
  • C3 dApps cannot do polling as they are transactional, i.e. they are not running all of the time, rather they only run when they receive a transaction
  • Secrets cannot be hidden within a C3 dApp as the dApps are public (no hiding api keys, private keys, etc. on the server!)

C3 Intra-Chain Oracle

diagram

  1. Actor triggers the C3 dApp to check the eth blockchain. Would likely have to include start/stop timestamps.
  2. dApp prepares and sends request to eth blockchain (infura?).
  3. Eth blockchain / infura responds.
  4. dApp processes the data and dedupes any tx's it has previously processed. It stores the new tx's in a db and sends them to EOS. The EOS contract uses a multi-sig wallet where the C3 miners are the holders of those keys.

C3 Layer-2 Solution on EOS

Very similar to the intra-chain oracle in that the miners have multi-sig keys that control the EOS smart contract.

  • Merkle hashes of mined blocks get written.a
  • Account balances get adjusted as users have spent token in the C3 network.
  • Users that wish to unlock or transfer their balances do so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment