{"id":50940114,"url":"https://github.com/ppad-tech/tx","last_synced_at":"2026-06-17T13:04:10.351Z","repository":{"id":358297370,"uuid":"1214310330","full_name":"ppad-tech/tx","owner":"ppad-tech","description":"Minimalist transaction primitives.","archived":false,"fork":false,"pushed_at":"2026-05-16T16:29:08.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-16T18:36:23.793Z","etag":null,"topics":["bitcoin","haskell","tx"],"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-18T11:56:24.000Z","updated_at":"2026-05-16T16:29:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ppad-tech/tx","commit_stats":null,"previous_names":["ppad-tech/tx"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ppad-tech/tx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Ftx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Ftx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Ftx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Ftx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppad-tech","download_url":"https://codeload.github.com/ppad-tech/tx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppad-tech%2Ftx/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","tx"],"created_at":"2026-06-17T13:04:09.238Z","updated_at":"2026-06-17T13:04:10.346Z","avatar_url":"https://github.com/ppad-tech.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppad-tx\n\n[![](https://img.shields.io/hackage/v/ppad-tx?color=blue)](https://hackage.haskell.org/package/ppad-tx)\n![](https://img.shields.io/badge/license-MIT-brightgreen)\n[![](https://img.shields.io/badge/haddock-tx-lightblue)](https://docs.ppad.tech/tx)\n\nMinimal Bitcoin transaction primitives, including raw transaction\ntypes, serialisation to/from bytes, txid computation, and sighash\ncalculation (legacy and BIP143 segwit).\n\n## Usage\n\nA sample GHCi session:\n\n```\n  \u003e :set -XOverloadedStrings\n  \u003e import qualified Data.ByteString as BS\n  \u003e import qualified Data.ByteString.Base16 as B16\n  \u003e import Bitcoin.Prim.Tx\n  \u003e import Bitcoin.Prim.Tx.Sighash\n  \u003e\n  \u003e -- parse a raw transaction from hex\n  \u003e let raw = \"0100000001c997a5e56e104102fa209c6a852dd90660a20b2d9c352423edce25857fcd3704000000004847304402204e45e16932b8af514961a1d3a1a25fdf3f4f7732e9d624c6c61548ab5fb8cd410220181522ec8eca07de4860a4acdd12909d831cc56cbbac4622082221a8768d1d0901ffffffff0200ca9a3b00000000434104ae1a62fe09c5f51b13905f07f06b99a2f7159b2225f374cd378d71302fa28414e7aab37397f554a7df5f142c21c1b7303b8a0626f1baded5c72a704f7e6cd84cac00286bee0000000043410411db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b148a6909a5cb2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b8643f656b412a3ac00000000\"\n  \u003e let Just tx = from_base16 raw\n  \u003e\n  \u003e -- compute the txid\n  \u003e let TxId tid = txid tx\n  \u003e B16.encode (BS.reverse tid)\n  \"f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16\"\n  \u003e\n  \u003e -- round-trip serialisation\n  \u003e from_bytes (to_bytes tx) == Just tx\n  True\n  \u003e\n  \u003e -- compute a legacy sighash\n  \u003e let scriptPubKey = BS.pack [0x76, 0xa9, 0x14]\n  \u003e let hash = sighash_legacy tx 0 scriptPubKey SIGHASH_ALL\n  \u003e BS.length hash\n  32\n```\n\n## Documentation\n\nHaddocks are hosted at [docs.ppad.tech/tx][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.\nEnter a development 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/tx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Ftx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppad-tech%2Ftx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppad-tech%2Ftx/lists"}