Skip to content

Instantly share code, notes, and snippets.

View njgheorghita's full-sized avatar

Nick Gheorghita njgheorghita

View GitHub Profile

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.

@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)

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

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?
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
@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?

Bookchain todo:
As a user, i want to scan a qr, enter my info, and checkout the book.
As a user, i want to see an index of all books & status.
As a librarian, i want to add a book.
As a user with a checked out book, i want to return the book? (confirm w/ slack)
L&L:
Ethan:
?s for Jon
- Have y'all explored Blockchain tech at all?
- What are some possible applications that you've seen a need for in the microfinance/microcredit world?
- Other inefficiencies in the mf/mc world?
- Insights into how mpesa took off? How/why was it adopted so quickly? Could it happen again w/ blockchain (<<< 6% interest)?
jon notes
- biz dev w/ banks & mfis is expensive and long
@njgheorghita
njgheorghita / vim_shortcuts.md
Last active July 30, 2024 19:13
vim shortcuts