Skip to content

dev: group the crypto modules by scheme #920

Description

@0xisk

contracts/src/crypto/ holds EcdhMask, ElGamal and Ecdsa flat at the root, while crypto/hash/ and crypto/curves/bls12_381/ (#913) are grouped, and the Ecdh split in #866 adds a fourth root module. Nothing in the tree says which module is an encryption scheme, a signature scheme or a key agreement, and the ECIES-shaped EcdhMask sits next to a signature.

Group the modules by scheme, as SEC 1 does: crypto/encryption/ (§5, EcdhMask, ElGamal), crypto/signature/ (§4, Ecdsa), crypto/key_agreement/ (§6, Ecdh), each with its test/ beside it like crypto/hash/. Import paths change; circuits and artifacts do not.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions