{"id":15825331,"url":"https://github.com/hyperbit-dev/message","last_synced_at":"2026-04-15T15:41:58.921Z","repository":{"id":63324480,"uuid":"566141306","full_name":"hyperbit-dev/message","owner":"hyperbit-dev","description":"JavaScript functions for blockchain signing and verifying messages.","archived":false,"fork":false,"pushed_at":"2024-02-23T00:17:03.000Z","size":434,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-25T11:43:44.780Z","etag":null,"topics":["bitcoin","bitcoinjs","javascript","message-signing","message-verifier","sign","typescript","verify"],"latest_commit_sha":null,"homepage":"","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/hyperbit-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-11-15T03:30:12.000Z","updated_at":"2024-02-06T00:19:05.000Z","dependencies_parsed_at":"2024-10-05T09:11:51.108Z","dependency_job_id":"18d6a918-f1ff-448a-9321-dfd5f867588f","html_url":"https://github.com/hyperbit-dev/message","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"03fc14150d52576aec3d41bbe5d617ea44973606"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperbit-dev%2Fmessage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperbit-dev%2Fmessage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperbit-dev%2Fmessage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperbit-dev%2Fmessage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperbit-dev","download_url":"https://codeload.github.com/hyperbit-dev/message/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246619996,"owners_count":20806714,"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","bitcoinjs","javascript","message-signing","message-verifier","sign","typescript","verify"],"created_at":"2024-10-05T09:08:01.293Z","updated_at":"2026-04-15T15:41:53.891Z","avatar_url":"https://github.com/hyperbit-dev.png","language":"TypeScript","readme":"![Hyperbit Message Banner](https://github.com/hyperbit-dev/message/raw/master/media/repo-banner.png)\n\n# Hyperbit - Message\n\nJavaScript functions for signing and verifying messages.\n\n## Installation\n\n```bash\nnpm install @hyperbitjs/message\n```\n\n## Usage\n\n### Sign a message using a private key\n\n```javascript\nimport { rvn } from \"@hyperbitjs/chains\";\nimport { sign } from \"@hyperbitjs/message\";\n\n// Wallet Import Format (WIF) format\nconst privateKey =\n  \"963523425d5de8ad42320df7ec9ba0e7f15783914da16e0aff93df20c7b668fb\";\nconst message = \"This is an example of a signed message.\";\n\nconst signature = sign({ message, privateKey, network: rvn.mainnet });\n// Expected Result: IIHJVUBhHEnGXun89PyIyoua265DKhACWFxG3LRAJTz+S03huR+vIaWhgJPYDoxAlS/EFN7nqydAfP6n+UBDvdY=\n```\n\n### Sign a message using a private key WIF\n\n```javascript\nimport { rvn } from \"@hyperbitjs/chains\";\nimport { sign } from \"@hyperbitjs/message\";\n\n// Wallet Import Format (WIF) format\nconst privateKeyWIF = \"T85xhCTbfJnMW4a8qB4ubAFVgshrDdU9jcDmrSgNntTp6YSrub7M\";\nconst message = \"This is an example of a signed message.\";\n\nconst signature = sign({ message, privateKeyWIF, network: rvn.mainnet });\n// Expected Result: IIHJVUBhHEnGXun89PyIyoua265DKhACWFxG3LRAJTz+S03huR+vIaWhgJPYDoxAlS/EFN7nqydAfP6n+UBDvdY=\n```\n\n### Verify a message\n\n```javascript\nimport { verify } from \"@hyperbitjs/message\";\n\nconst address = \"\u003cpublic_address_of_private_key_wif\u003e\";\nconst message = \"This is an example of a signed message.\";\nconst signature = \"\u003cgenerated_signature_from_sign\u003e\";\n\nconst isValid = verify({ address, message, signature });\n```\n\n### Full Example\n\n```javascript\nimport { Mnemonic } from \"@hyperbitjs/mnemonic\";\nimport { sign, verify } from \"@hyperbitjs/message\";\nimport { ltc } from \"@hyperbitjs/chains\";\n\nconst mnemonic = new Mnemonic({ network: ltc.main });\nconst addresses = mnemonic.generateAddresses();\n\nconst { address, privateKey } = addresses[0].external;\nconst network = ltc.main;\nconst message = \"This is an example of a signed message.\";\n\nconst signature = sign({\n  privateKey,\n  message,\n  network,\n});\n\nconst isValid = verify({\n  message,\n  address,\n  signature,\n  network,\n});\n\nconsole.log(\"isValid\", isValid);\n// Expected Output: true\n```\n\n## License\n\n[MIT](/LICENSE) License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperbit-dev%2Fmessage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperbit-dev%2Fmessage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperbit-dev%2Fmessage/lists"}