dashhive / bls

MIT License
0 stars 0 forks source link

subcommand or flag to generate a valid seed #11

Open coolaj86 opened 1 year ago

coolaj86 commented 1 year ago

Needed Documentation

Are all random bytes of the necessary bitlength valid seeds?

What are the min and max widths?

Can a seed be used to generate multiple keys? Do we need an index option to generate the nth key?

bls -n 3
[
  { ... }, { ... }, { ... }
]

```sh
bls -i 5 -n 3 --seed <my-hex-seed>
[
  { ... }, { ... }, { ... }
]

Corresponding CLI capabilities

Maybe bls --generate-seed to generate a valid seed within the specified parameters?

wmerfalen commented 1 year ago

Can a seed be used to generate multiple keys?

We can derive child keys from parent keys

wmerfalen commented 1 year ago

What are the min and max widths?

From what I can tell, you can only pass in 32 bytes for a seed

wmerfalen commented 1 year ago

@coolaj86 this is pushed to main