Skip to content

Instantly share code, notes, and snippets.

View xeroc's full-sized avatar
🏠
building

Fabian Schuh xeroc

🏠
building
View GitHub Profile

Keybase proof

I hereby claim:

  • I am xeroc on github.
  • I am xeroc (https://keybase.io/xeroc) on keybase.
  • I have a public key whose fingerprint is 0D73 136D 9BB5 B96F FC85 8187 4453 8E62 6C0E 0489

To claim this, I am signing this object:

Verifying that +xeroc is my blockchain ID. https://onename.com/xeroc

Introduction: Consensus Mechanisms

Core questions to answer:

  • When should a block be appended to the bockchain
  • In a P2P network, who should be allowed to do so?

Starting stuation:

  • need to organize people/players/network participants

Introduction: Blockchain "protocol" specifications:

  • Who is allowed to read the database?
  • Who is allowed to transact (private vs. public)?
  • Who is allowed to commit new data to the blockchain?
  • What is a valid operation/transaction (What can be added to the database?)?
  • What is a valid block?

Who is allowed to read the database?

Introduction: Blockchain Basics

Traditional databases

  • Oracle, MySQL
  • carry data: rational (excel), document (mongo), object (??)
  • Managable data: mutable, editable, deletable, appendable
  • distributed via master -> slave (proxy) concept
  • "centralized" database "management"

Python Steem Libraries 0.1

Python Steem Libraries Version 1.0 released!

This library allows you to interface with the wallet and/or a steem node for polling data via RPC calls.

Download

You can download directly from github:

import csv
from steem import Steem
from steem.amount import Amount
from steem.transactionbuilder import TransactionBuilder
from steembase.operations import Transfer
import argparse
parser = argparse.ArgumentParser(
description="Payout tool for Streemian guilds"
)
@xeroc
xeroc / payout.py
Last active January 31, 2017 11:10
import json
import requests
import csv
from pprint import pprint
from prettytable import PrettyTable
from steem.amount import Amount
from steem.transactionbuilder import TransactionBuilder
from steembase.operations import Transfer
import argparse
from datetime import datetime, timedelta
import time
import json
import random
from grapheneapi.grapheneapi import GrapheneAPI
if __name__ == '__main__':
client = GrapheneAPI("localhost", 8092, "", "")
while True:
for i in range(0, random.randint(1, 100)):
print(i)

Python Library and Applications

Preface

In the last couple months, I have been focusing on python development for the Steem blockchain due to it's quickly growing user and developer base. During that time, I have developed piston and the python-steem library which became very popular and are widely used.