Skip to content

Run-time errors on OSX #13

@ghost

Description

I'm trying to compile and run this on OSX.

I can compile fine. However, I'm getting the following errors when I go to run ("Single payment in and single payment out"):

terminating with uncaught exception of type std::invalid_argument: libff::get_root_of_unity: expected n == (1u << logn)

node index.js startBalance=10000

Please select an option:
1) Single payment in and single payment out
2) Multiple payments in and multiple payments out
3) Simulation of an RTGS payment node
0) Quit
prompt: option:  1

The provingKey and verificationKey need to be generated

libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: libff::get_root_of_unity: expected n == (1u << logn)

Loading proving key from file.  This will take a few seconds
..payment_in_out_generate_proof(91763,0x7fff9d3e33c0) malloc: *** mach_vm_map(size=1125876303986688) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

.........................................................................................

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions