{"id":22298768,"url":"https://github.com/ailisp/sig-sxg","last_synced_at":"2025-03-25T22:45:58.953Z","repository":{"id":264491095,"uuid":"877171666","full_name":"ailisp/sig-sxg","owner":"ailisp","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T08:32:13.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T02:16:55.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ailisp.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":"2024-10-23T08:00:37.000Z","updated_at":"2024-11-07T07:52:57.000Z","dependencies_parsed_at":"2024-11-24T18:06:12.298Z","dependency_job_id":null,"html_url":"https://github.com/ailisp/sig-sxg","commit_stats":null,"previous_names":["ailisp/sig-sxg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailisp%2Fsig-sxg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailisp%2Fsig-sxg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailisp%2Fsig-sxg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ailisp%2Fsig-sxg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ailisp","download_url":"https://codeload.github.com/ailisp/sig-sxg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556956,"owners_count":20634889,"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-12-03T18:02:03.961Z","updated_at":"2025-03-25T22:45:58.929Z","avatar_url":"https://github.com/ailisp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SIG-SXG\nThis is a proof of concept project that implements Signed Exchanges (SXG) built on Sig Network. This project is still work in progress\n\n## Workflow\n\n## Workflow\n\n1. Run one of mock signer or sig signer:\n   - For mock signer: `node mock-signer.js`\n   - For sig signer: `node sig-signer.js`\n\n2. Generate CSR:\n   ```\n   python generate-csr.py\n   ```\n   This generates a CSR without signature, sends it to the signer to sign and pack the signed CSR, then dumps it in PEM format.\n\n3. Register a DigiCert account and upload the CSR to obtain a SXG-supported certificate.\n\n4. Host the certificate and public key on a server:\n   - Ensure your server is configured to serve these files securely.\n\n5. Generate SXG for each static file on your site:\n   ```\n   python generate-sxg.py\n   ```\n   (TODO)\n\n6. Host SXG files alongside your site:\n   - Configure your web server to serve both the original files and their SXG counterparts.\n\n\n## Installation Steps\n\nTo set up the environment for this project, follow these steps:\n\n1. Clone the repository and its submodules:\n   ```\n   git clone --recursive https://github.com/your-repo/SIG-SXG.git\n   cd SIG-SXG\n   ```\n\n2. Install Conda\n   If you don't have Conda installed, download and install it from the [official Conda website](https://docs.conda.io/en/latest/miniconda.html).\n\n3. Create a new Conda environment named 'nearsxg':\n   ```\n   conda env create -f environment.yml\n   conda activate nearsxg\n   ```\n\n4. Install project dependencies:\n   ```\n   npm install\n   ```\n\n5. Build the cryptography module:\n   ```\n   cd cryptography\n   ```\n\n6. Install Rust:\n   If you don't have Rust installed, you can install it using rustup. Visit https://rustup.rs/ for installation instructions or run:\n   ```\n   curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n   ```\n\n7. Install build requirements:\n   ```\n   pip install -r .github/requirements/build-requirements.txt\n   ```\n\n8. Build the cryptography module using maturin:\n   ```\n   maturin build\n   # There will be an output python package, install it with pip install path/to/package\n   ```\n\n9. Return to the project root directory:\n   ```\n   cd ..\n   ```\n\n10. Build the webpackage:\n    ```\n    cd webpackage\n    go build -o ../gen-signedexchange go/signedexchange/cmd/gen-signedexchange/main.go\n    cd ..\n    ```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failisp%2Fsig-sxg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Failisp%2Fsig-sxg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failisp%2Fsig-sxg/lists"}