argumentcomputer / argumentcomputer/lurk-hs

More robust handling of public parameters

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

Description

I think the following code snipped it problematic, since it rules out programs with public parameters that are shorter than 32 bytes.

```rust
let public_inputs: String = if bit_length > 256 {
// The user has provided the committed values rather than the digest!
// Let's reproduce the digest using the committed values
```

It think, the best solution would be to provide a separate API function for the (probably common) use case when the actual public parameters are provided.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the Rust snippet that branches on bit_length and trace the API path that receives public parameters. Define the separate API entry point for actual public parameters, then verify that values shorter than 32 bytes are accepted while the existing digest-handling behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, rust
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.