{"id":13772983,"url":"https://github.com/bitpay/bitcore-message","last_synced_at":"2025-04-04T11:12:32.348Z","repository":{"id":26853468,"uuid":"30313330","full_name":"bitpay/bitcore-message","owner":"bitpay","description":"Bitcoin Message Verification and Signing for Bitcore","archived":false,"fork":false,"pushed_at":"2023-03-08T08:43:47.000Z","size":582,"stargazers_count":89,"open_issues_count":10,"forks_count":242,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-28T10:09:51.995Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"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":"2015-02-04T18:09:22.000Z","updated_at":"2025-01-13T22:39:52.000Z","dependencies_parsed_at":"2024-01-15T03:41:29.319Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/bitcore-message","commit_stats":{"total_commits":35,"total_committers":8,"mean_commits":4.375,"dds":0.6285714285714286,"last_synced_commit":"98a54319246bfabd442f94cac42ab5c9486d3b46"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcore-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcore-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcore-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitcore-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/bitcore-message/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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-08-03T17:01:09.925Z","updated_at":"2025-04-04T11:12:32.326Z","avatar_url":"https://github.com/bitpay.png","language":"JavaScript","funding_links":[],"categories":["List of content"],"sub_categories":["Utilities"],"readme":"\u003cimg src=\"http://bitcore.io/css/images/module-message.png\" alt=\"bitcore message\" height=\"35\"\u003e\n# Bitcoin Message Verification and Signing for Bitcore\n\n\n[![NPM Package](https://img.shields.io/npm/v/bitcore-message.svg?style=flat-square)](https://www.npmjs.org/package/bitcore-message)\n[![Build Status](https://img.shields.io/travis/bitpay/bitcore-message.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/bitpay/bitcore-message)\n[![Coverage Status](https://img.shields.io/coveralls/bitpay/bitcore-message.svg?style=flat-square)](https://coveralls.io/r/bitpay/bitcore-message?branch=master)\n\nbitcore-message adds support for verifying and signing bitcoin messages in [Node.js](http://nodejs.org/) and web browsers.\n\nSee [the main bitcore repo](https://github.com/bitpay/bitcore) for more information.\n\n## Getting Started\n\n```sh\nnpm install bitcore-message\n```\n\n```sh\nbower install bitcore-message\n```\n\nTo sign a message:\n\n```javascript\nvar bitcore = require('bitcore-lib');\nvar Message = require('bitcore-message');\n\nvar privateKey = bitcore.PrivateKey.fromWIF('cPBn5A4ikZvBTQ8D7NnvHZYCAxzDZ5Z2TSGW2LkyPiLxqYaJPBW4');\nvar signature = Message('hello, world').sign(privateKey);\n```\n\nTo verify a message:\n\n```javascript\nvar address = 'n1ZCYg9YXtB5XCZazLxSmPDa8iwJRZHhGx';\nvar signature = 'H/DIn8uA1scAuKLlCx+/9LnAcJtwQQ0PmcPrJUq90aboLv3fH5fFvY+vmbfOSFEtGarznYli6ShPr9RXwY9UrIY=';\nvar verified = Message('hello, world').verify(address, signature);\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/bitpay/bitcore/blob/master/CONTRIBUTING.md) on the main bitcore repo for information about how to contribute.\n\n## License\n\nCode released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).\n\nCopyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitcore-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fbitcore-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitcore-message/lists"}