Skip to content

Commit

Permalink
Make crypto.rs into a module and split into files. (#3276)
Browse files Browse the repository at this point in the history
## Motivation

Soon I'll be adding a new signature scheme (secp256k1) and I thought
`crypto.rs` started being too big and too generic. It'll be more
managable to have different signature schemes and hashing in its
respective files.

## Proposal

Turn `crypto.rs` file into a `crypto` module and extract code to
separate files for:
- `CryptoHash` as `hash.rs`
- `Signature`as `signature.rs`
- `KeyPair` and `PublicKey` as `keypair.rs`

## Test Plan

N/A

## Release Plan

- Nothing to do

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
  • Loading branch information
deuszx authored Feb 10, 2025
1 parent 62c3b0c commit f4dd965
Show file tree
Hide file tree
Showing 7 changed files with 892 additions and 845 deletions.
Loading

0 comments on commit f4dd965

Please sign in to comment.