Skip to content
View penguinPushme's full-sized avatar

Block or report penguinPushme

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
penguinPushme/README.md

bcwallet.rb: A stand-alone Bitcoin client within approx. 800 LOC!

bcwallet.rb is an educational Bitcoin client written in Ruby language.

The client is written for Bitcoin no shikumi ("The Mechanism of Bitcoin"), a Japanese website describes Bitcoin from the technical perspective.

Build Status Code Climate Coverage Status

Features

  • Stand-alone Bitcoin client within approx. 800 lines of code (counted by CLOC)
    • Generate address, export key, show balances for addresses, send coins from addresses ...
  • Written in pure Ruby
    • No additional dependencies
  • Implements Simplified Payment Verification (SPV)
  • Comments to help you understand how Bitcoin client is implemented
  • Testnet supported (use in main network is not recommended)

Usage

Usage: ruby bcwallet.rb <command> [<args>]
commands:
    generate <name>             generate a new Bitcoin address
    list                        show list for all Bitcoin addresses
    export <name>               show private key for the Bitcoin address
    balance                     show balances for all Bitcoin addresses
    send <name> <to> <amount>   transfer coins to the Bitcoin address

Dependencies

  • Ruby >= 2.0.0

Disclaimer

DO NOT USE THIS CLIENT IN MAIN NETWORK, OR YOU MAY LOSE YOUR COINS!

Because this client is for technical education, it skips a lot of validations and may have critical bugs.

Use Testnet instead. Testnet coins are worthless coins. You can receive Testnet coins for free at TP's TestNet Faucet to try this client.

License

The MIT License (MIT)

Copyright (c) 2014 peryaudo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ToDo

  • Write Merkle tree validation for transactions
  • Rewrite with Fiber

Popular repositories Loading

  1. penguinPushme penguinPushme Public

    Ruby

  2. sentence sentence Public

    Cornell NLVR and NLVR2 are natural language grounding datasets. Each example shows a visual input and a sentence describing it, and is an…

    Ruby

  3. voicezz voicezz Public

    veez music bot is a telegram music bot project, allow you to play music on voice chat group telegram.

    TypeScript

  4. LuaJIT LuaJIT Public

    LuaJIT 2.0 bytecode parser, viewer, assembler and test VM. Lua 5.1 parser, IDE and debugger.

    Erlang

  5. goodtft6 goodtft6 Public

    Forked from Adraylis/polymarket-copy-trading-bot

    2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W

    JavaScript

  6. finance-trading-ai-agents-mcp finance-trading-ai-agents-mcp Public

    Forked from aitrados/finance-trading-ai-agents-mcp

    A comprehensive, free MCP server designed specifically for financial analysis and quantitative trading. This specialized platform offers one-click local deployment with a sophisticated department-b…

    Python