{"id":13780589,"url":"https://github.com/donpdonp/bitcoin-wasm","last_synced_at":"2026-01-27T00:32:31.315Z","repository":{"id":66461940,"uuid":"122915146","full_name":"donpdonp/bitcoin-wasm","owner":"donpdonp","description":"The bitcoin script interpreter (cpp) compiled to webassembly.","archived":false,"fork":false,"pushed_at":"2022-08-26T18:12:46.000Z","size":9017,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T18:15:14.196Z","etag":null,"topics":["bitcoin","webassembly"],"latest_commit_sha":null,"homepage":"http://donpdonp.github.io/bitcoin-wasm/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donpdonp.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-26T04:54:22.000Z","updated_at":"2024-08-01T14:30:15.000Z","dependencies_parsed_at":"2023-03-21T20:33:00.043Z","dependency_job_id":null,"html_url":"https://github.com/donpdonp/bitcoin-wasm","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/donpdonp%2Fbitcoin-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donpdonp%2Fbitcoin-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donpdonp%2Fbitcoin-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donpdonp%2Fbitcoin-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donpdonp","download_url":"https://codeload.github.com/donpdonp/bitcoin-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056842,"owners_count":17414221,"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","webassembly"],"created_at":"2024-08-03T18:01:17.568Z","updated_at":"2026-01-27T00:32:31.307Z","avatar_url":"https://github.com/donpdonp.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"Build the script/interpreter part of the bitcoin code base for webasm.\n\n## status\n2018-Mar-13 All opcode are supported except OP_CHECKSIG (openssl/ecdsa libs are not ported to webasm yet)\n\n## build\n```bash\nbitcoin-wasm $ make\nbuilding for dogecoin 1.10.0\nemcc -s 'EXPORTED_FUNCTIONS...\n-rw-rw-r-- 1 donp donp 636982 Mar  5 14:13 build/bridge.wasm\n```\n\n## run in node\n\nThe run.js file loads a script containing 1, 2, OP_ADD operation. This pushes\ntwo values to the stack, then runs OP_ADD. The resulting stack is the result\nof the ADD.\n\n```bash\nbitcoin-wasm $ make node\ncd build; node ../run.js\nloading bridge.wasm\ncompiling script: [ '1', '2', 'OP_ADD' ]\nstringCompile 3 opcode strings \n#0 1 (0x1) number\n#1 2 (0x2) number\n#2 93 OP_ADD opcode\nscript opcount: 3 hex: 0101010293\ninput script compiled to:  1 2 OP_ADD\nscriptRun #0 begin\nscriptRun GOOD\nstacktoChar memcopy row 0 len 1\nscript SUCCESS\nUint8Array [ 3 ]\n```\n\n## run in a browser\n\nbridge.js is loaded as any other .js file in an html script tag. it will expect\nbridge.wasm to exist at the same path. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonpdonp%2Fbitcoin-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonpdonp%2Fbitcoin-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonpdonp%2Fbitcoin-wasm/lists"}