{"id":50940059,"url":"https://github.com/ppad-tech/bolt7","last_synced_at":"2026-06-17T13:03:40.620Z","repository":{"id":352154364,"uuid":"1214074632","full_name":"ppad-tech/bolt7","owner":"ppad-tech","description":"Routing gossip protocol, per BOLT #7.","archived":false,"fork":false,"pushed_at":"2026-04-18T05:00:05.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-18T07:07:16.343Z","etag":null,"topics":["gossip","haskell","lightning","routing"],"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-18T04:58:48.000Z","updated_at":"2026-04-18T05:01:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ppad-tech/bolt7","commit_stats":null,"previous_names":["ppad-tech/bolt7"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ppad-tech/bolt7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppad-tech","download_url":"https://codeload.github.com/ppad-tech/bolt7/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt7/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":["gossip","haskell","lightning","routing"],"created_at":"2026-06-17T13:03:39.543Z","updated_at":"2026-06-17T13:03:40.613Z","avatar_url":"https://github.com/ppad-tech.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppad-bolt7\n\n[![](https://img.shields.io/hackage/v/ppad-bolt7?color=blue)](https://hackage.haskell.org/package/ppad-bolt7)\n![](https://img.shields.io/badge/license-MIT-brightgreen)\n[![](https://img.shields.io/badge/haddock-bolt7-lightblue)](https://docs.ppad.tech/bolt7)\n\nA pure Haskell implementation of\n[BOLT #7](https://github.com/lightning/bolts/blob/master/07-routing-gossip.md)\n(Lightning Network routing gossip protocol).\n\n## Usage\n\nA sample GHCi session:\n\n```\n  \u003e :set -XOverloadedStrings\n  \u003e\n  \u003e -- import qualified\n  \u003e import qualified Lightning.Protocol.BOLT7 as B7\n  \u003e\n  \u003e -- decode a gossip_timestamp_filter from wire bytes (after msg type)\n  \u003e -- wire contains: 32-byte chain_hash, 4-byte first_timestamp,\n  \u003e --                4-byte timestamp_range\n  \u003e case B7.decodeGossipTimestampFilter wire of\n  \u003e   Left err -\u003e print err\n  \u003e   Right (msg, rest) -\u003e print (B7.gossipFilterFirstTimestamp msg)\n  1609459200\n  \u003e\n  \u003e -- construct and encode a gossip_timestamp_filter\n  \u003e let msg = B7.GossipTimestampFilter B7.mainnetChainHash 1609459200 86400\n  \u003e let encoded = B7.encodeGossipTimestampFilter msg\n  \u003e\n  \u003e -- validate a channel_announcement before processing\n  \u003e case B7.validateChannelAnnouncement announcement of\n  \u003e   Left B7.ValidateNodeIdOrdering -\u003e putStrLn \"invalid node ordering\"\n  \u003e   Right () -\u003e putStrLn \"valid\"\n  \u003e\n  \u003e -- compute the hash for signature verification\n  \u003e let sigHash = B7.channelAnnouncementHash encodedAnnouncement\n  \u003e -- verify signatures with ppad-secp256k1 (separate library)\n```\n\n## Overview\n\nppad-bolt7 provides types and codecs for BOLT #7 gossip messages:\n\n* `channel_announcement` (256)\n* `node_announcement` (257)\n* `channel_update` (258)\n* `announcement_signatures` (259)\n* `query_short_channel_ids` (261)\n* `reply_short_channel_ids_end` (262)\n* `query_channel_range` (263)\n* `reply_channel_range` (264)\n* `gossip_timestamp_filter` (265)\n\n## Documentation\n\nHaddock documentation is available at\n[docs.ppad.tech/bolt7](https://docs.ppad.tech/bolt7).\n\n## Security\n\nThis is a pre-release version of the library and makes no claims about\nsecurity whatsoever.\n\n## Development\n\nA Nix development shell is provided via flake. Enter it with:\n\n```\n$ nix develop\n```\n\nThen use `cabal` as usual:\n\n```\n$ cabal build\n$ cabal test\n$ cabal bench\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbolt7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppad-tech%2Fbolt7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbolt7/lists"}