-
Notifications
You must be signed in to change notification settings - Fork 61
keytree: new package for key derivation scheme with Ristretto and Merlin #87
Conversation
```rust | ||
struct Xprv { | ||
scalar: Scalar, | ||
dk: [u8; 32] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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".
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
keytree/keytree.md
Outdated
|
||
### Generate key | ||
|
||
1. Take RNG |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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 :)
c4ee05e
to
9952c82
Compare
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>
9a4f317
to
b5fe704
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This adds a draft of a spec. It's a good new-to-Rust issue to implement (in a separate PR).