Skip to content

Instantly share code, notes, and snippets.

View njgheorghita's full-sized avatar

Nick Gheorghita njgheorghita

View GitHub Profile
@njgheorghita
njgheorghita / whitepaper.md
Last active October 4, 2017 20:38
DevCon Whitepaper

A proposal to establish an ethereum-specific practice within the Accelerator.

Why are so many companies exploring ethereum?

Why should you be worried about being left behind?

What separates ethereum from the other ecosystems?

Having a single blockchain practice is like having a single internet practice. It's such a wide umbrella that you need to explore the niches?

def preprocess_code(code):
o = 0
i = 0
pushcache = {}
code = code + b'\x00' * 32
while i < len(code) - 32:
codebyte = safe_ord(code[i])
if codebyte == 0x5b:
o |= 1 << i

Trade Finance Cordapp Outline

Seller SME -> S // Buyer SME -> B // Seller Bank -> SB // Buyer Bank -> BB

Assumptions

  • simplify dlt as much as possible. time is better spent on frontend as per Rashi.
  • since we're using api calls & security is out of scope, do we need / want authentication on who can update? how?
  • exact status terms are not finalized!
  • two flows (proposeTradeTxFlow & updateTradeTxFlow) keeps it simple.
  • move bank identities to model?

Corda - Notes of perceived importance from docs.

Corda Shell

  • Embedded command line that allows an admin to control & monitor the node
    • invoking rpcs the node exposes to applications
    • starting flows
    • view a dashboard of threads, heap usage, vm properties
    • uploading and downloading zips from attachments
    • issue sql queries to underlying database
  • flow list command used to list flows understood by node
@njgheorghita
njgheorghita / blockchain_resources.md
Last active April 26, 2017 14:58
Blockchain Resources

Blockchain Resources

Here are some resources for learning about solidity/ethereum/blockchain tech. This world is evolving and growing very rapidly, so feel free to add any resources you find useful.

General

  • my favorite place to stay up to date on the happenings in the ethereum world
  • discussions are mostly focused on the tech rather than currency speculation
  • probably the best resource for daily news in the crypto-world (bitcoin, ethereum, etc)

Open Source Contribution, Mod 4

debug_traceTransaction - testRPC & web3.js

  • Why: I started working on this contribution as my personal project in mod3. Turns out I bit off more than I could chew at the time. I'd estimate I'm about 50% of the way through completing this contribution.

  • What: A debugger for transactions performed on the testRPC test ethereum blockchain. This feature is implemented in other clients, but not yet for testRPC.

  • I Need: to continue hacking my way through this problem. I understand the problem fully now, have written some code, and am currently debugging my way through the function call.

Mod4 Plan

Capstone: Turing Library

(March 20 - April 15th // 4 weeks)

A virtual library to manage Turing's physical library. Built with smart contracts on the Ethereum blockchain to track book status, crowdsource new books, and other library functions.

--

This is a condensed version of the 6 month project development sprints we'll be doing at work, and we'd love the opportunity to get a practice round under our belt before we get started.

Built with

  • Solidity / Smart Contract Backend
  • What brought you to Turing?
    • An interest in coding, along with the possibility of a fulfilling career
    • A chance to use my brain again
  • Where do you see yourself after Turing?
    • Blockchains
  • From concepts taught in class or your personal learning, what technical concepts do you enjoy exploring most?
    • Blockchains
  • What technical concepts do you enjoy exploring least?
    • Concepts I understand
  • What technical challenges are the most fun for you to solve?
@njgheorghita
njgheorghita / code.js
Last active March 2, 2017 16:21
Open Source Contribution to TestRPC
/////////////////////////////////
// this is the code I have so far
// ** would have been impossible without help from 2 awesome devs, raine & kumavis **
// we’re basically looking at 3 functions implemented in the testrpc repo
// that is unless, it turns out I’m completely off about something, which is possible
// my biggest uncertainty right now is which virtual machine should I be using to recreate the block state & run preceding transactions
// but i’m meeting with multiple devs tomorrow to clear that up & confirm im on the right track
// ** there’s another option I haven’t implemented yet, according to the go implementation of this feature I'm using as a template
// which is a javascript tracer, not sure if it's necessary, will also find out more about this tomorrow
// if it's necessary, unsure i’ll have that feature implemented by thursday
@njgheorghita
njgheorghita / expectations.md
Created January 3, 2017 20:39 — forked from drod1000/expectations.md
Group Expectations

Setting Group Expectations

Group Member Names: Drew, Laszlo, Nick G

Project Manager: Daniel

Defining the Relationship (DTR) Questions:

  • When are group members available to work together? What hours can each group member work individually?

We'll get here at 9 AM and work whenever we have worktime. We're all open to staying here after school and we'll determine how much we'll work individually