While a dynamic library is being used with ckb-auth, the stack memory is limited. Some data, like the secp256k1 precomputed table, is too large to fit into the stack. Here, we provide a method (ckb_auth_prepare) to allocate this memory from the caller. The caller can provide this memory either from global variables or a memory allocator.
While a dynamic library is being used with ckb-auth, the stack memory is limited. Some data, like the secp256k1 precomputed table, is too large to fit into the stack. Here, we provide a method (ckb_auth_prepare) to allocate this memory from the caller. The caller can provide this memory either from global variables or a memory allocator.