{"id":40398297,"url":"https://github.com/dolcalmi/stellar-thresh-sig-js","last_synced_at":"2026-01-20T13:07:44.450Z","repository":{"id":57370691,"uuid":"290528447","full_name":"dolcalmi/stellar-thresh-sig-js","owner":"dolcalmi","description":"Stellar Javascript two party threshold signatures SDK","archived":false,"fork":false,"pushed_at":"2020-12-30T19:51:02.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T21:09:44.919Z","etag":null,"topics":["stellar","threshold","threshold-eddsa","threshold-signature"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolcalmi.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}},"created_at":"2020-08-26T15:04:42.000Z","updated_at":"2023-01-20T10:49:41.000Z","dependencies_parsed_at":"2022-08-29T17:10:14.626Z","dependency_job_id":null,"html_url":"https://github.com/dolcalmi/stellar-thresh-sig-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dolcalmi/stellar-thresh-sig-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolcalmi%2Fstellar-thresh-sig-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolcalmi%2Fstellar-thresh-sig-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolcalmi%2Fstellar-thresh-sig-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolcalmi%2Fstellar-thresh-sig-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolcalmi","download_url":"https://codeload.github.com/dolcalmi/stellar-thresh-sig-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolcalmi%2Fstellar-thresh-sig-js/sbom","scorecard":{"id":350038,"data":{"date":"2025-08-11","repo":{"name":"github.com/dolcalmi/stellar-thresh-sig-js","commit":"acfa50664c9c1ac8cc12b0ff7e43c21b0a51ae39"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU 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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Vulnerabilities","score":0,"reason":"62 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-6cgh-hjpw-q3gq","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-3329-pjwv-fjpg","Warn: Project is vulnerable to: GHSA-p6j9-7xhc-rhwp","Warn: Project is vulnerable to: GHSA-89gv-h8wf-cg8r","Warn: Project is vulnerable to: GHSA-gcv8-gh4r-25x6","Warn: Project is vulnerable to: GHSA-gmv4-r438-p67f","Warn: Project is vulnerable to: GHSA-8h2f-7jc4-7m3m","Warn: Project is vulnerable to: GHSA-3vjf-82ff-p4r3","Warn: Project is vulnerable to: GHSA-g694-m8vq-gv9h","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T08:07:17.004Z","repository_id":57370691,"created_at":"2025-08-18T08:07:17.004Z","updated_at":"2025-08-18T08:07:17.004Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: 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":["stellar","threshold","threshold-eddsa","threshold-signature"],"created_at":"2026-01-20T13:07:44.372Z","updated_at":"2026-01-20T13:07:44.443Z","avatar_url":"https://github.com/dolcalmi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stellar Two-Party Threshold Signature Library\n[![Version](https://img.shields.io/npm/v/stellar-thresh-sig.svg)](https://www.npmjs.org/package/stellar-thresh-sig)\n[![Build Status](https://api.travis-ci.org/dolcalmi/stellar-thresh-sig-js.svg?branch=master)](https://travis-ci.org/dolcalmi/stellar-thresh-sig-js)\n[![Coverage Status](https://coveralls.io/repos/github/dolcalmi/stellar-thresh-sig-js/badge.svg?branch=master)](https://coveralls.io/github/dolcalmi/stellar-thresh-sig-js?branch=master)\n[![David](https://img.shields.io/david/dolcalmi/stellar-thresh-sig-js.svg)](https://david-dm.org/dolcalmi/stellar-thresh-sig-js)\n[![David](https://img.shields.io/david/dev/dolcalmi/stellar-thresh-sig-js.svg)](https://david-dm.org/dolcalmi/stellar-thresh-sig-js?type=dev)\n[![Try on RunKit](https://badge.runkitcdn.com/stellar-thresh-sig-js.svg)](https://runkit.com/npm/stellar-thresh-sig)\n\nStellar Javascript two party threshold signature SDK\n\n## Installation\n\n1. If on Linux, install needed packages:\n```sh\n$ sudo apt-get update\n$ sudo apt-get install libgmp3-dev pkg-config libssl-dev clang libclang-dev\n```\n2. Install [Node.js](https://nodejs.org/en/download/)\u003cbr\u003e\n(tested on Node 10)\n3. Install [nightly Rust](https://github.com/rust-lang/rustup.rs#installation)\u003cbr\u003e\n(tested on rustc 1.38.0-nightly (0b680cfce 2019-07-09))\n\n```bash\n$ rustup toolchain install nightly-2019-07-10\n$ rustup default nightly-2019-07-10-x86_64-unknown-linux-gnu # or value from `rustup show` command\n$ rustc --version\n# rustc 1.38.0-nightly (0b680cfce 2019-07-09)\n```\n4. Install the package:\n```bash\n$ npm i stellar-thresh-sig-js\n```\nAlternatively, clone it:\n```bash\n$ git clone https://github.com/dolcalmi/stellar-thresh-sig-js\n$ cd stellar-thresh-sig-js\n$ npm install\n```\nif you have problems getting a keypair please check [this issue](https://github.com/KZen-networks/thresh-sig-js/issues/18) or run the next command after npm install:\n```bash\n$ OPENSSL_STATIC=yes OPENSSL_LIB_DIR=\u003copenssl path\u003e npm explore @kzen-networks/thresh-sig -- npm run build-rust\n# you can get openssl path with: openssl version -d\n```\n\n## Usage\n\nThis library extends `Keypair`, `Transaction` and `TransactionBuilder` from Stellar SDK.\nYou can use it in the same way that you use the Stellar SDK.\n\n### Initialization\n\n``` js\nimport { Keypair, Transaction, TransactionBuilder } from 'stellar-thresh-sig-js';\n```\n### Server Party1 Initialization\n\nBefore use threshold signatures with this library you must initialize [server (party 1)](https://github.com/KZen-networks/thresh-sig-js)\n\n``` js\nimport { ThresholdSigServer } from 'stellar-thresh-sig-js';\nnew ThresholdSigServer().start();\n```\nfrom examples:\n```bash\n$ node ./examples/thresh-sig-server.js\n```\nwith specific port and log mode:\n```bash\n# log options (off, debug, normal, critical)\n$ ROCKET_PORT=8001 ROCKET_LOG=normal node ./examples/thresh-sig-server.js\n```\n\nIf you want to know more information about ENV variables go to [Rocket ENV variables](https://rocket.rs/v0.4/guide/configuration/#environment-variables)\n\n### Keypair\n\nCreate a new random key pair with two-party threshold signature:\n\n``` js\nconst keypair = await Keypair.randomLocalPartyThreshSig();\n// or\nconst keypair = await Keypair.randomLocalPartyThreshSig('http://your-server.com:8000');\n```\n\nExport key pair:\n``` js\nconst keypairJSON = keypair.toJSON();\nawait saveToFileOrDB(keypairJSON);\n```\n\nRestore from json:\n``` js\nconst keypairJSON = await loadFromFileOrDB();\nconst keypair = Keypair.fromJSON(keypairJSON);\n```\n\nSign data:\n``` js\nconst signature = await keypair.sign(data);\n```\nFull example in [./examples/keypair.js](examples/keypair.js)\n```bash\n$ node ./examples/keypair.js\n```\n\n\n### Transaction and TransactionBuilder\n\nUse it in the same way as StellarSdk\n\n``` js\nimport { TransactionBuilder } from 'stellar-thresh-sig-js';\n\nconst transaction = new TransactionBuilder(sender, {\n  fee,\n  networkPassphrase: StellarSdk.Networks.TESTNET,\n})\n  .addOperation(...)\n  .setTimeout(30)\n  .build();\n\n  // the only difference is that sign is an async function.\n  await transaction.sign(senderKeypair);\n```\nFull example in [./examples/send-payment.js](examples/send-payment.js)\n```bash\n$ node ./examples/send-payment.js\n```\n\n## Development\n\nRun all tests:\n\n```bash\n$ npm i\n$ npm test\n```\n\nRun a single test suite:\n\n```bash\n$ npm run mocha -- test/lib/keypair.spec.js\n```\n\nRun a single test (case sensitive):\n\n```bash\n$ npm run mocha -- test/lib/keypair.spec.js --grep 'sign'\n```\n\u003csub\u003e\u003csup\u003eLibrary based on [Two Party signatures JS SDK](https://github.com/KZen-networks/thresh-sig-js)\u003c/sup\u003e\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolcalmi%2Fstellar-thresh-sig-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolcalmi%2Fstellar-thresh-sig-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolcalmi%2Fstellar-thresh-sig-js/lists"}