module

Bitcoin::Protocol

Constants

BLOCK_VERSION = 4_u32
ENVS = {"test" => { port: 18333_u16, magic: 118034699.to_u32, seed: "testnet-seed.bluematt.me", }, "regtest" => { port: 18333_u16, magic: 3669344250_u32, seed: "testnet-seed.bluematt.me", }}
NONCE = rand(18446744073709551615_u64)
SERVICES = 0_u64
USER_AGENT = "/Bitcoin-Crystal:0.0.1/"
VERSION = 70015

Class methods

checksum(payload_bytes)
config
dns_seed_address
magic
port
read_var_int(io)
sha256_twice(bytes) : OpenSSL::Digest
write_var_int(io, size)