mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-02 21:34:16 +00:00
Fix free_trusted_setup
This commit is contained in:
parent
ba44d9e35c
commit
534533061a
@ -33,6 +33,11 @@ KZGSettings* load_trusted_setup_wrap(const char* file) {
|
||||
return out;
|
||||
}
|
||||
|
||||
void free_trusted_setup_wrap(KZGSettings* s) {
|
||||
free_trusted_setup(s);
|
||||
free(s);
|
||||
}
|
||||
|
||||
BLSFieldElement* bytes_to_bls_field_wrap(const uint8_t bytes[]) {
|
||||
BLSFieldElement* out = (BLSFieldElement*)malloc(sizeof(BLSFieldElement));
|
||||
bytes_to_bls_field(out, bytes);
|
||||
|
@ -13,7 +13,7 @@ class ckzg {
|
||||
[DllImport("ckzg.dll", EntryPoint="load_trusted_setup_wrap")]
|
||||
public static extern IntPtr load_trusted_setup(string filename);
|
||||
|
||||
[DllImport("ckzg.dll", EntryPoint="free_trusted_setup")]
|
||||
[DllImport("ckzg.dll", EntryPoint="free_trusted_setup_wrap")]
|
||||
public static extern void free_trusted_setup(IntPtr ts);
|
||||
|
||||
[DllImport("ckzg.dll", EntryPoint="free")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user