{"id":13773128,"url":"https://github.com/bitcoinjs/wif","last_synced_at":"2025-04-04T17:10:31.490Z","repository":{"id":2652552,"uuid":"41088748","full_name":"bitcoinjs/wif","owner":"bitcoinjs","description":"Bitcoin Wallet Import Format JS encoding/decoding module","archived":false,"fork":false,"pushed_at":"2024-06-25T11:45:22.000Z","size":427,"stargazers_count":82,"open_issues_count":0,"forks_count":41,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T09:04:20.687Z","etag":null,"topics":["bitcoin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bitcoinjs.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-20T09:56:08.000Z","updated_at":"2025-01-26T23:19:03.000Z","dependencies_parsed_at":"2024-10-12T00:16:48.860Z","dependency_job_id":null,"html_url":"https://github.com/bitcoinjs/wif","commit_stats":{"total_commits":67,"total_committers":8,"mean_commits":8.375,"dds":0.417910447761194,"last_synced_commit":"a8417d1f4d175006bc55bde0ebbcd105ddb9ad7f"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fwif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fwif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fwif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fwif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcoinjs","download_url":"https://codeload.github.com/bitcoinjs/wif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217222,"owners_count":20903009,"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"],"created_at":"2024-08-03T17:01:11.726Z","updated_at":"2025-04-04T17:10:31.471Z","avatar_url":"https://github.com/bitcoinjs.png","language":"JavaScript","readme":"# WIF\n[![TRAVIS](https://secure.travis-ci.org/bitcoinjs/wif.png)](http://travis-ci.org/bitcoinjs/wif)\n[![NPM](http://img.shields.io/npm/v/wif.svg)](https://www.npmjs.org/package/wif)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nBitcoin Wallet Import Format encoding/decoding module.\n\n\n## Example\n\n``` javascript\nimport * as wif from \"wif\"\nvar privateKey = Buffer.from('0000000000000000000000000000000000000000000000000000000000000001', 'hex')\nvar key = wif.encode({version: 128, privateKey, compressed: true}) // for the testnet use: wif.encode(239, ...\n// =\u003e KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn\n\nvar obj = wif.decode(key)\n// =\u003e {\n//\tversion: 128,\n//\tprivateKey: Uint8Array(32) [\n//     0, 0, 0, 0, 0, 0, 0, 0, 0,\n//     0, 0, 0, 0, 0, 0, 0, 0, 0,\n//     0, 0, 0, 0, 0, 0, 0, 0, 0,\n//     0, 0, 0, 0, 1\n//   ],\n//\tcompressed: true\n//}\n\nwif.decode(key, 0x09)\n// =\u003e Error: Invalid network version\n\n// alternative syntax\nwif.encode(obj)\n// =\u003e KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn\n```\n\n## LICENSE [MIT](LICENSE)\n","funding_links":[],"categories":["List of content"],"sub_categories":["Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoinjs%2Fwif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoinjs%2Fwif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoinjs%2Fwif/lists"}