C# Class Coinium.Core.Coin.CoinbaseUtils

Provides helper functions for "serialized CSscript formatting" as defined here: https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki#specification
Datei anzeigen Open project: Ziftr/CoiniumServ

Public Methods

Method Description
SerializeNumber ( int value ) : byte[]

first byte is number of bytes in the number (will be 0x03 on main net for the next 300 or so years), following bytes are little-endian representation of the number.

Specification: https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki#specification python: https://github.com/Crypto-Expert/stratum-mining/blob/master/lib/util.py#L204 http://runnable.com/U3Hb26U1918Zx0NR/bitcoin-coinbase-serialize-number-python nodejs: https://github.com/zone117x/node-stratum-pool/blob/a06ba67ab327e09f74cb7d14291ea1ece541104c/lib/util.js#L135 Used to format height and date when putting into script signature: https://en.bitcoin.it/wiki/Script

Method Details

SerializeNumber() public static method

first byte is number of bytes in the number (will be 0x03 on main net for the next 300 or so years), following bytes are little-endian representation of the number.
Specification: https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki#specification python: https://github.com/Crypto-Expert/stratum-mining/blob/master/lib/util.py#L204 http://runnable.com/U3Hb26U1918Zx0NR/bitcoin-coinbase-serialize-number-python nodejs: https://github.com/zone117x/node-stratum-pool/blob/a06ba67ab327e09f74cb7d14291ea1ece541104c/lib/util.js#L135 Used to format height and date when putting into script signature: https://en.bitcoin.it/wiki/Script
public static SerializeNumber ( int value ) : byte[]
value int
return byte[]