Skip to content

Instantly share code, notes, and snippets.

View AustEcon's full-sized avatar

AustEcon AustEcon

View GitHub Profile
@shruggr
shruggr / fossil-protocol.md
Created August 5, 2019 16:35
Fossil Blockchain Protocol

Fossil Blockchain Protocol

"Block Funding" Transaction

Outputs

vout 0-n

  • Payments to be used to fund Transaction List transactions

OP_RETURN

  • BLOCK HEAD Protocol ID - 1AWEpKHWcdhXCfdPGH4zKEP1EMzSZAWsgB
  • ChainID - BTC, BCH
@amitripshtos
amitripshtos / exception_middleware.py
Created July 18, 2017 08:56
Exception handling middleware for aiohttp (python 3.5)
def json_error(status_code: int, exception: Exception) -> web.Response:
"""
Returns a Response from an exception.
Used for error middleware.
:param status_code:
:param exception:
:return:
"""
return web.Response(
status=status_code,