Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

keytree: new package for key derivation scheme with Ristretto and Merlin #87

Merged
merged 10 commits into from
Feb 25, 2019

Conversation

oleganza
Copy link
Contributor

This adds a draft of a spec. It's a good new-to-Rust issue to implement (in a separate PR).

@oleganza oleganza mentioned this pull request Feb 15, 2019
15 tasks
keytree/keytree.md Outdated Show resolved Hide resolved
keytree/keytree.md Outdated Show resolved Hide resolved
keytree/keytree.md Outdated Show resolved Hide resolved
```rust
struct Xprv {
scalar: Scalar,
dk: [u8; 32]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, what does the notation on this line mean?

Copy link
Contributor Author

@oleganza oleganza Feb 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i lazily used Rust syntax for fixed-length arrays: [T; N]: N items of type T. u8 is 8-bit unsigned integer aka "byte".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[T] is a type for "slice" that's of a dynamically known size, while [T;N] is an "array" of statically-known size.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nice, thanks. I just got to the arrays section of this ole Rust book


### Generate key

1. Take RNG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remind me what RNG is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random number generator. Yeah, that was a quick draft. Will expand.

Copy link
Contributor

@vickiniu vickiniu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a few questions that I have :)

keytree/keytree.md Show resolved Hide resolved
keytree/keytree.md Outdated Show resolved Hide resolved
keytree/keytree.md Outdated Show resolved Hide resolved
keytree/keytree.md Outdated Show resolved Hide resolved
keytree/keytree.md Outdated Show resolved Hide resolved
@oleganza oleganza force-pushed the oleg/keytree branch 2 times, most recently from c4ee05e to 9952c82 Compare February 22, 2019 22:00
@oleganza oleganza requested review from tessr and vickiniu February 22, 2019 22:12
oleganza and others added 10 commits February 22, 2019 16:02
Co-Authored-By: oleganza <oleganza@gmail.com>
Co-Authored-By: oleganza <oleganza@gmail.com>
Co-Authored-By: oleganza <oleganza@gmail.com>
Co-Authored-By: oleganza <oleganza@gmail.com>
Copy link
Contributor

@vickiniu vickiniu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@oleganza oleganza merged commit d9636ca into main Feb 25, 2019
@oleganza oleganza deleted the oleg/keytree branch February 25, 2019 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants