Skip to content

Instantly share code, notes, and snippets.

View visvirial's full-sized avatar
💭
On my way

Vis Virial (a.k.a. びりある) visvirial

💭
On my way
View GitHub Profile
#!/usr/bin/env python
def jizoku(i):
if i < 10:
return 0
a = 1
while i > 0:
a *= i % 10
i /= 10
return jizoku(a) + 1
@visvirial
visvirial / bip-0342.ja.mediawiki
Last active March 12, 2020 04:31
BIP342「Validation of Taproot Scripts」の日本語版


  BIP&#58; 342
  Layer&#58; Consensus (soft fork)
  Title&#58; Validation of Taproot Scripts
  Author&#58; Pieter Wuille <pieter.wuille@gmail.com>
          Jonas Nick <jonasd.nick@gmail.com>
          Anthony Towns <aj@erisian.com.au>
  Comments&#45;Summary&#58; No comments yet.
  Comments&#45;URI&#58; https&#58;//github.com/bitcoin/bips/wiki/Comments&#58;BIP&#45;0342
  Status&#58; Draft

導入

アブストラクト

このドキュメントでは、楕円曲線 secp256k1 上での 64 バイト Schnorr (シュノア) 署名の標準を提案します。

著作権

このドキュメントは 2 条項 BSD ライセンスで提供されます。

const crypto = require('crypto');
const grpc = require('grpc');
const protoLoader = require('@grpc/proto-loader');
const protobufjs = require('protobufjs');
const ed25519 = require('ed25519');
const PROTO_DIR = __dirname + '/proto';
const privateKey = Buffer.from('fbcedfd8848bf097ca79a8248a26d929ebf7104c1fcc471a6c4fd87113798766', 'hex');
@visvirial
visvirial / claim_checker.js
Last active June 28, 2017 02:16
Check the balance of your Bitcoin HD wallet at the specified block height.
/**
* @file claim_checker.js
*
* Check the balance of your Bitcoin HD wallet at the specified block height.
* This is usefull for checking what address is capable of receiving Stellar giveaway coins.
*/
const BASE_BLOCK_HEIGHT = 472889;
const HD_GAP_LIMIT = 20;
# Install
* OS: Ubuntu 16.10 Yakkety amd64 Desktop
* Ubuntu-provided `python-click` package should be removed since the version is too old.
## Install addrindex-patched Bitcoin Core
Counterparty requires so-called "addrindex-patched" version of Bitcoin Core.
https://github.com/btcdrak/bitcoin/releases
For USD/JPY,
=ImportXML("http://api.aoikujira.com/kawase/xml/usd","/kawase/JPY")