{"id":22468681,"url":"https://github.com/jazzdotdev/file-witness","last_synced_at":"2025-03-27T15:45:02.547Z","repository":{"id":78131187,"uuid":"158257331","full_name":"jazzdotdev/file-witness","owner":"jazzdotdev","description":"The Jazz Code Signing App","archived":false,"fork":false,"pushed_at":"2021-12-05T20:39:00.000Z","size":18,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T19:30:21.345Z","etag":null,"topics":["curve25519","curve25519xsalsa20poly1305","file-signature","jazz"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/jazzdotdev.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-19T16:32:36.000Z","updated_at":"2021-12-06T18:58:27.000Z","dependencies_parsed_at":"2023-02-27T18:30:19.344Z","dependency_job_id":null,"html_url":"https://github.com/jazzdotdev/file-witness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzdotdev%2Ffile-witness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzdotdev%2Ffile-witness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzdotdev%2Ffile-witness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzdotdev%2Ffile-witness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzdotdev","download_url":"https://codeload.github.com/jazzdotdev/file-witness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874323,"owners_count":20686744,"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":["curve25519","curve25519xsalsa20poly1305","file-signature","jazz"],"created_at":"2024-12-06T11:18:58.656Z","updated_at":"2025-03-27T15:45:02.536Z","avatar_url":"https://github.com/jazzdotdev.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"100\" src=\"https://i.imgur.com/gtf4kBl.png\" alt=\"file-witness logo\"\u003e\u003c/p\u003e\n\n\n## Generate detached signature\n\n### Generating private key\n\nTo generate a shared key-pair we have to call `torchbear`'s `crypto.sign.new_keypair()` function. To do so, create a file named `init.lua` and add this:\n\n```[lua]\nlocal sign_priv, sign_pub = crypto.sign.new_keypair()\nlocal file = io.open(\"private_key\", \"w\")\nlocal file2 = io.open(\"public_key\", \"w\")\nfile:write(tostring(sign_priv), \"\\n\")\nfile2:write(tostring(sign_pub), \"\\n\")\n```\n\n## Creating the signature file from binary file\n\nTo create a signature file, we have to first set some environment variables, here's the list:\n```\nPROJECT     = name of project\nTRAVIS_TAG  = release tag\nARCH        = architecture\nPLATFORM    = x86/arm/...\nCHANNEL     = stable/beta\n```\n\nAfter setting them, we will have to run `torchbear` binary in the directory where we have `private_key` and [init.lua](https://github.com/foundpatterns/file-witness/blob/master/init.lua).\n\nThis should create the `.sig` file with following name format: `${PROJECT}-${TRAVIS_TAG}-${ARCH}-${PLATFORM}-${CHANNEL}.sig`\n\n## Credits\n\nIcon made by [Freepik](https://www.freepik.com/) and published by [Flaticon](https://www.flaticon.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzdotdev%2Ffile-witness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzdotdev%2Ffile-witness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzdotdev%2Ffile-witness/lists"}