iotaledger / iotaledger/crypto.rs

Secret/public key wrapper guidelines

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
63
Forks
24
PR merge metrics
No merged PRs in 30d

Description

## Description

Secret/public key wrapper guidelines are needed: naming convention, interoperability traits, security concerns.

## Motivation

Wrappers for asymmetric and secret keys are common (ed25519, x25519, slip10). Often they use different names and argument/result types to do the same task and implement (or not) different traits, this is inconvenient. Also, secret key bytes can be leaked via local variables which is discouraged.

## Requirements

This issue should introduce a guideline (maybe, a wiki page) and check the current implementations for conformance. A draft can be found here: [wrappers-guidelines](https://github.com/iotaledger/crypto.rs/discussions/145).

## Are you planning to do it yourself in a pull request?

Yes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.