Skip to content

Instantly share code, notes, and snippets.

View koshikraj's full-sized avatar
🖋️
Going back to the basics, really. Words on the printed page.

Koshik Raj koshikraj

🖋️
Going back to the basics, really. Words on the printed page.
View GitHub Profile
@koshikraj
koshikraj / Hello.sol
Created April 4, 2020 07:37
Amity Online - Solidity summary session
pragma solidity >=0.5.0<= 0.7.0;
contract Hello {
string public owner;
constructor(string memory _owner) public {
owner = _owner;
run vaultQuery contractStateType: net.corda.examples.obligation.Obligation
start IssueObligation amount: "100 USD", lender: "O=PartyB,L=New York,C=US", anonymous: false
Verifying my Blockstack ID is secured with the address 19KZj9G5PUukeweNy1DkjYvFByY1FHc7Y4 https://explorer.blockstack.org/address/19KZj9G5PUukeweNy1DkjYvFByY1FHc7Y4
3abdb1db2fab5c3602fa7a52d00b0d6653a837de89dba58f73bee4edd17fa663b51bc9dce703089e03396a0e570317897a1138cf7e457de5c1a30273d7be2abd

Keybase proof

I hereby claim:

  • I am koshikraj on github.
  • I am koshikraj (https://keybase.io/koshikraj) on keybase.
  • I have a public key ASDG7U3X5DXDIFtjkF4lHrhBY1VsWmkVqh-kWKk4z_HNawo

To claim this, I am signing this object:

@koshikraj
koshikraj / naive_blockchain.py
Last active January 18, 2019 13:11
A demo of a naive blockchain data structure
# -*- coding: utf-8 -*-
import json
from Crypto.Hash import SHA256
from datetime import datetime
class Block(object):
"""A class representing the block for the blockchain"""