BbsBindings class

A class providing FFI bindings for interacting with the native BBS+ cryptographic library.

The BbsBindings class acts as a Dart wrapper around the native BBS+ functions, enabling cryptographic operations like proof creation, public key conversion, and more through Foreign Function Interface (FFI).

This class initializes and exposes native library functions that are dynamically loaded at runtime from a DynamicLibrary. Each native function is represented by a typedef indicating its signature and an associated Dart function for easier use.

Constructors

BbsBindings.new(DynamicLibrary _lib)
Initializes a new instance of BbsBindings using the provided dynamic library.

Properties

bbsCreateProofContextAddProofMessageBytes BbsCreateProofContextAddProofMessageBytes
Adds a proof message to the proof creation context.
latefinal
bbsCreateProofContextFinish BbsCreateProofContextFinish
Finalizes the BBS proof creation process.
latefinal
bbsCreateProofContextInit BbsCreateProofContextInit
Initializes the BBS proof creation context.
latefinal
bbsCreateProofContextSetNonceBytes BbsCreateProofContextSetNonceBytes
Sets the nonce bytes for the BBS proof creation context.
latefinal
bbsCreateProofContextSetPublicKey BbsCreateProofContextSetPublicKey
Sets the public key for the BBS proof creation context.
latefinal
bbsCreateProofContextSetSignature BbsCreateProofContextSetSignature
Sets the signature for the BBS proof creation context.
latefinal
bbsCreateProofContextSize BbsCreateProofContextSize
Retrieves the size of the BBS proof creation context.
latefinal
blsGenerateG2Key BlsGenerateG2Key
Generates a BLS G2 keypair.
latefinal
blsPublicKeyToBbsKey BlsPublicKeyToBbsKey
Converts a BLS public key to a BBS+ public key.
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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