fhel 0.0.1-dev-1 copy "fhel: ^0.0.1-dev-1" to clipboard
fhel: ^0.0.1-dev-1 copied to clipboard

Dart library for Fully Homomorphic Encryption

Implementation Layer #

The adapter design of this library interfaces with the abstraction layer, README.md. Using dart:ffi, Dart can execute C functions, reference memory addresses of object, and convert primitive data types.


classDiagram
    class Plaintext {
        String text
        Backend backend
        Pointer obj

        Plaintext(Backend, String)
        Plaintext(Backend, Pointer)
    }

    class Ciphertext {
        Backend backend
        Pointer library

        Ciphertext(Backend)
    }

    class Backend {
        int value
        String name
        
        Backend(String)
    }

    class Scheme {
        int value
        String name

        Scheme(String)
    }

    Plaintext --> FHE
    Ciphertext --> FHE
    Backend --> FHE
    Scheme --> FHE

    class FHE {
        Backend backend
        Scheme scheme
        Pointer library

        FHE(String)

        FHE(String, String)

        genContext(Map): void
        genKeys()
        encrypt(Plaintext): Ciphertext
        decrypt(Ciphertext): Plaintext
        add(Ciphertext, Ciphertext): Ciphertext
    }

Legend:

  • Plaintext: Represents a plaintext value and provides a to_string() method to convert it to a string.

  • Ciphertext: Represents an encrypted ciphertext value and provides a size() method to get its size.

  • FHE: Models the desired backend FHE library and encryption schemas. Enables callers execute basic FHE functionalities.

1
likes
0
pub points
26%
popularity

Publisher

verified publisherjeffmur.dev

Dart library for Fully Homomorphic Encryption

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter, path

More

Packages that depend on fhel