{"id":21815646,"url":"https://github.com/bitcoin-com/dappid","last_synced_at":"2026-05-21T07:11:17.710Z","repository":{"id":96053751,"uuid":"156000901","full_name":"Bitcoin-com/dappid","owner":"Bitcoin-com","description":"BITBOX lib for BDIP-2","archived":false,"fork":false,"pushed_at":"2018-11-03T22:55:43.000Z","size":296,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-27T09:18:29.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Bitcoin-com.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","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}},"created_at":"2018-11-03T16:19:06.000Z","updated_at":"2021-12-26T19:12:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f841eb4-a52d-483b-9493-911db85026d6","html_url":"https://github.com/Bitcoin-com/dappid","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/Bitcoin-com%2Fdappid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitcoin-com%2Fdappid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitcoin-com%2Fdappid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitcoin-com%2Fdappid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bitcoin-com","download_url":"https://codeload.github.com/Bitcoin-com/dappid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776273,"owners_count":20508503,"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":[],"created_at":"2024-11-27T15:20:58.641Z","updated_at":"2026-05-21T07:11:17.647Z","avatar_url":"https://github.com/Bitcoin-com.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BDIP-2 Codec\n\n[BITBOX](https://developer.bitcoin.com/bitbox) lib for encoding/decoding [BDIP-2](https://github.com/web3bch/BDIPs/blob/master/BDIPs/bdip-2.md#create-dapp)\n\n## Installation\n\n```bash\nnpm install dappid --save\n```\n\n## Usage\n\n### Encode BDIP-2\n\n```js\n// require lib\nlet dappid = require('dappid')\n\n// create instance\nlet d = new dappid()\n\n// encode BDIP-2\nd.encodeBDIP2(\n  '00',\n  '0000',\n  '00',\n  'BitcoinCashApp',\n  '0eac357541b0ba572849113c5faa1d1990f6382741dc3e2f5507e3ca8346dc0e',\n  'web3bch.cash',\n  'Hello Bitcoin Cash'\n)\n\n// OP_RETURN 64617070 00 0000 00 426974636f696e43617368417070 0eac357541b0ba572849113c5faa1d1990f6382741dc3e2f5507e3ca8346dc0e 776562336263682e63617368 48656c6c6f20426974636f696e2043617368\n```\n\n### Decode BDIP-2\n\n```js\nd.decodeBDIP2(\n  'OP_RETURN 64617070 00 0000 00 426974636f696e43617368417070 0eac357541b0ba572849113c5faa1d1990f6382741dc3e2f5507e3ca8346dc0e 776562336263682e63617368 48656c6c6f20426974636f696e2043617368'\n)\n\n// { magicNumber: '64617070',\n//   txType: '00',\n//   txVersion: '0000',\n//   appType: '00',\n//   name: 'itcoinCashApp',\n//   protocolSpec: '0eac357541b0ba572849113c5faa1d1990f6382741dc3e2f5507e3ca8346dc0e',\n//   url: '119,101,98,bch.cash',\n//   metaData: 'ello Bitcoin Cash' }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-com%2Fdappid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoin-com%2Fdappid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoin-com%2Fdappid/lists"}