Skip to content

Restrict questionable Secret/PublicKeys #1837

Closed as not planned
Closed as not planned
@daxpedda

Description

@daxpedda

Currently the scalar zero is not allowed to be a SecretKey and the identity point is not allowed to be a PublicKey. This makes sense not only because the specification doesn't allow it, but because any algorithm/protocol would not work correctly.

However, SecretKey is allowed to be 1, which generates a PublicKey which is the generator point. It might be reasonable to restrict those values as well.

This would make interacting with NonZeroScalar and NonIdentity difficult and would at least partly invalidate their functionality, unless they also don't allow these values.

As discussed in #1832.

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