Bitcoin
Classes | Functions | Variables
linearize-data Namespace Reference

Classes

class  BlockDataCopier
 

Functions

def hex_switchEndian (s)
 
def uint32 (x)
 
def bytereverse (x)
 
def bufreverse (in_buf)
 
def wordreverse (in_buf)
 
def calc_hdr_hash (blk_hdr)
 
def calc_hash_str (blk_hdr)
 
def get_blk_dt (blk_hdr)
 
def get_block_hashes (settings)
 
def mkblockmap (blkindex)
 

Variables

dictionary settings = {}
 
 BlockExtent = namedtuple('BlockExtent', ['fn', 'offset', 'inhdr', 'blkhdr', 'size'])
 
 f = open(sys.argv[1], encoding="utf8")
 
 m = re.search('^\s*#', line)
 
def blkindex = get_block_hashes(settings)
 
def blkmap = mkblockmap(blkindex)
 

Function Documentation

◆ bufreverse()

def linearize-data.bufreverse (   in_buf)

◆ bytereverse()

def linearize-data.bytereverse (   x)

◆ calc_hash_str()

def linearize-data.calc_hash_str (   blk_hdr)

◆ calc_hdr_hash()

def linearize-data.calc_hdr_hash (   blk_hdr)

◆ get_blk_dt()

def linearize-data.get_blk_dt (   blk_hdr)

◆ get_block_hashes()

def linearize-data.get_block_hashes (   settings)

◆ hex_switchEndian()

def linearize-data.hex_switchEndian (   s)
Switches the endianness of a hex string (in pairs of hex chars) 

◆ mkblockmap()

def linearize-data.mkblockmap (   blkindex)

◆ uint32()

def linearize-data.uint32 (   x)

◆ wordreverse()

def linearize-data.wordreverse (   in_buf)

Variable Documentation

◆ blkindex

def linearize-data.blkindex = get_block_hashes(settings)

◆ blkmap

def linearize-data.blkmap = mkblockmap(blkindex)

◆ BlockExtent

linearize-data.BlockExtent = namedtuple('BlockExtent', ['fn', 'offset', 'inhdr', 'blkhdr', 'size'])

◆ f

linearize-data.f = open(sys.argv[1], encoding="utf8")

◆ m

linearize-data.m = re.search('^\s*#', line)

◆ settings

dictionary linearize-data.settings = {}