{"id":15202098,"url":"https://github.com/demining/hellobitcoin-google-colab","last_synced_at":"2025-04-12T12:50:43.788Z","repository":{"id":144620942,"uuid":"460592365","full_name":"demining/hellobitcoin-Google-Colab","owner":"demining","description":"A collection of simple programs which can generate bitcoin wallets, create and sign transactions, and send transactions over the bitcoin network Google Colab","archived":false,"fork":false,"pushed_at":"2022-07-02T01:07:57.000Z","size":6510,"stargazers_count":1,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:36:05.892Z","etag":null,"topics":["bitcoin","bitcoin-api","bitcoin-core","bitcoin-payment","bitcoin-transaction","bitcoin-wallet","colab","colab-notebook","colab-notebooks","colab-tutorial","colaboratory","google-colab","google-colab-notebook","google-colab-tutorial","google-colaboratory","google-colaboratory-notebooks","googlecolab"],"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/demining.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-17T20:12:40.000Z","updated_at":"2025-03-09T02:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2e3303c-52f0-4d41-98a4-6af272022d97","html_url":"https://github.com/demining/hellobitcoin-Google-Colab","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/demining%2Fhellobitcoin-Google-Colab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fhellobitcoin-Google-Colab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fhellobitcoin-Google-Colab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fhellobitcoin-Google-Colab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demining","download_url":"https://codeload.github.com/demining/hellobitcoin-Google-Colab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571329,"owners_count":21126516,"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":["bitcoin","bitcoin-api","bitcoin-core","bitcoin-payment","bitcoin-transaction","bitcoin-wallet","colab","colab-notebook","colab-notebooks","colab-tutorial","colaboratory","google-colab","google-colab-notebook","google-colab-tutorial","google-colaboratory","google-colaboratory-notebooks","googlecolab"],"created_at":"2024-09-28T04:00:45.651Z","updated_at":"2025-04-12T12:50:43.768Z","avatar_url":"https://github.com/demining.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"-------------------------\n### Run hellobitcoin-Google-Colab\n\nhttps://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing\n\n-------------------------\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\n----\n\n|  | Donation Address |\n| --- | --- |\n| ♥ __BTC__ | 1Lw2kh9WzCActXSGHxyypGLkqQZfxDpw8v |\n| ♥ __ETH__ | 0xaBd66CF90898517573f19184b3297d651f7b90bf |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Fhellobitcoin-google-colab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemining%2Fhellobitcoin-google-colab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Fhellobitcoin-google-colab/lists"}