hdevalence / hdevalence/libmerlin

Make the Transcript and RNG structs opaque.

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8
Forks
2
PR merge metrics
No merged PRs in 30d

Description

One way to do this is to return a pointer to an opaque struct. This is a little tricky since the code has to work without `malloc`, so I think doing this would require using `alloca`.

Another option would be to define sizes for the types and require that callers allocate a slot of that size.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.