Skip to content

Flag to enable &[u8] labels instead of &'static[u8].#73

Open
oleganza wants to merge 5 commits into
dalek-cryptography:masterfrom
runflame:master
Open

Flag to enable &[u8] labels instead of &'static[u8].#73
oleganza wants to merge 5 commits into
dalek-cryptography:masterfrom
runflame:master

Conversation

@oleganza

Copy link
Copy Markdown
Contributor

In Flame, I want to expose raw Transcript API (create, write, read) to smart contract code, so the labels cannot be 'static — they are supposed to be statically baked into contract code, but from the VM point of view that'd be a dynamically allocated string. This PR introduces a feature flag to relax the 'static requirement, but IMHO it could be relaxed outright without a feature flag. Meanwhile I'm using the fork with that flag in my code.

@hdevalence wdyt?

hdevalence and others added 5 commits January 14, 2021 15:31
Merlin's src/lib.rs contains hard-failure for big-endian targets because
I didn't test on them.  The test was added to the CI, but the
hard-failure wasn't removed, and cross now gives a linker error.  So
disable it entirely for now, and continue with the status quo (no
big-endian support).
Update rand_core to 0.6, merlin to 3.0
@burdges

burdges commented Jun 7, 2026

Copy link
Copy Markdown

Just fyi, I addressed this concern using IsLabel and AsLabel in https://docs.rs/ark-transcript/latest/ark_transcript/

It just makes you say that you know you're handling a label, but if your label is &'static [u8] then you do not even bother doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants