{"id":20152898,"url":"https://github.com/web3p/tinysmpc","last_synced_at":"2025-07-06T10:02:47.380Z","repository":{"id":195044470,"uuid":"687320021","full_name":"web3p/tinysmpc","owner":"web3p","description":"tinysmpc in php","archived":false,"fork":false,"pushed_at":"2023-09-17T09:29:36.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-06T10:02:38.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/web3p.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,"zenodo":null}},"created_at":"2023-09-05T05:48:44.000Z","updated_at":"2023-09-18T16:49:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"eafcf1a3-2c96-4837-8e23-f1834c5ebb7f","html_url":"https://github.com/web3p/tinysmpc","commit_stats":null,"previous_names":["web3p/tinysmpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/web3p/tinysmpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Ftinysmpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Ftinysmpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Ftinysmpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Ftinysmpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3p","download_url":"https://codeload.github.com/web3p/tinysmpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3p%2Ftinysmpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263882258,"owners_count":23524458,"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-11-13T23:15:35.246Z","updated_at":"2025-07-06T10:02:47.373Z","avatar_url":"https://github.com/web3p.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinysmpc\ntinysmpc in php, source: https://github.com/kennysong/tinysmpc\n\n# usage\n\n```\n\u003c?php\n\nrequire(__DIR__ . '/utils.php');\nrequire(__DIR__ . '/PrivateScalar.php');\nrequire(__DIR__ . '/Share.php');\nrequire(__DIR__ . '/SharedScalar.php');\nrequire(__DIR__ . '/VirtualMachine.php');\n\n$vm_a = new VirtualMachine(\"alice\");\n$vm_b = new VirtualMachine(\"bob\");\n$vm_c = new VirtualMachine(\"charlie\");\n\n$a = new PrivateScalar(\"25\", $vm_a);\n$b = new PrivateScalar(\"50\", $vm_b);\n$c = new PrivateScalar(\"10\", $vm_c);\n\n$shared_a = $a-\u003eshare([$vm_a, $vm_b, $vm_c]);\n$shared_b = $b-\u003eshare([$vm_a, $vm_b, $vm_c]);\n$shared_c = $c-\u003eshare([$vm_a, $vm_b, $vm_c]);\n\n$output = $shared_a-\u003eadd($shared_b)-\u003esub($shared_c);\n\nvar_dump($shared_a-\u003ereconstruct($vm_a)-\u003evalue, $shared_b-\u003ereconstruct($vm_b)-\u003evalue, $shared_c-\u003ereconstruct($vm_c)-\u003evalue);\nvar_dump($output-\u003ereconstruct($vm_a)-\u003evalue, $output-\u003ereconstruct($vm_b)-\u003evalue, $output-\u003ereconstruct($vm_c)-\u003evalue);\n```\n\n# todo\n\n- [ ] prime size Q\n- [ ] multiplication\n- [ ] comparason\n- [ ] divide\n- [ ] orhers...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3p%2Ftinysmpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3p%2Ftinysmpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3p%2Ftinysmpc/lists"}