{"id":15427518,"url":"https://github.com/farcaster-project/farcaster-core","last_synced_at":"2026-03-03T16:41:44.206Z","repository":{"id":37776334,"uuid":"339155113","full_name":"farcaster-project/farcaster-core","owner":"farcaster-project","description":"Farcaster Core Library.","archived":false,"fork":false,"pushed_at":"2023-04-10T23:59:15.000Z","size":1272,"stargazers_count":36,"open_issues_count":15,"forks_count":11,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-23T19:42:18.980Z","etag":null,"topics":["atomic-swap","bitcoin","farcaster","monero","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/farcaster_core","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farcaster-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-02-15T17:31:02.000Z","updated_at":"2025-09-01T06:46:31.000Z","dependencies_parsed_at":"2024-10-01T18:00:53.337Z","dependency_job_id":"592b92d6-ba27-4c15-a8a6-0b5391aee455","html_url":"https://github.com/farcaster-project/farcaster-core","commit_stats":{"total_commits":510,"total_committers":11,"mean_commits":46.36363636363637,"dds":0.4019607843137255,"last_synced_commit":"e5dc79f3d9e6b38e62da8166f2d6cf5f2c54d38a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/farcaster-project/farcaster-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaster-project%2Ffarcaster-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaster-project%2Ffarcaster-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaster-project%2Ffarcaster-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaster-project%2Ffarcaster-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farcaster-project","download_url":"https://codeload.github.com/farcaster-project/farcaster-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaster-project%2Ffarcaster-core/sbom","scorecard":{"id":392781,"data":{"date":"2025-08-11","repo":{"name":"github.com/farcaster-project/farcaster-core","commit":"e5dc79f3d9e6b38e62da8166f2d6cf5f2c54d38a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":8,"reason":"Found 19/23 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/create-release.yml:1","Warn: no topLevel permission defined: .github/workflows/draft-new-release.yml:1","Warn: no topLevel permission defined: .github/workflows/release-to-crates-io.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/analysis.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/analysis.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/analysis.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/analysis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/analysis.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/analysis.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/analysis.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/create-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/create-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/draft-new-release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/draft-new-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-to-crates-io.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/release-to-crates-io.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/farcaster-project/farcaster-core/test.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/analysis.yml:69","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  16 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T18:13:48.943Z","repository_id":37776334,"created_at":"2025-08-18T18:13:48.943Z","updated_at":"2025-08-18T18:13:48.943Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30052132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["atomic-swap","bitcoin","farcaster","monero","rust"],"created_at":"2024-10-01T18:00:39.618Z","updated_at":"2026-03-03T16:41:44.183Z","avatar_url":"https://github.com/farcaster-project.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/github/actions/workflow/status/farcaster-project/farcaster-core/build.yml?branch=main)](https://github.com/farcaster-project/farcaster-core/actions/workflows/build.yml)\n[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance)\n[![Crates.io](https://img.shields.io/crates/v/farcaster_core.svg)](https://crates.io/crates/farcaster_core)\n[![Documentation](https://docs.rs/farcaster_core/badge.svg)](https://docs.rs/farcaster_core)\n[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)\n[![MSRV](https://img.shields.io/badge/MSRV-1.59.0-blue)](https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html)\n\n# Farcaster Core Library\n\nThe Farcaster atomic swaps project core library aim to implement in Rust the following functionalities needed to build a swap node:\n\n- [x] Swap deals (contains all necessary information to start a swap)\n- [x] Swap roles and trade roles (who does what during the swap)\n- [x] Transaction templates implementing on-chain behaviours (arbitration engine, e.g. on Bitcoin blockchain)\n- [x] Signature and cryptographic utilities\n  - [x] ECDSA adaptor signatures\n  - [x] Cross-group discrete logarithm proof system\n  - [ ] Schnorr adaptor signature\n- [x] Messages exchanged between [farcaster nodes](https://github.com/farcaster-project/farcaster-node), i.e. the peer-to-peer messages also called _protocol messages_.\n\n## Documentation\n\nCheck out the documentation of this library on [docs.rs/farcaster_core](https://docs.rs/farcaster_core). All possible improvements, such as adding usage examples and expanding on existing docs would be extremely appreciated.\n\n## Core framework\n\nThis library's purpose is twofold: providing a flexible framework to add specific blockchain support and implementing these specific blockchains (currently _bitcoin_ and _monero_). The framework is split in modules at the root of the crate:\n\n- `blockchain`: generic types and traits for declaring assets/chains and on-chain behavior.\n- `consensus`: encoding and decoding implementation for all types in the crate, used to serialize and deserialize messages exchanged.\n- `crypto`: traits and generic types to define cryptographic interactions (wallet capability, commit/reveal scheme, signature and key types, etc).\n- `trade`: generic types and utilities for handling the trade setup, e.g. creating a deal.\n- `protocol`: generic types related to the execution of the protocol and messages exchanged between peers.\n- `role`: role definitions (trade and swap) and trait for the generic framework.\n- `script`: generic types for transaction data management.\n- `swap`: swap related types and swap concrete instances (e.g. _bitcoin-monero_).\n- `transaction`: transaction traits for building and validating the arbitrating set of transactions, i.e. the on-chain engine that implements the protocol's game-theoretic mechanism.\n\nThe blockchain specific support is added under the the following modules:\n\n- `bitcoin`: support for Bitcoin, implementation of all required traits from the framework, e.g. the `Arbitrating` blockchain role.\n- `monero`: support for Monero, implementation of all required traits from the framework, e.g. the `Accordant` blockchain role.\n- `swap/btcxmr`: definition of a swap between `bitcoin` and `monero` modules with re-export of the majority of generic types with fixed types associated to `bitcoin` and `monero`.\n\n### Features\n\nThe `experimental` a,d `taproot` features are enabled by default.\n\n- **experimental**: enables experimental cryptography, i.e. not battle tested nor peer reviewed, use it at your own risks.\n- **taproot**: [work in progress] enables support for Bitcoin Taproot on-chain scripts as the arbitrating engine method.\n\n### Adding blockchain support\n\nCheck `bitcoin`, `monero`, and `swap/btcxmr` modules to see and example of swap pair. For more details on high level context see the [RFCs](https://github.com/farcaster-project/RFCs).\n\n## Releases and Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md) and [RELEASING.md](RELEASING.md).\n\n## About\n\nThis work is part of the Farcaster cross-chain atomic swap project, see [Farcaster Project](https://github.com/farcaster-project).\n\n## Licensing\n\nThe code in this project is licensed under the [LGPL-3.0 License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarcaster-project%2Ffarcaster-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarcaster-project%2Ffarcaster-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarcaster-project%2Ffarcaster-core/lists"}