Function KeyPair.fromSeed

Create a keypair from a SecretKey

static KeyPair fromSeed (
  const(SecretKey) seed
) nothrow @nogc @safe;

Example

immutable seedStr = `SDV3GLVZ6W7R7UFB2EMMY4BBFJWNCQB5FTCXUMD5ZCFTDEVZZ3RQ2BZI`;
KeyPair kp = KeyPair.fromSeed(SecretKey.fromString(seedStr));
assert(kp.secret.toString(PrintMode.Clear) == seedStr,
    kp.secret.toString(PrintMode.Clear));