{"id":15353863,"url":"https://github.com/staltz/ssb-keys-mnemonic","last_synced_at":"2025-04-15T05:57:22.190Z","repository":{"id":54459137,"uuid":"210601566","full_name":"staltz/ssb-keys-mnemonic","owner":"staltz","description":"Module that converts from/to SSB keys and BIP39 mnemonic codes","archived":false,"fork":false,"pushed_at":"2022-03-03T21:18:07.000Z","size":15,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T10:39:13.680Z","etag":null,"topics":["bip39","bip39-mnemonic-codes","mnemonic","ssb","ssb-server"],"latest_commit_sha":null,"homepage":null,"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/staltz.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}},"created_at":"2019-09-24T12:48:47.000Z","updated_at":"2022-11-22T13:40:47.000Z","dependencies_parsed_at":"2022-08-13T16:20:16.769Z","dependency_job_id":null,"html_url":"https://github.com/staltz/ssb-keys-mnemonic","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staltz%2Fssb-keys-mnemonic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staltz%2Fssb-keys-mnemonic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staltz%2Fssb-keys-mnemonic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staltz%2Fssb-keys-mnemonic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staltz","download_url":"https://codeload.github.com/staltz/ssb-keys-mnemonic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830397,"owners_count":21168272,"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":["bip39","bip39-mnemonic-codes","mnemonic","ssb","ssb-server"],"created_at":"2024-10-01T12:15:30.359Z","updated_at":"2025-04-15T05:57:22.173Z","avatar_url":"https://github.com/staltz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssb-keys-mnemonic\n\nModule that converts from/to SSB keys and [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) mnemonic codes.\n\n```\nnpm install --save ssb-keys-mnemonic\n```\n\n## Usage\n\n### keysToWords(keys: object): string\n\n```js\nconst mnemonic = require('ssb-keys-mnemonic')\n\nconst keys = {\n  curve: 'ed25519',\n  public: '1nf1T1tUSa43dWglCHzyKIxV61jG/EeeL1Xq1Nk8I3U=.ed25519',\n  private: 'GO0Lv5BvcuuJJdHrokHoo0PmCDC/XjO/SZ6H+ddq4UvWd/VPW1RJrjd1aCUIfPIojFXrWMb8R54vVerU2TwjdQ==.ed25519',\n  id: '@1nf1T1tUSa43dWglCHzyKIxV61jG/EeeL1Xq1Nk8I3U=.ed25519'\n}\n\nconst words = mnemonic.keysToWords(keys)\n\nconsole.log(words)\n/*\n\n'body hair useful camp warm into cause riot two bamboo kick educate dinosaur advice seed type crisp where guilt avocado output rely lunch goddess'\n\n*/\n```\n\n### wordsToKeys(words: string): object\n\n```js\nconst mnemonic = require('ssb-keys-mnemonic')\n\nconst words = 'body hair useful camp warm into cause riot two bamboo kick educate dinosaur advice seed type crisp where guilt avocado output rely lunch goddess'\n\nconst keys = mnemonic.wordsToKeys(words)\n\nconsole.log(keys)\n/*\n\n{ curve: 'ed25519',\n  public: '1nf1T1tUSa43dWglCHzyKIxV61jG/EeeL1Xq1Nk8I3U=.ed25519',\n  private: 'GO0Lv5BvcuuJJdHrokHoo0PmCDC/XjO/SZ6H+ddq4UvWd/VPW1RJrjd1aCUIfPIojFXrWMb8R54vVerU2TwjdQ==.ed25519',\n  id: '@1nf1T1tUSa43dWglCHzyKIxV61jG/EeeL1Xq1Nk8I3U=.ed25519' }\n\n*/\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaltz%2Fssb-keys-mnemonic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaltz%2Fssb-keys-mnemonic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaltz%2Fssb-keys-mnemonic/lists"}