Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

WakiyamaP wakiyamap

🏠
Working from home
View GitHub Profile
View monacard.py
import re
import requests
endpoint = "http://127.0.0.1:5001/api/v0/pin/add"
url= "https://card.mona.jp/api/cid_list"
response = requests.get(url)
parse_data = re.finditer(r'"cid":"([a-z0-9]+)"', response.text)
for m in parse_data:
View monacoin signet params
/**
* Signet
*/
class SigNetParams : public CChainParams {
public:
explicit SigNetParams(const ArgsManager& args) {
std::vector<uint8_t> bin;
vSeeds.clear();
if (!args.IsArgSet("-signetchallenge")) {
View ido-contractsのインストール
# OSのアップデートリストの更新
sudo apt update
# 更新されたアップデートリストを元に実際にOSを更新 途中で更新しますか?聞かれたらyでEnter
sudo apt upgrade
# nvmのインストールに必要なソフトをインストール
# gitはgithub(プログラムのソース共有管理サイト)のコマンドライン
# curlはコマンドラインからwebにアクセスするための物。ダウンロードとかに使います
sudo apt install git curl
View windows build log
wakiyamap@wakiyamap-VirtualBox:~/electrum/contrib/build-wine/fresh_clone/electrum$ sudo docker run -it \
> --name electrum-wine-builder-cont \
> -v $PWD:/opt/wine64/drive_c/electrum \
> --rm \
> --workdir /opt/wine64/drive_c/electrum/contrib/build-wine \
> electrum-wine-builder-img \
> ./build.sh
💬 INFO: Clearing /opt/wine64/drive_c/electrum/contrib/build-wine/build and /opt/wine64/drive_c/electrum/contrib/build-wine/dist...
💬 INFO: Building secp256k1...
Cloning into 'secp256k1'...
View settings:electrs:monacoin
$ cd ~
$ wget https://github.com/monacoinproject/monacoin/releases/download/monacoin-0.17.1/monacoin-0.17.1-x86_64-linux-gnu.tar.gz
$ tar -zxvf monacoin-0.17.1-x86_64-linux-gnu.tar.gz
$ sudo cp monacoin-0.17.1/bin/monacoind /usr/bin/
$ sudo cp monacoin-0.17.1/bin/monacoin-cli /usr/bin/
$ mkdir .monacoin
$ vi .monacoin/monacoin.conf
View test
$ mycoin-cli -getinfo
{
"version": 160300,
"protocolversion": 70015,
"walletversion": 159900,
"balance": 0.00000000,
"blocks": 0,
"timeoffset": 0,
"connections": 0,
"proxy": "",
View gist:6ffc694d50df5262bb39efae658e2348
import bitcoin.base58
import bitcoin.bech32
"""
Converts a base58 bitcoin address into a 21 byte bytes object
"""
address = "bc1qqmpt7u5e9hfznljta5gnvhyvfd2kdd0r90hwue"
try:
bech32 = bitcoin.bech32.CBech32Data(address)
witver = (0x80 + bech32.witver).to_bytes(1, byteorder='big') # mark the first byte for segwit
View my-preset.yml
nodes:
-
friendlyName: http://3br3ynmu7amoiclaetx4iu4v43qqfu5p4hcy3upvsdthaviz5gfpjbad.onion:3000/
host: 3br3ynmu7amoiclaetx4iu4v43qqfu5p4hcy3upvsdthaviz5gfpjbad.onion
voting: true
signingPrivateKey: SIGNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
vrfPrivateKey: VRFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
votingPrivateKey: VOTEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
gateways:
-
View monaparty install(20201005)
# dockerのインストール
# https://docs.docker.com/engine/install/ubuntu/
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \