Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jin Eguchi wakiyamap

🏠
Working from home
View GitHub Profile
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 \
View monacoin description(mainnet)
Block time: 1.5 minutes(90 seconds)
Total coins: 105120000
Genesis Hash: ff9f1c0116d19de7c9963845e129f9ed1bfc0b376eb54fd7afa42e0d418c8bb6
P2PKH header: 50(0x32)
P2SH header: 55(0x37)
P2SH header2: 5(0x05)
WIF Prefix: 176(0xB0)
WIF Prefix2: 178(0xB2)
magic bytes: 0xdbb6c0fb
RPC port: 9402
@wakiyamap
wakiyamap / monacoin.txt
Last active Oct 2, 2020 — forked from lae/monacoin.txt
[ANN][MONA] Monacoin LAUNCHING 2014/01/01 0:00 GMT
View monacoin.txt
[center][img]https://monacoin.org/img/monacoin.png[/img]
[size=15pt]http://monacoin.org/en/[/size]
[b][color=blue][size=15pt]Specifications[/size][/color][/b]
Algorithm: Lyra2REv2 (originally Scrypt until block 450000)
Premine: none
Block reward: 50 MONA
Block time: 1.5 minutes
Retarget: 1 block (Dark Gravity Wave algorithm, hard fork at block 450000)
View Monacoinの開発体制について
現在monacoindの開発についてはテクノブレイク・フォン・モナーバウム(以下ワタナベ氏)が一任しています。
連絡は基本取らないようですが、問題等あればPullRequest及びissueをgithubにて出すことで対応してもらうことは可能です。
monacoinの開発と言うのは何を指すのか?と言いますと基本的には周辺環境の開発を指します。
coind自体以外の互換コア開発(monad(golang実装),monacoinj(Java実装)など)についてはワタナベ氏以外が行っています。
誰に許可を取って開発していいか分からないと言うのはありますが、許可を取る必要は特にありません。
しいて言うならば、他のウォレット等との互換性を保つための取り決めは守ったほうが良いかなと言うところでしょうか。
他のコインも含めて大体はここに書いてあります。
https://github.com/satoshilabs/slips
@wakiyamap
wakiyamap / float128.go
Created Aug 16, 2020 — forked from grd/float128.go
Simplified float128, more in style with the math package
View float128.go
// This package implements 128-bit ("double double") floating point using
// a pair of 64-bit hardware floating point values and standard hardware
// floating point operations. It is based directly on libqd by Yozo Hida,
// Xiaoye S. Li, David H. Bailey, Yves Renard and E. Jason Riedy. Source:
// http://crd.lbl.gov/~dhbailey/mpdist/qd-2.3.13.tar.gz
package float128
import (
"errors"
"fmt"