{"id":16805200,"url":"https://github.com/onyb/littlebit","last_synced_at":"2025-04-11T00:45:44.413Z","repository":{"id":44862557,"uuid":"178745425","full_name":"onyb/littlebit","owner":"onyb","description":"A Bitcoin library from scratch; in Python and Rust. 📦⛓️","archived":false,"fork":false,"pushed_at":"2022-12-08T03:46:13.000Z","size":171,"stargazers_count":20,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T00:45:37.688Z","etag":null,"topics":["bitcoin","blockchain","cryptography","python","rust"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onyb.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":"2019-03-31T21:41:53.000Z","updated_at":"2022-05-09T09:51:34.000Z","dependencies_parsed_at":"2023-01-24T08:40:11.830Z","dependency_job_id":null,"html_url":"https://github.com/onyb/littlebit","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/onyb%2Flittlebit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyb%2Flittlebit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyb%2Flittlebit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyb%2Flittlebit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onyb","download_url":"https://codeload.github.com/onyb/littlebit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322604,"owners_count":21084336,"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","blockchain","cryptography","python","rust"],"created_at":"2024-10-13T09:47:28.855Z","updated_at":"2025-04-11T00:45:44.395Z","avatar_url":"https://github.com/onyb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LittleBit\n\n[![Build Status](https://travis-ci.org/onyb/littlebit.svg?branch=master)](https://travis-ci.org/onyb/littlebit)\n[![codecov](https://codecov.io/gh/onyb/littlebit/branch/master/graph/badge.svg)](https://codecov.io/gh/onyb/littlebit)\n[![python](https://img.shields.io/badge/Made%20with-Python%203.8-1f425f.svg)](https://www.python.org/)\n[![rust](https://img.shields.io/badge/Made%20with-Rust%202018-7C482C.svg)](https://www.rust-lang.org)\n\n\nLittleBit is an educational library of [Bitcoin](https://bitcoin.org/bitcoin.pdf) primitives, with implementations in Python and Rust.\n\n##### Objectives:\n- Help the reader understand how Bitcoin _really_ works at a fundamental level.\n- Focus on **readability** in the Python implementation; on **correctness**, and **performance** in the Rust implementation.\n- Zero (ish) dependency on third-party packages.\n\n**DISCLAIMER:** This software comes **sans warranty**. Do **NOT** use this code for anything other than educational purposes. I beg you.\n\n\n### Progress report\n\n\u003e Legend: 🍏 Done \u0026nbsp; 🍋 In Progress \u0026nbsp; 🍅 TODO \u0026nbsp; 🐍 Python \u0026nbsp; 🦀 Rust\n\n\u003e Internal links to code inside the repository are indicated \u003ca href=\"https://github.com/onyb/littlebit\"\u003e`like this`\u003c/a\u003e. External links look \u003ca href=\"https://github.com/onyb/littlebit\"\u003elike this\u003c/a\u003e.\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003cth\u003eComponent\u003c/th\u003e\n      \u003cth align=\"center\"\u003eStatus\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003eElliptic Curve Cryptography (ECC)\u003c/b\u003e\u003c/td\u003e\n      \u003ctd/\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\n        \u003ccode\u003eFinite Field\u003c/code\u003e\n      \u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍏\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eElliptic Curve\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003esecp256k1\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eSignatures\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003eSerialization\u003c/b\u003e\u003c/td\u003e\n      \u003ctd /\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eSEC Format\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eDER Format\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eBase58\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eBitcoin Address Format\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ccode\u003eWallet Import Format (WIF)\u003c/code\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        🐍 ➞ 🍏\n        \u003cbr /\u003e\n        🦀 ➞ 🍅\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003eTransactions\u003c/b\u003e\u003c/td\u003e\n      \u003ctd /\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003csub\u003e\u003cb\u003eNote:\u003c/b\u003e This table is not complete.\u003c/sub\u003e\n\n\n### Contributing\n\nThis is an educational project. You can help out by:\n\n- 🔬 Auditing the codebase, asking questions, reporting bugs (please [create issues](https://github.com/onyb/littlebit/issues/new)).\n- 💯 Improving coverage of unit tests.\n- \u003cb\u003eλ\u003c/b\u003e \u0026nbsp; Adding (clever) type annotations, especially with the Rust part.\n- 💬 Adding code comments and explanations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyb%2Flittlebit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonyb%2Flittlebit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyb%2Flittlebit/lists"}