{"id":15395248,"url":"https://github.com/abdelstark/askeladd","last_synced_at":"2025-04-16T00:07:59.381Z","repository":{"id":248692128,"uuid":"829392838","full_name":"AbdelStark/askeladd","owner":"AbdelStark","description":"Powering Verifiable Computation for Nostr Data Vending Machines.","archived":false,"fork":false,"pushed_at":"2024-12-04T07:28:45.000Z","size":13388,"stargazers_count":20,"open_issues_count":8,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T00:07:45.684Z","etag":null,"topics":["bitcoin","circle-stark","lightning-network","nip-90","nostr","nostr-dvm","starknet","stwo","zero-knowledge-proofs"],"latest_commit_sha":null,"homepage":"https://askeladd.org","language":"Rust","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/AbdelStark.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T10:38:25.000Z","updated_at":"2025-03-01T01:01:53.000Z","dependencies_parsed_at":"2024-08-05T17:01:56.388Z","dependency_job_id":"fb55b6e7-12ef-413f-b8f1-7a2bd6fbb333","html_url":"https://github.com/AbdelStark/askeladd","commit_stats":{"total_commits":53,"total_committers":4,"mean_commits":13.25,"dds":"0.28301886792452835","last_synced_commit":"567bdb4858dba48645528fe23c351926eb689a7a"},"previous_names":["abdelstark/askeladd"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelStark%2Faskeladd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelStark%2Faskeladd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelStark%2Faskeladd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelStark%2Faskeladd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdelStark","download_url":"https://codeload.github.com/AbdelStark/askeladd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173084,"owners_count":21224483,"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":["bitcoin","circle-stark","lightning-network","nip-90","nostr","nostr-dvm","starknet","stwo","zero-knowledge-proofs"],"created_at":"2024-10-01T15:27:00.696Z","updated_at":"2025-04-16T00:07:59.363Z","avatar_url":"https://github.com/AbdelStark.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"docs/img/askeladd-text.png\" alt=\"Askeladd\" height=256\u003e\n    \u003ch2\u003eCensorship-resistant global proving network.\u003c/h2\u003e\n\n\u003ca href=\"https://github.com/AbdelStark/askeladd/actions/workflows/ci.yaml\"\u003e\u003cimg alt=\"GitHub Workflow Status (with event)\" src=\"https://img.shields.io/github/actions/workflow/status/AbdelStark/askeladd/ci.yaml?style=for-the-badge\" height=30\u003e\u003c/a\u003e\n\n\u003c!--a href=\"https://github.com/AbdelStark/askeladd/actions/workflows/e2e-test.yaml\"\u003e\u003cimg alt=\"GitHub Workflow Status E2E Tests\" src=\"https://img.shields.io/github/actions/workflow/status/AbdelStark/askeladd/e2e-test.yaml?style=for-the-badge\" height=30\u003e\u003c/a--\u003e\n\n\u003ca href=\"https://bitcoin.org/\"\u003e \u003cimg alt=\"Bitcoin\" src=\"https://img.shields.io/badge/Bitcoin-000?style=for-the-badge\u0026logo=bitcoin\u0026logoColor=white\" height=30\u003e\u003c/a\u003e\n\u003ca href=\"https://nostr.com/\"\u003e \u003cimg alt=\"Nostr\" src=\"https://img.shields.io/badge/Nostr-000?style=for-the-badge\" height=30\u003e\u003c/a\u003e\n\u003ca href=\"https://lightning.network/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Ligthning Network-000.svg?\u0026style=for-the-badge\u0026logo=data:image/svg%2bxml;base64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI%2FPg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIEZpcmV3b3JrcyAxMCwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0%2BDQo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPg0KPHN2ZyBpZD0iYml0Y29pbl9saWdodG5pbmdfaWNvbi5mdy1QYWdlJTIwMSIgdmlld0JveD0iMCAwIDI4MCAyODAiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgdmVyc2lvbj0iMS4xIg0KCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQoJeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyODBweCIgaGVpZ2h0PSIyODBweCINCj4NCgk8cGF0aCBpZD0iRWxsaXBzZSIgZD0iTSA3IDE0MC41IEMgNyA2Ni43NjkgNjYuNzY5IDcgMTQwLjUgNyBDIDIxNC4yMzEgNyAyNzQgNjYuNzY5IDI3NCAxNDAuNSBDIDI3NCAyMTQuMjMxIDIxNC4yMzEgMjc0IDE0MC41IDI3NCBDIDY2Ljc2OSAyNzQgNyAyMTQuMjMxIDcgMTQwLjUgWiIgZmlsbD0iI2Y3OTMxYSIvPg0KCTxwYXRoIGQ9Ik0gMTYxLjE5NDMgNTEuNSBDIDE1My4yMzQ5IDcyLjE2MDcgMTQ1LjI3NTYgOTQuNDEwNyAxMzUuNzI0NCAxMTYuNjYwNyBDIDEzNS43MjQ0IDExNi42NjA3IDEzNS43MjQ0IDExOS44MzkzIDEzOC45MDgxIDExOS44MzkzIEwgMjA0LjE3NDcgMTE5LjgzOTMgQyAyMDQuMTc0NyAxMTkuODM5MyAyMDQuMTc0NyAxMjEuNDI4NiAyMDUuNzY2NyAxMjMuMDE3OSBMIDExMC4yNTQ1IDIyOS41IEMgMTA4LjY2MjYgMjI3LjkxMDcgMTA4LjY2MjYgMjI2LjMyMTQgMTA4LjY2MjYgMjI0LjczMjEgTCAxNDIuMDkxOSAxNTMuMjE0MyBMIDE0Mi4wOTE5IDE0Ni44NTcxIEwgNzUuMjMzMyAxNDYuODU3MSBMIDc1LjIzMzMgMTQwLjUgTCAxNTYuNDE4NyA1MS41IEwgMTYxLjE5NDMgNTEuNSBaIiBmaWxsPSIjZmZmZmZmIi8%2BDQo8L3N2Zz4%3D\" alt=\"Bitcoin Lightning\" height=\"30\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.rust-lang.org/\"\u003e \u003cimg alt=\"Rust\" src=\"https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge\u0026logo=rust\u0026logoColor=white\" height=30\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n\n## About\n\nAskeladd is a censorship-resistant global proving network, for anyone to be able to generate validity proofs, using [STWO](https://github.com/starkware-libs/stwo) prover, and verify them. It enables to submit proving request to the network and retrieve the generated proof for any given request.\nAskeladd leverages [Nostr](https://github.com/nostr-protocol/nostr) for the communication layer, to gossip the proving requests and generated proofs, following the [NIP-90 - Data Vending Machine](https://nips.nostr.com/90) specification.\n\n\u003e **Disclaimer:** Askeladd is only a proof of concept and should not be used in a production environment. It's a work in progress as a showcase of the STWO prover and the Nostr protocol.\n\nCheck out this video demonstration of Askeladd in action:\n\n[![asciicast](https://asciinema.org/a/670103.png)](https://asciinema.org/a/670103)\n\n## Architecture\n\n```mermaid\ngraph LR\n    Customer((DVM Customer))\n    SP[DVM Service Provider]\n    Nostr[Nostr Network]\n    STWO_P[STWO Prover]\n    STWO_V[STWO Verifier]\n\n    Customer --\u003e|1. Submit Proving Request\u003cbr\u003eKind: 5600| Nostr\n    Nostr --\u003e|2. Fetch Request| SP\n    SP --\u003e|3. Generate Proof| STWO_P\n    SP --\u003e|4. Publish Proof\u003cbr\u003eKind: 6600| Nostr\n    Nostr --\u003e|5. Fetch Proof| Customer\n    Customer --\u003e|6. Verify Proof| STWO_V\n\n    classDef customer fill:#f9d71c,stroke:#333,stroke-width:2px;\n    classDef provider fill:#66b3ff,stroke:#333,stroke-width:2px;\n    classDef network fill:#333,stroke:#333,stroke-width:2px,color:#fff;\n    classDef prover fill:#ff9999,stroke:#333,stroke-width:2px;\n    classDef verifier fill:#b19cd9,stroke:#333,stroke-width:2px;\n\n    class Customer customer;\n    class SP provider;\n    class Nostr network;\n    class STWO_P prover;\n    class STWO_V verifier;\n```\n\nTypical flow:\n\n1. User submits a proving request to the network (DVM Job Kind `5600`)\n2. A DVM Service Provider picks the request and generates a proof using the STWO prover.\n3. The proof is published to the Nostr network (DVM Job Result Kind `6600`).\n4. The DVM Customer can verify the proof using the STWO verifier.\n\n## Running the demo\n\n### Using docker-compose\n\n```bash\n./scripts/demo_docker_compose_local_relayer.sh\n```\n\n### Manually\n\nCreate a `.env` file, you can use the `.env.example` file as a reference.\n\n```bash\ncp .env.example .env\n\n# Set the relay URL in the .env file\n\n# Using a local relay\nAPP_SUBSCRIBED_RELAYS=ws://localhost:8080\n\n# Or a public relay\nAPP_SUBSCRIBED_RELAYS=wss://relay.nostr.net\n```\n\n(Optional, if you want to run a local nostr relay) In a terminal, run the local nostr relay:\n\n```bash\ndocker run -p 8080:8080 scsibug/nostr-rs-relay\n```\n\nIn a terminal, run the prover agent:\n\n```bash\ncargo run --bin dvm_service_provider\n```\n\nIn a terminal, run the user CLI:\n\n```bash\ncargo run --bin dvm_customer\n```\n\nThe user CLI binary will submit a proving request to the Nostr network. The prover agent will generate a proof for the request and publish it to the Nostr network. The user CLI binary will be able to verify the proof.\n\n## Askeladd DVM Marketplace\n\nSee the [Askeladd DVM Marketplace](https://github.com/AbdelStark/askeladd-dvm-marketplace) for more information.\n\nThis requires to build the STWO WASM bindings and to copy the generated artifacts.\n\nGo to [crates/stwo_wasm](crates/stwo_wasm) and run `wasm-pack build --target web` to build the STWO WASM bindings.\n\nThen copy the generated `pkg` directory to [askeladd-dvm-marketplace/src/](askeladd-dvm-marketplace/src/).\n\n## 🤝 Contributing\n\nWe love contributions! If you have ideas for improvements or find any issues, please open an issue or submit a pull request.\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgements\n\nThis demo is powered by the amazing [STWO Prover](https://github.com/starkware-libs/stwo) from StarkWare. A big thank you to the StarkWare team and all contributors!\n\n## 📚 Resources\n\n- [Nostr Rust relay](https://github.com/scsibug/nostr-rs-relay/)\n- [Nostr web tooling](https://nostrtool.com/)\n- [NIP-90 - Data Vending Machine](https://nips.nostr.com/90)\n- [Vendata.io](https://vendata.io/dvms)\n- [Data Vending Machines](https://www.data-vending-machines.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelstark%2Faskeladd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdelstark%2Faskeladd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelstark%2Faskeladd/lists"}