{"id":22642758,"url":"https://github.com/bit-nation/id-generator","last_synced_at":"2025-09-13T03:44:22.501Z","repository":{"id":73696332,"uuid":"45450942","full_name":"Bit-Nation/ID-generator","owner":"Bit-Nation","description":"Old BITNATION World Citizenship ID Generator (Horizon version)","archived":false,"fork":false,"pushed_at":"2017-09-11T21:10:19.000Z","size":50,"stargazers_count":7,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T23:37:04.191Z","etag":null,"topics":["horizon","javascript"],"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/Bit-Nation.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,"zenodo":null}},"created_at":"2015-11-03T08:03:37.000Z","updated_at":"2017-09-12T02:45:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"63eb5d00-f50d-4642-8250-735fe50dbb71","html_url":"https://github.com/Bit-Nation/ID-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bit-Nation/ID-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Nation%2FID-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Nation%2FID-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Nation%2FID-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Nation%2FID-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bit-Nation","download_url":"https://codeload.github.com/Bit-Nation/ID-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bit-Nation%2FID-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274915594,"owners_count":25373194,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["horizon","javascript"],"created_at":"2024-12-09T05:08:22.162Z","updated_at":"2025-09-13T03:44:22.491Z","avatar_url":"https://github.com/Bit-Nation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BITNATION ID\n\nID generator for the BITNATION project.\n\nAfter generating a BITNATION-ID the userData will be signed and that signature together with the public key will be saved as a transaction on Horizon. The format will be **signature:publicKey**. The transaction id will be saved as `hztx` in your ID.\n\n![A Horizon Transaction](http://res.cloudinary.com/go-for-self/image/upload/v1465404700/Golightly%2B/Horizon_Transaction.png)\n\nYou will be able to save your ID as a JSON file that will have the following structure (without the indentation and spacing):\n\n```JSON\n{\n\t\"userData\": {\n\t\t\"name\": \"Ed Sheeran\",\n\t\t\"height\": 168,\n\t\t\"dob\": 19801111,\n\t\t\"witness1\": \"Bob Dole\",\n\t\t\"witness2\": \"Jane Simmons\"\n\t},\n\t\"image\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==\",\n\t\"hztx\": \"87buyhjksadfbiu7t23njdsf\",\n\t\"crypto\": {\n\t\t\"publicKey\": \"87yboiuahdfniauns98u98\",\n\t\t\"encryptedSecretKey\": \"khjabsdf8o7ybo283niouhf98noljkl\",\n\t\t\"salt\":\"sfdf2322d\",\n\t\t\"nonce\": \"09iniouhnis6tb\",\n\t\t\"logN\": 16,\n\t\t\"blockSize\": 8\n\t}\n}\n```\n\nA working demo can be found at http://apps.golightlyplus.com/bitnation/id-generator/\n\n#### To get this app running on your local machine\n\nOpen a terminal and run...\n\n1. `git clone [URL]`\n2. `npm install`\n3. `npm run dev`\n4. Open a browser and goto `http://localhost:8080/`\n\n#### To verify your signed data\n\n1. Goto http://tweetnacl.js.org/#/sign\n2. Click \"Verify\".\n3. Enter in your `publicKey` from your JSON file.\n4. Enter the `signature` from the Horizon transaction. Look up from the transaction ID stored in the hztx value in your JSON file.\n5. For the message, enter in your userData. e.g. `{\"name\":\"Ed Sheeran\",\"height\":\"168\",\"dob\":\"19801111\",\"witness1\":\"Bob Dole\",\"witness2\":\"Jane Simmons\"}`.\n\n#### To view your image\n\n1. Goto http://codebeautify.org/base64-to-image-converter\n2. Copy and paste in the value for your image from your bitnation-id.json file.\n\n## Change Log\n\n### 14th June 2016\nUsing [scrypt](https://en.wikipedia.org/wiki/Scrypt) to derive a key from the password entered, and then using that key to encrypt the secret key.\n\nThe ID is now downloadable as a JSON file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-nation%2Fid-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbit-nation%2Fid-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-nation%2Fid-generator/lists"}