Add undocumented pragma which workarounds Nim compiler's issue with C code generation.
This commit is contained in:
parent
d7511cd728
commit
9b5898f232
|
@ -58,19 +58,19 @@ type
|
||||||
|
|
||||||
# A basic blob data.
|
# A basic blob data.
|
||||||
KzgBlob* {.importc: "Blob",
|
KzgBlob* {.importc: "Blob",
|
||||||
header: "c_kzg_4844.h".} = object
|
header: "c_kzg_4844.h", completeStruct.} = object
|
||||||
bytes*: array[KzgBlobSize, uint8]
|
bytes*: array[KzgBlobSize, uint8]
|
||||||
|
|
||||||
# An array of 48 bytes. Represents an untrusted
|
# An array of 48 bytes. Represents an untrusted
|
||||||
# (potentially invalid) commitment/proof.
|
# (potentially invalid) commitment/proof.
|
||||||
KzgBytes48* {.importc: "Bytes48",
|
KzgBytes48* {.importc: "Bytes48",
|
||||||
header: "c_kzg_4844.h".} = object
|
header: "c_kzg_4844.h", completeStruct.} = object
|
||||||
bytes*: array[48, uint8]
|
bytes*: array[48, uint8]
|
||||||
|
|
||||||
# An array of 32 bytes. Represents an untrusted
|
# An array of 32 bytes. Represents an untrusted
|
||||||
# (potentially invalid) field element.
|
# (potentially invalid) field element.
|
||||||
KzgBytes32* {.importc: "Bytes32",
|
KzgBytes32* {.importc: "Bytes32",
|
||||||
header: "c_kzg_4844.h".} = object
|
header: "c_kzg_4844.h", completeStruct.} = object
|
||||||
bytes*: array[32, uint8]
|
bytes*: array[32, uint8]
|
||||||
|
|
||||||
# A trusted (valid) KZG commitment.
|
# A trusted (valid) KZG commitment.
|
||||||
|
|
Loading…
Reference in New Issue