nervosnetwork / ckb-auth

A consolidated library featuring numerous blockchains authentication techniques on CKB-VM
MIT License
9 stars 12 forks source link

Support prefilled data in dynamic library #41

Closed XuJiandong closed 7 months ago

XuJiandong commented 7 months ago

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.