{"id":13621734,"url":"https://github.com/prettymuchbryce/hellobitcoin","last_synced_at":"2025-05-11T07:58:17.898Z","repository":{"id":20025948,"uuid":"23293881","full_name":"prettymuchbryce/hellobitcoin","owner":"prettymuchbryce","description":"A collection of simple programs which can generate bitcoin wallets, create and sign transactions, and send transactions over the bitcoin network.","archived":false,"fork":false,"pushed_at":"2017-03-22T15:56:37.000Z","size":31,"stargazers_count":254,"open_issues_count":2,"forks_count":39,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-11T07:58:10.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prettymuchbryce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-24T21:50:14.000Z","updated_at":"2025-04-29T10:54:18.000Z","dependencies_parsed_at":"2022-08-27T04:01:46.368Z","dependency_job_id":null,"html_url":"https://github.com/prettymuchbryce/hellobitcoin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fhellobitcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fhellobitcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fhellobitcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettymuchbryce%2Fhellobitcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prettymuchbryce","download_url":"https://codeload.github.com/prettymuchbryce/hellobitcoin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253534747,"owners_count":21923541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:01:10.028Z","updated_at":"2025-05-11T07:58:17.876Z","avatar_url":"https://github.com/prettymuchbryce.png","language":"Go","funding_links":[],"categories":["Utilities","Go","awesome Bitcoin","Overview"],"sub_categories":["E-Books"],"readme":"### Overview\n\nThis is a collection of simple programs which can generate bitcoin wallets, create and sign transactions, and send transactions over the bitcoin network.\n\nIt was a learning project for me to learn more about both golang, and the bitcoin protocol.\n\nThis project consists of three programs which each contain the most basic usecase.\n\n* keys.go - Generates a public/private key pair\n* transaction.go - Creates, and signs a bitcoin transaction\n* network.go - Connects to a peer, and sends a transaction over the network\n\n### Disclaimer\n\nThese programs are not \"crytographically\" random, and should not be used for any purpose other than educational use.\n\n### Installation\n\n1. Install [go](http://golang.org/)\n2. run `go get` to install dependencies\n3. Follow the instructions at [go-secp256k1](https://github.com/toxeus/go-secp256k1) to compile bitcoin/c-secp256k1\n4. Run one of the programs using the syntax below\n\n### Usage\n\n##### Creating a key pair\n\n\tgo run keys.go\n\n\toptions (optional)\n\t--testnet\n\n##### Generating a transaction\n\n\tgo run transaction.go\n\t\n\toptions (required)\n\t--private-key yourPrivateKey\n\t--public-key yourPublicKey\n\t--destination destinationPublicKey\n\t--input-transaction inputTransactionHash\n\t--satoshis satoshisToSend\n\n\toptions (optional)\n\t--input-index inputTransactionIndex\n\n\n##### Sending a transaction over the bitcoin network\n\n\tgo run network.go\n\t\n\toptions (required)\n\t--transaction yourTransaction\n\t--node-address 255.255.255.255 (IPv4 address of the bitcoin node to connect to)\n\t--network-address 255.255.255.255 (IPv4 address of your public IP address)\n\n\toptions (optional)\n\t--testnet\n\n### Dependencies\n\n##### https://github.com/toxeus/go-secp256k1\nThis library is used for the creation of public keys from private keys, as well as signing transactions. It is a project which wraps the official bitcoin/c-secp256k1 bitcoin library.\n\n##### https://github.com/tv42/base58\nThis library does the base58 conversion. I have included the base58 project in this codebase rather than importing it from the aforementioned github, because I needed to change the dictionary that was used.\n\n### Resources\n\n- Bitpay's insight for testnet: https://test-insight.bitpay.com/\n- TP's TestNet Faucet: http://tpfaucet.appspot.com/\n- Ken Shirriff's blog post \"Bitcoins the hard way\": http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bitcoin.html\n- The Bitcoin wiki: https://en.bitcoin.it/\n- Bitcoin developer guide: https://bitcoin.org/en/developer-guide\n- http://blockexplorer.com/ for general transction/address searching\n- http://blockchain.info/ for general transction/address searching\n- https://blockchain.info/connected-nodes to see a list of connected nodes\n- bitcoin.stackexchange.com (http://bitcoin.stackexchange.com/questions/3374/how-to-redeem-a-basic-tx) Information on redeeming a raw transaction, and explanation of fields.\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettymuchbryce%2Fhellobitcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprettymuchbryce%2Fhellobitcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettymuchbryce%2Fhellobitcoin/lists"}