{"id":50940045,"url":"https://github.com/ppad-tech/bolt8","last_synced_at":"2026-06-17T13:03:39.385Z","repository":{"id":361495925,"uuid":"1214018883","full_name":"ppad-tech/bolt8","owner":"ppad-tech","description":"Encrypted and authenticated transport for Lightning.","archived":false,"fork":false,"pushed_at":"2026-05-30T21:52:18.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-30T23:19:47.851Z","etag":null,"topics":["aead","bitcoin","haskell","lightning"],"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-18T02:51:54.000Z","updated_at":"2026-05-30T21:52:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ppad-tech/bolt8","commit_stats":null,"previous_names":["ppad-tech/bolt8"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ppad-tech/bolt8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppad-tech","download_url":"https://codeload.github.com/ppad-tech/bolt8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Fbolt8/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":["aead","bitcoin","haskell","lightning"],"created_at":"2026-06-17T13:03:38.256Z","updated_at":"2026-06-17T13:03:39.378Z","avatar_url":"https://github.com/ppad-tech.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppad-bolt8\n\n[![](https://img.shields.io/hackage/v/ppad-bolt8?color=blue)](https://hackage.haskell.org/package/ppad-bolt8)\n![](https://img.shields.io/badge/license-MIT-brightgreen)\n[![](https://img.shields.io/badge/haddock-bolt8-lightblue)](https://docs.ppad.tech/bolt8)\n\nHaskell implementation of BOLT #8 (Lightning Network encrypted\ntransport), including the `Noise_XK_secp256k1_ChaChaPoly_SHA256` handshake\nand encrypted message transport.\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 Lightning.Protocol.BOLT8 as BOLT8\n  \u003e\n  \u003e let Just (i_s_sec, i_s_pub) = BOLT8.keypair (BS.replicate 32 0x11)\n  \u003e let Just (r_s_sec, r_s_pub) = BOLT8.keypair (BS.replicate 32 0x21)\n  \u003e\n  \u003e -- initiator knows responder static pubkey\n  \u003e let Right (msg1, i_hs) = BOLT8.act1 i_s_sec i_s_pub r_s_pub\n  \u003e                         (BS.replicate 32 0x12)\n  \u003e let Right (msg2, r_hs) = BOLT8.act2 r_s_sec r_s_pub\n  \u003e                         (BS.replicate 32 0x22) msg1\n  \u003e let Right (msg3, i_res) = BOLT8.act3 i_hs msg2\n  \u003e let Right r_res = BOLT8.finalize r_hs msg3\n  \u003e\n  \u003e let i_sess = BOLT8.session i_res\n  \u003e let r_sess = BOLT8.session r_res\n  \u003e\n  \u003e let Right (ct, i_sess') = BOLT8.encrypt i_sess \"hello\"\n  \u003e let Right (pt, r_sess') = BOLT8.decrypt r_sess ct\n  \u003e pt\n  \"hello\"\n```\n\n## Framing\n\nOn a byte stream, use `decrypt_frame` when you have an exact frame, or\n`decrypt_frame_partial` to work incrementally and learn how many bytes\nare still required for the next step.\n\n## Documentation\n\nHaddocks are hosted at [docs.ppad.tech/bolt8][hadoc].\n\n## Security\n\nThis is a pre-release library that, at present, claims no security\nproperties 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[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/bolt8\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbolt8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppad-tech%2Fbolt8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Fbolt8/lists"}