swanky
A suite of rust libraries for secure multi-party computation
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.4%) to scientific vocabulary
Repository
A suite of rust libraries for secure multi-party computation
Basic Info
Statistics
- Stars: 318
- Watchers: 11
- Forks: 60
- Open Issues: 11
- Releases: 1
Metadata Files
README.md
swanky: A suite of rust libraries for secure computation
swanky provides a suite of rust libraries for doing secure computation.
These libraries are broken into two categories: core and edge.
Core crates are maintained, documented, and tested. If you want to build off a stable foundation of Swanky, then consider building off the core crates. Note that, even the core crates are still research software that shouldn't be deployed to production or trusted with sensitive data. (See "A note on security" below.)
Edge crates may have less extensive testing and documentation than the core crates, and have a lesser stability guarantee.
Core
vectoreyes: Cross-platform SIMD types and functions
Edge
bristol-fashion: A parser for Bristol Fashion circuits.diet-mac-and-cheese: A diet version of the Mac'n'Cheese protocolfancy-garbling: A library for boolean and arithmetic garblinghumidor: A test-bed for Ligero-like protocolsinferno: An implementation of the Limbo zero knowledge proof protocolkeyed_arena: Bump allocator which allows for random access to its allocationsmac-n-cheese-compiler: A tool to compile a zero knowledge circuit to the mac n'cheese IRmac-n-cheese-event-log: Utilities to define metrics for mac n'cheesemac-n-cheese-inspector: A tool to inspect mac n'cheese IR filesmac-n-cheese-ir: The definition of the mac n'cheese IRmac-n-cheese-runner: A tool to proof mac n'cheese IR files in zero-knowledgemac-n-cheese-sieve-parser: A parser for SIEVE IR (a zero knoweldge proof circuit format)mac-n-cheese-vole: An implementation of Vector Oblivious Linear Evaluationmac-n-cheese-wire-map: An implementation of a sparse arraypopsicle: A library for private set intersectionschmivitz: A library for zero-knowledge protocols using VOLE-in-the-headsimple-arith-circuit: Simple arithmetic circuit libraryswanky-adversary: Traits describing MPC adversaries.swanky-aes-hash: Correlation-robust hashing based on fixed-key AES.swanky-aes-rng: A random number generator based on AES-CTR.swanky-authenticated-bits: Authenticated bits, shares, and AND triplesswanky-bit-matrix-transpose: Transpose a bit matrixswanky-block: 128-, 256-, and 512-bit data blocks.swanky-bytearray-utils: Functions for working with bits and bytearrays.swanky-channel: A channel abstraction to let users avoid manual flushingswanky-channel-legacy: A (legacy) channel abstraction; useswanky-channelfor new code!swanky-cointoss: A simple coin-tossing protocol.swanky-deprecated-bitwise-utils: [DEPRECATED] Old bitwise utilities from ocelotswanky-f-eq: Two-party functionality for checking equality of inputs in an oblivious manner.swanky-field: Definitions of the coreFiniteFieldandFiniteRingtraitsswanky-field-binary: Binary finite (extension) fieldsswanky-field-f61p: An implementation ofGF(2^61-1)swanky-field-ff-primes: Finite field implementations for large prime fieldsswanky-field-fft: FFT implementations for finite fieldsswanky-field-test: Utilitites for testing correctness of finite field implementationsswanky-flatbuffer-build: Tooling to automate compiling flatbuffer schemasswanky-ocelot-error: [DEPRECATED] An error type used by crates formerly contained in ocelotswanky-oprf-kkrt: An implementation of the kkrt OPRF protocolswanky-oprf-kmprt: An implementation of the KMPRT OPRF protocolswanky-oprf-traits: Base traits impl-ed by all our OPRF implementationsswanky-ot-alsz-kos: Oblivious transfer implementations for the ALSZ and KOS protocolsswanky-ot-chou-orlandi: An implementation of the Chou-Orlandi OT protocolswanky-ot-dummy: Implementation of an insecure OT protocol for testing purposesswanky-ot-noar-pinkas: An implementation of the Noar-Pinkas OT protocolswanky-ot-test: Testing utilities for oblivious transfer protocolsswanky-ot-traits: Base traits for Obliivious Transfer protocolsswanky-party: Support for types indexed by a party.swanky-polynomial: Support for various representations of polynomials over finite fieldsswanky-serialization: Traits and utilities for compact serialization into a canonical byte representationswanky-svole-wykw: An implementation of the WYKW svole protocolweb-mac-n-cheese-wasm: Web Mac'n'Cheese, the wasm partweb-mac-n-cheese-websocket: Web Mac'n'Cheese, the websocket partzkv: Zero knowledge proofs for verilog files generated using saw / abc <!-- END THIS SECTION IS AUTOGENERATED BY ./swanky readme gen-crate-list -->
A note on security
2024-02-09 Projection gates in arithmetic garbled circuits have a proven security vulnerability in their design. The issue affects the fancy-garbling library and its dependencies (including popsicle). We are currently investigating the impact this bug has on Arithmetic Garbling (CRT) in swanky.
swanky is currently research software. Do not deploy it in production, or trust
it with sensitive data.
Please reach out to us at swanky@galois.com if you're interested in using Swanky in a production setting.
Using swanky
Preferred Way
The preferred way to use swanky is to fork this monorepo, and add your code
to your fork. This approach makes it easy for your code to inherit the
configuration of the swanky repo.
Alternative Way
It is also possible to use swanky as traditional Rust crates. The downside of
this approach is that you won't automatically get the configuration of the
swanky repo. swanky is only tested against the pinned rust version in the
repository and the pinned dependency versions.
To use a swanky crate in your project, add the following line to the
[dependencies] entry in Cargo.toml:
<crate-name> = { git = "https://github.com/GaloisInc/swanky", rev = "xxxxxx" }
where <crate-name> is one of the crates listed above and rev is the
particular revision to use.
Note: As swanky is currently considered prototype software, it is best to pin
a particular revision of swanky, as there is no guarantee that future versions
of swanky will maintain backwards compatibility.
It is also advisable to copy over swanky's .cargo/config file, and to enable
LTO in your release builds (lto = true in your Cargo.toml file).
Software Requirements
To compile Swanky, you should install and use Rust via rustup. The swanky repo will direct rustup to use the correct version of Rust.
The ./swanky tool automates some tasks in the codebase. For example, ./swanky lint will run the Swanky linting checks. In order to use this tool, you need to install the Nix package manager. You'll also need a python3 installation (no packages other than the standard library are required).
Citing swanky
If you use swanky in your academic paper, please cite it as follows:
@misc{swanky,
author = {{Galois, Inc.}},
title = {{swanky}: A suite of rust libraries for secure computation},
howpublished = {\url{https://github.com/GaloisInc/swanky}},
year = 2019,
}
License
MIT License
Contact
You can contact the swanky team at swanky@galois.com.
Acknowledgments
This material is based upon work supported in part by ARO, SSC Pacific, IARPA and DARPA under Contract Nos. W911NF-15-C-0227, N66001-15-C-4070, 2019-1902070006, and HR001120C0085.
Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the ARO, SSC Pacific, IARPA and DARPA. Distribution Statement ``A'' (Approved for Public Release, Distribution Unlimited).
Copyright © 2019-2024 Galois, Inc.
Owner
- Name: Galois, Inc.
- Login: GaloisInc
- Kind: organization
- Location: Portland, OR
- Website: http://galois.com
- Repositories: 450
- Profile: https://github.com/GaloisInc
Citation (CITATION.cff)
cff-version: 1.2.0
title: >-
swanky: A suite of rust libraries for secure computation
message: >-
If you use this software in your academic paper, please cite it as follows.
type: software
authors:
- given-names: 'Galois, Inc.'
email: swanky@galois.com
url: "https://github.com/GaloisInc/swanky"
GitHub Events
Total
- Issues event: 8
- Watch event: 47
- Member event: 1
- Issue comment event: 8
- Push event: 21
- Pull request event: 11
- Fork event: 7
Last Year
- Issues event: 8
- Watch event: 47
- Member event: 1
- Issue comment event: 8
- Push event: 21
- Pull request event: 11
- Fork event: 7
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 24
- Total pull requests: 20
- Average time to close issues: 9 months
- Average time to close pull requests: 4 months
- Total issue authors: 14
- Total pull request authors: 11
- Average comments per issue: 1.38
- Average comments per pull request: 0.75
- Merged pull requests: 8
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 8
- Pull requests: 10
- Average time to close issues: 25 days
- Average time to close pull requests: 3 days
- Issue authors: 3
- Pull request authors: 2
- Average comments per issue: 1.5
- Average comments per pull request: 0.2
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- themighty1 (3)
- adust09 (3)
- robinhundt (2)
- Isweet (2)
- amaloz (2)
- nilmemo (1)
- marvellous987 (1)
- Ra1issa (1)
- shuangyichen (1)
- michaelwooley (1)
- survived (1)
- dnat112 (1)
- YANCC139 (1)
- ldr709 (1)
Pull Request Authors
- adust09 (10)
- rot256 (2)
- rw0x0 (2)
- nfk93 (1)
- Isweet (1)
- amaloz (1)
- Ra1issa (1)
- ripdajacker (1)
- jonahweissman (1)
- n-prat (1)
- alpnn (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
- Total downloads: unknown
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 2
proxy.golang.org: github.com/GaloisInc/swanky
- Documentation: https://pkg.go.dev/github.com/GaloisInc/swanky#section-documentation
- License: mit
-
Latest release: v0.6.0
published almost 2 years ago
Rankings
proxy.golang.org: github.com/galoisinc/swanky
- Documentation: https://pkg.go.dev/github.com/galoisinc/swanky#section-documentation
- License: mit
-
Latest release: v0.6.0
published almost 2 years ago
Rankings
Dependencies
- criterion 0.3.4 development
- crossbeam 0.8.0 development
- itertools 0.10.0
- rand 0.7
- regex 1.4.3
- serde 1.0.123
- serde_json 1.0.58
- criterion 0.2 development
- curve25519-dalek 2
- libc 0.2
- rand 0.7
- clap 2.33.0 development
- criterion 0.2.11 development
- serde 1.0.92 development
- itertools 0.8
- openssl 0.10.28
- rand 0.7
- serde 1.0.117
- serde_json 1.0.59
- sha2 0.8
- criterion 0.2 development
- hex 0.3 development
- curve25519-dalek 2
- rand 0.7
- rand_core 0.5
- serde 1
- sha2 0.8