Skip to content

An FFI wrapper around the implementation of BBS+ signatures in Ursa

License

Notifications You must be signed in to change notification settings

rkxx/ffi-bbs-signatures

 
 

Repository files navigation

Mattr logo

BBS Signature FFI Wrapper

This repository is home to a foreign function interface (FFI) wrapper around the Rust based bbs crate maintained by the Hyperledger Ursa project.

BBS+ Signatures are a digital signature algorithm originally born from the work on Short group signatures by Boneh, Boyen, and Shachum which was later improved on in Constant-Size Dynamic k-TAA as BBS+ and touched on again in section 4.3 in Anonymous Attestation Using the Strong Diffie Hellman Assumption Revisited .

BBS+ Signatures require a pairing-friendly curve, this library includes support for BLS12-381.

BBS+ Signatures allow for multi-message signing whilst producing a single output signature. With a BBS signature, a proof of knowledge based proof can be produced where only some of the originally signed messages are revealed at the discretion of the prover.

Supported Environments

Every release of this repository publishes a new github release including publishing the platform specific artifacts required to run the library in different environments. See the release process for more details on this process

Getting started

This repository makes use of Yarn to manage the dependencies related to the development environment

To install the development dependencies run

yarn install --frozen-lockfile

To build the library for all available platforms run

yarn build

Available wrappers

.NET C# wrapper

./wrappers/dotnet

Java wrapper

./wrappers/java

Objective-C wrapper

./wrappers/obj-c

Python wrapper

./wrappers/python

Each wrapper has individual documentation:

Project Structure

├── docs
│   └─ {file_name.md}
│
│── scripts                 # Bash scripts for building static/dynamic rust libs
│── src                     # Rust Bbs Signatures wrapper
├── wrappers                # Individual wrapper source code
│   └─ {wrapper_name}
│       ├── README.md
│       └─ {src files}
│
├── README.md
└── CHANGELOG.md

Contributing

Read our contributing guide to learn about our development process.

About

An FFI wrapper around the implementation of BBS+ signatures in Ursa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 18.4%
  • Rust 18.4%
  • C# 18.3%
  • Python 16.7%
  • Java 12.8%
  • C 7.5%
  • Other 7.9%