Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Cooper danielcooperxyz

View GitHub Profile
@danielcooperxyz
danielcooperxyz / ethereum-yellow-paper-conventions.md
Last active Jul 27, 2019
The conventions as defined in the ethereum yellow paper, section 3 - https://ethereum.github.io/yellowpaper/paper.pdf
View ethereum-yellow-paper-conventions.md

General

Notation        Definition
σ world-state
µ machine-state
𝚼 Ethereum state transition function
C the general cost function
CSSTORE the cost function for the SSTORE operation
KEC Keccak-256
KEC512 Keccak 512
View sawwww.py
class SawtoothService:
def __init__(self, rest_api_url):
context = create_context('secp256k1')
private_key = context.new_random_private_key()
signer = CryptoFactory(context).new_signer(private_key)
self._signer = signer
self._rest_api_url = rest_api_url
View docker-compose.yml
# Copyright 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
View Dockerfile
FROM golang:1.10-alpine
RUN apk update
RUN apk add git cmake make g++
WORKDIR /src/
RUN git clone https://github.com/zeromq/libzmq
WORKDIR /src/libzmq
View excel-column-names.cs
//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
You can’t perform that action at this time.