Bbs class

A class that provides functionality to create BBS+ proofs and interact with the BBS+ library via FFI (Foreign Function Interface).

The Bbs class acts as a wrapper for interacting with the native BBS+ library, providing convenient methods for cryptographic operations such as proof generation.

Constructors

Bbs.new()

Properties

bbs BbsBindings
FFI bindings for interacting with the native BBS+ library.
final
encryption EncryptionUtils
An instance of EncryptionUtils for utility methods related to encryption.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

blsCreateProofFFI({required Uint8List publicKey, required Uint8List nonce, required Uint8List signature, required List<ProofMessage> messages}) Future<Uint8List>
Creates a BBS+ proof using the BLS public key, nonce, signature, and messages.
blsCreateProofMC({required Uint8List blsPublicKey, required Uint8List nonce, required Uint8List signature, required List<ProofMessage> messages}) Future<Uint8List>
Creates a BBS+ proof using a BLS public key, nonce, signature, and a list of proof messages.
blsPublicToBbsPublicKey(Uint8List blsPublicKey, int messageCount) Uint8List
Converts a BLS public key into a BBS public key.
createSelectiveDisclosureProofBlsFFI(Uint8List publicKey, Uint8List nonce, Uint8List signature, List<Uint8List> messages, Set<int> revealedIndices) Future<String>
Creates a selective disclosure proof using a BLS public key, nonce, signature, and a set of messages.
createSelectiveDisclosureProofBlsMC(Uint8List publicKey, Uint8List nonce, Uint8List signature, List<Uint8List> messages, Set<int> revealedIndices) Future<String>
Creates a selective disclosure proof using a BLS public key, nonce, signature, and a set of messages.
decodeBbsSignature(String bbsSignature) Uint8List
Decodes a Base64 URL-encoded BBS+ signature back into its original binary form.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBbsBlsProofFFI(List<Uint8List> messages, Uint8List publicKey, String bbsSignature, List<int> revealIndex, String id) Future<Proof>
Generates a BbsBls signature proof using FFI for selective message disclosure.
setBbsBlsProofMC(List<Uint8List> messages, Uint8List publicKey, String bbsSignature, List<int> revealIndex, String id) Future<Proof>
Generates a BbsBls signature proof using the BbsFlutter library for selective message disclosure.
throwIfError(int result, Pointer<ExternError> err, String label) → void
Throws an exception if a BBS+ library operation results in an error.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited