Skip to content

Instantly share code, notes, and snippets.

@heikoheiko
heikoheiko / alarm.draft
Last active August 29, 2015 14:07
ALARM Proposal
==== ALARM ====
Description:
- contracts can schedule future calls to themself, by specifying:
- block height
- gas
- msgdata
- scheduled calls are sorted by (gas, hash(account, msgdata)) # prevent DOS
and executed in this stable sorted order before any other tx
- on OOG: # includes no more existent account, balance
def int_to_big_endian(integer):
'''convert a integer to big endian binary string'''
if integer == 0:
return ''
s = '%x' % integer
if len(s) & 1:
s = '0' + s
return s.decode('hex')
def big_endian_to_int(string):
.DS_Store
*.log
Gemfile.lock
[buildout]
eggs-directory = /home/ralf/.buildout/cache/eggs
download-cache = /home/ralf/.buildout/cache/download
extends-cache = /home/ralf/.buildout/extends
index = http://pypi/simple/