{"id":50940096,"url":"https://github.com/ppad-tech/bolt3","last_synced_at":"2026-06-17T13:04:08.767Z","repository":{"id":352159441,"uuid":"1214084841","full_name":"ppad-tech/bolt3","owner":"ppad-tech","description":"Lightning transaction and script formats, per BOLT #3.","archived":false,"fork":false,"pushed_at":"2026-04-18T05:49:05.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-18T07:30:59.023Z","etag":null,"topics":["bitcoin","haskell","lightning","script"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/ppad-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-18T05:20:01.000Z","updated_at":"2026-04-18T05:49:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ppad-tech/bolt3","commit_stats":null,"previous_names":["ppad-tech/bolt3"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ppad-tech/bolt3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppad-tech","download_url":"https://codeload.github.com/ppad-tech/bolt3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34449283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","haskell","lightning","script"],"created_at":"2026-06-17T13:04:07.697Z","updated_at":"2026-06-17T13:04:08.761Z","avatar_url":"https://github.com/ppad-tech.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppad-bolt3\n\n[![](https://img.shields.io/hackage/v/ppad-bolt3?color=blue)](https://hackage.haskell.org/package/ppad-bolt3)\n![](https://img.shields.io/badge/license-MIT-brightgreen)\n[![](https://img.shields.io/badge/haddock-bolt3-lightblue)](https://docs.ppad.tech/bolt3)\n\nA pure Haskell implementation of [BOLT #3][bolt3] (Lightning Network\nBitcoin transaction and script formats), including commitment\ntransactions, HTLC transactions, closing transactions, per-commitment\nkey derivation, and secret storage.\n\n## Usage\n\nA sample GHCi session:\n\n```\n  \u003e :set -XOverloadedStrings\n  \u003e\n  \u003e import qualified Data.ByteString as BS\n  \u003e import qualified Data.ByteString.Base16 as B16\n  \u003e import Lightning.Protocol.BOLT3\n  \u003e\n  \u003e -- key derivation (BOLT #3 Appendix E test vector)\n  \u003e let basepoint = Point (B16.decodeLenient \"036d6caac248af96f6afa7f904f550253a0f3ef3f5aa2fe6838a95b216691468e2\")\n  \u003e let perCommitment = PerCommitmentPoint (Point (B16.decodeLenient \"025f7117a78150fe2ef97db7cfc83bd57b2e2c0d0dd25eaf467a4a1c2a45ce1486\"))\n  \u003e let Just (Pubkey derived) = derive_pubkey basepoint perCommitment\n  \u003e B16.encode derived\n  \"0235f2dbfaa89b57ec7b055afe29849ef7ddfeb1cefdb9ebdc43f5494984db29e5\"\n  \u003e\n  \u003e -- secret generation (BOLT #3 Appendix D test vector)\n  \u003e let seed = BS.replicate 32 0xFF\n  \u003e B16.encode (generate_from_seed seed 281474976710655)\n  \"7cc854b54e3e0dcdb010d7a3fee464a9687be6e8db3be6854c475621e007a5dc\"\n  \u003e\n  \u003e -- fee calculation\n  \u003e let feerate = FeeratePerKw 5000\n  \u003e let features = ChannelFeatures { cf_option_anchors = False }\n  \u003e commitment_fee feerate features 2\n  Satoshi 5340\n  \u003e\n  \u003e -- HTLC trimming\n  \u003e let dust = DustLimit (Satoshi 546)\n  \u003e htlc_trim_threshold dust feerate features HTLCOffered\n  Satoshi 3861\n```\n\n## Documentation\n\nHaddocks are hosted at [docs.ppad.tech/bolt3][hadoc].\n\n## Security\n\nThis is a pre-release version and makes no security guarantees whatsoever.\n\n## Development\n\nYou'll require [Nix][nixos] with [flake][flake] support enabled. Enter a\ndevelopment shell with:\n\n```\n$ nix develop\n```\n\nThen do e.g.:\n\n```\n$ cabal build\n$ cabal test\n$ cabal bench\n```\n\n[bolt3]: https://github.com/lightning/bolts/blob/master/03-transactions.md\n[nixos]: https://nixos.org/\n[flake]: https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html\n[hadoc]: https://docs.ppad.tech/bolt3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbolt3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppad-tech%2Fbolt3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbolt3/lists"}