Skip to content

Instantly share code, notes, and snippets.

View antonyip's full-sized avatar
❤️
Just a simple coder looking for fun stuffs to do.

Anton Yip antonyip

❤️
Just a simple coder looking for fun stuffs to do.
View GitHub Profile
from typing import Mapping, Union
# 58 character alphabet used
BITCOIN_ALPHABET = \
b'123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
RIPPLE_ALPHABET = b'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'
XRP_ALPHABET = RIPPLE_ALPHABET
def scrub_input(v: Union[str, bytes]) -> bytes:
if isinstance(v, str):
curl https://api-dfk.avax.network/rpc -X POST -H "Content-Type: application/json" --data '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"id": 1,
"params": {}
}'
curl https://api-dfk.avax.network/rpc -X POST -H "Content-Type: application/json" --data '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
@antonyip
antonyip / gist:4ddb068897cffc499d031de59a40df03
Created April 3, 2018 12:49
Interview with tiptopanonymous
1. Can you tell us a little bit about yourself and your history/involvement with Burst?
Hi, I'm ant. I joined Burst around March or April in 2017 when searching around for crypto currencies to invest in, Burst caught my eye as it was the only platform that was doing mining based on Proof-of-Capacity. At that time, burst-team.org vs burstnation was the main thing going on and I did some random activities such as the burst card competition (MR BURST! haha) and some photoshop for advertisements for H, on the burstize asset. Later on, I just watched the space burn during the burst transaction flooding wars, and the fiasco when Focus and Jason tried to bring a bunch of coders (Lex, Ice and the Cat guy) together in order to restart wallet development. Didn't really like what was happening there and decided to look into smart contracts.
2. What work have you done with Burst ATs? What was that experience like and what were your thoughts?
All my work can be found here (https://github.com/antonyip/BurstAT). I made a f
### Keybase proof
I hereby claim:
* I am antonyip on github.
* I am antonyip (https://keybase.io/antonyip) on keybase.
* I have a public key ASAPoapAJfr_O92bUh0xT2UQHbfyCZfCvn1hkgIS_pTXtAo
To claim this, I am signing this object:
^declare currentTime
^declare ticketPrice
^declare minNumPlayers
^declare endTime
^declare buffer1
^declare deadAT
^declare currentWinner
^declare currentTickets
^declare previousBalance
^declare currentBalance