8000 [zk-token-sdk] Discrete log computation can panic if `compression_batch_size` is set to 0 (ottersec #3) · Issue #33506 · solana-labs/solana · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
[zk-token-sdk] Discrete log computation can panic if compression_batch_size is set to 0 (ottersec #3) #33506
Closed
@samkim-crypto

Description

@samkim-crypto

Problem

The discrete log computation setting has an optimization parameter compression_batch_size, which specifies how fast the discrete log algorithm traverses a list of potential solutions for decryption. The default is set to 32.

If the compression_batch_size parameter is set to 0, the program panics.

Note: This is client side logic and does not impact on-chain programs.

Proposed Solution

Add a check on compression_batch_size in the discrete log logic so that the program errors gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0