Context: For testing, it's worth using deterministic keys, but the API for passing a seed is a bit annoying because you have to craft a buffer yourself and it has to be 32 bytes long.
Solution: this PR allows the seed argument of generate(curve, seed, feedFormat) to be a string, which is then used to produce a 32-byte seed buffer regardless of the size of the seed string.
Context: For testing, it's worth using deterministic keys, but the API for passing a
seed
is a bit annoying because you have to craft a buffer yourself and it has to be 32 bytes long.Solution: this PR allows the
seed
argument ofgenerate(curve, seed, feedFormat)
to be a string, which is then used to produce a 32-byte seed buffer regardless of the size of the seed string.