Skip to content

Provide support for static-linking barretenberg #1595

@ludamad

Description

@ludamad

This is a commonly requested feature. We should at the least upload our .a file for different architectures. However the list of architectures is a bit long, and should include ios and android. Luckily since moving to zig cross compiler these are relatively easy to target.

The ideal goal here is to provide people like ZKPassport the ability to stop forking our code, this is related to #1565 as once they have the .a file and our custom bindings they should be able to develop bb-rs without an aztec-packages fork.

From there we should decide if and how we would provide the ability to call these thru FFI in our bb.js stack. Probably leaving this to the end user to use a custom backend (see #1594) is best as we otherwise would need to support NAPI, the React native equivalent (JSI) etc. We can revisit as people hit these needs. Notably Obsidion wallet went ahead and created a JSI interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions