+
Skip to content

Fail early when exceeding maximum lengths #23

@mappum

Description

@mappum

We use pretty conservative maximum lengths (255 bytes for keys, 65,535 bytes for values) for simplicity, compactness in the encoding, and to encourage efficient usage (large keys degrade performance and take up a lot of space in proofs). I could see these limits eventually changing if really necessary, but I'd like to keep them for now.

However, the limits are currently only enforced by panicking when encoding nodes - we should have earlier checks for these limits which error rather than panic.

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载