AMCL_jll.jl

Author JuliaBinaryWrappers
Popularity
0 Stars
Updated Last
6 Months Ago
Started In
April 2020

AMCL_jll.jl

This is an autogenerated package constructed using BinaryBuilder.jl.

Products

The code bindings within this package are autogenerated from the following Products defined within the build_tarballs.jl file that generated this package:

products = [
    LibraryProduct(["libamcl_pairing_BLS383"], :libamcl_pairing_BLS383),
    LibraryProduct(["libamcl_curve_GOLDILOCKS"], :libamcl_curve_GOLDILOCKS),
    LibraryProduct(["libamcl_mpin_BLS24"], :libamcl_mpin_BLS24),
    LibraryProduct(["libamcl_curve_NUMS256E"], :libamcl_curve_NUMS256E),
    LibraryProduct(["libamcl_bls_BN254"], :libamcl_bls_BN254),
    LibraryProduct(["libamcl_curve_ED25519"], :libamcl_curve_ED25519),
    LibraryProduct(["libamcl_bls_BLS461"], :libamcl_bls_BLS461),
    LibraryProduct(["libamcl_curve_NUMS384E"], :libamcl_curve_NUMS384E),
    LibraryProduct(["libamcl_curve_NUMS512E"], :libamcl_curve_NUMS512E),
    LibraryProduct(["libamcl_mpin_BLS383"], :libamcl_mpin_BLS383),
    LibraryProduct(["libamcl_wcc_BLS48"], :libamcl_wcc_BLS48),
    LibraryProduct(["libamcl_mpin_BLS461"], :libamcl_mpin_BLS461),
    LibraryProduct(["libamcl_curve_BLS48"], :libamcl_curve_BLS48),
    LibraryProduct(["libamcl_curve_SECP256K1"], :libamcl_curve_SECP256K1),
    LibraryProduct(["libamcl_pairing_BLS24"], :libamcl_pairing_BLS24),
    LibraryProduct(["libamcl_curve_BN254CX"], :libamcl_curve_BN254CX),
    LibraryProduct(["libamcl_curve_C41417"], :libamcl_curve_C41417),
    LibraryProduct(["libamcl_mpin_BLS48"], :libamcl_mpin_BLS48),
    LibraryProduct(["libamcl_mpin_BN254"], :libamcl_mpin_BN254),
    LibraryProduct(["libamcl_curve_NIST521"], :libamcl_curve_NIST521),
    LibraryProduct(["libamcl_curve_NUMS512W"], :libamcl_curve_NUMS512W),
    LibraryProduct(["libamcl_pairing_BN254"], :libamcl_pairing_BN254),
    LibraryProduct(["libamcl_curve_NUMS256W"], :libamcl_curve_NUMS256W),
    LibraryProduct(["libamcl_bls_BLS381"], :libamcl_bls_BLS381),
    LibraryProduct(["libamcl_mpin_FP256BN"], :libamcl_mpin_FP256BN),
    LibraryProduct(["libamcl_curve_BLS24"], :libamcl_curve_BLS24),
    LibraryProduct(["libamcl_x509"], :libamcl_x509),
    LibraryProduct(["libamcl_curve_NIST384"], :libamcl_curve_NIST384),
    LibraryProduct(["libamcl_pairing_BLS48"], :libamcl_pairing_BLS48),
    LibraryProduct(["libamcl_bls_BLS24"], :libamcl_bls_BLS24),
    LibraryProduct(["libamcl_bls_FP512BN"], :libamcl_bls_FP512BN),
    LibraryProduct(["libamcl_rsa_3072"], :libamcl_rsa_3072),
    LibraryProduct(["libamcl_bls_FP256BN"], :libamcl_bls_FP256BN),
    LibraryProduct(["libamcl_wcc_BLS383"], :libamcl_wcc_BLS383),
    LibraryProduct(["libamcl_wcc_BN254CX"], :libamcl_wcc_BN254CX),
    LibraryProduct(["libamcl_mpin_BN254CX"], :libamcl_mpin_BN254CX),
    LibraryProduct(["libamcl_rsa_4096"], :libamcl_rsa_4096),
    LibraryProduct(["libamcl_pairing_BLS461"], :libamcl_pairing_BLS461),
    LibraryProduct(["libamcl_mpin_FP512BN"], :libamcl_mpin_FP512BN),
    LibraryProduct(["libamcl_curve_NIST256"], :libamcl_curve_NIST256),
    LibraryProduct(["libamcl_pairing_FP256BN"], :libamcl_pairing_FP256BN),
    LibraryProduct(["libamcl_wcc_FP512BN"], :libamcl_wcc_FP512BN),
    LibraryProduct(["libamcl_bls_BLS383"], :libamcl_bls_BLS383),
    LibraryProduct(["libamcl_curve_BN254"], :libamcl_curve_BN254),
    LibraryProduct(["libamcl_wcc_BLS461"], :libamcl_wcc_BLS461),
    LibraryProduct(["libamcl_curve_C25519"], :libamcl_curve_C25519),
    LibraryProduct(["libamcl_curve_HIFIVE"], :libamcl_curve_HIFIVE),
    LibraryProduct(["libamcl_mpin_BLS381"], :libamcl_mpin_BLS381),
    LibraryProduct(["libamcl_curve_BLS383"], :libamcl_curve_BLS383),
    LibraryProduct(["libamcl_curve_BRAINPOOL"], :libamcl_curve_BRAINPOOL),
    LibraryProduct(["libamcl_pairing_BN254CX"], :libamcl_pairing_BN254CX),
    LibraryProduct(["libamcl_wcc_BN254"], :libamcl_wcc_BN254),
    LibraryProduct(["libamcl_curve_FP256BN"], :libamcl_curve_FP256BN),
    LibraryProduct(["libamcl_curve_BLS381"], :libamcl_curve_BLS381),
    LibraryProduct(["libamcl_core"], :libamcl_core),
    LibraryProduct(["libamcl_curve_ANSSI"], :libamcl_curve_ANSSI),
    LibraryProduct(["libamcl_curve_BLS461"], :libamcl_curve_BLS461),
    LibraryProduct(["libamcl_wcc_FP256BN"], :libamcl_wcc_FP256BN),
    LibraryProduct(["libamcl_bls_BLS48"], :libamcl_bls_BLS48),
    LibraryProduct(["libamcl_curve_NUMS384W"], :libamcl_curve_NUMS384W),
    LibraryProduct(["libamcl_wcc_BLS24"], :libamcl_wcc_BLS24),
    LibraryProduct(["libamcl_curve_FP512BN"], :libamcl_curve_FP512BN),
    LibraryProduct(["libamcl_wcc_BLS381"], :libamcl_wcc_BLS381),
    LibraryProduct(["libamcl_pairing_FP512BN"], :libamcl_pairing_FP512BN),
    LibraryProduct(["libamcl_bls_BN254CX"], :libamcl_bls_BN254CX),
    LibraryProduct(["libamcl_rsa_2048"], :libamcl_rsa_2048),
    LibraryProduct(["libamcl_pairing_BLS381"], :libamcl_pairing_BLS381)
]

Usage example

For example purposes, we will assume that the following products were defined in the imaginary package Example_jll:

products = [
    FileProduct("src/data.txt", :data_txt),
    LibraryProduct("libdataproc", :libdataproc),
    ExecutableProduct("mungify", :mungify_exe)
]

With such products defined, Example_jll would contain data_txt, libdataproc and mungify_exe symbols exported. For FileProduct variables, the exported value is a string pointing to the location of the file on-disk. For LibraryProduct variables, it is a string corresponding to the SONAME of the desired library (it will have already been dlopen()'ed, so typical ccall() usage applies), and for ExecutableProduct variables, the exported value is a function that can be called to set appropriate environment variables. Example:

using Example_jll

# For file products, you can access its file location directly:
data_lines = open(data_txt, "r") do io
    readlines(io)
end

# For library products, you can use the exported variable name in `ccall()` invocations directly
num_chars = ccall((:count_characters, libdataproc), Cint, (Cstring, Cint), data_lines[1], length(data_lines[1]))

# For executable products, you can use the exported variable name as a function that you can call
mungify_exe() do mungify_exe_path
    run(`$mungify_exe_path $num_chars`)
end

Required Packages

No packages found.

Used By Packages