Skip to content

Instantly share code, notes, and snippets.

View mhchia's full-sized avatar

Kevin Mai-Husan Chia mhchia

View GitHub Profile
@shayanb
shayanb / token_checklist.md
Last active March 30, 2024 06:43
Token Checklist Table
Token Feature Known Vulnerabilities Resources Examples
ERC20 Allowance Double withdrawal (front-running)
{
"version": "2.0.0",
"tasks": [
{
"label": "Lint",
"command": "flake8",
"args": [
"./ssz",
"./tests",
"./scripts",
@jannikluhn
jannikluhn / utxo.lll.py
Created December 27, 2017 09:37
Bitcoin-style UTXO system on top of Ethereum with abstracted accounts
MEMORY_COUNTER = 0
MEMORY_N_ITERATIONS = 32
MEMORY_CALLDATA_INDEX = 64
MEMORY_TOTAL_AMOUNT = 96
MEMORY_KEY = 128
MEMORY_SIGNATURE = 160
MEMORY_ADDRESS = 160
# CALLDATA:
@TheHackerDev
TheHackerDev / Blockchain security research.md
Last active May 1, 2023 13:49
Open-source blockchain security research (contributions welcome!)

What is a blockchain?

  • Distributed ledger system; for tracking the transfer of tokens (currency, data of any type).
  • A cross between economics, cryptography, and the internet.
    • Side note- if you ever wanted a financial incentive to get involved in cryptography, this is it.
  • A blockchain is literally a chain of blocks, where each block contains a list of transactions that everyone agrees have occurred.
    • Each block builds upon all the ones before it.

A blockchain is literally a chain of blocks

0x00 0 STOP
0x01 3 ADD
0x02 5 MUL
0x03 3 SUB
0x04 5 DIV
0x05 5 SDIV
0x06 5 MOD
0x07 5 SMOD
0x08 8 ADDMOD
0x09 8 MULMOD
@ldez
ldez / gmail-github-filters.md
Last active April 3, 2024 11:53
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@sid24rane
sid24rane / net.js
Last active February 7, 2024 08:05
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
server.on('close',function(){
console.log('Server closed !');
});