Skip to content

Instantly share code, notes, and snippets.

View thetagmechewme's full-sized avatar
💭
I may be slow to respond.

thetagmechewme

💭
I may be slow to respond.
View GitHub Profile
@thetagmechewme
thetagmechewme / litecoin genesis block
Created November 30, 2021 09:58 — forked from dmikey/litecoin genesis block
create litecoin genesis block, the missing code
assert(block.hashMerkleRoot == uint256("0x38ca78a781d3c571a681ea2241ffb1e0d89bd1ecd3499f1bf6edeaa8751e7151"));
// If genesis block hash does not match, then generate new genesis hash.
if (false && block.GetHash() != hashGenesisBlock)
{
printf("Searching for genesis block...\n");
// This will figure out a valid hash and Nonce if you're
// creating a different genesis block:
uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
uint256 thash;
@thetagmechewme
thetagmechewme / erc20-token-sample.sol
Created October 19, 2021 19:16 — forked from jcmartinezdev/erc20-token-sample.sol
Necessary code to generate an ERC20 Token
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : LCST
// Name : LCS Token
// Total supply : 100000
// Decimals : 2
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe