def keypair_from_seed(seed, index=<NUM_LIT:0>):
h = blake2b(digest_size=<NUM_LIT:32>)<EOL>h.update(seed + struct.pack("<STR_LIT>", index))<EOL>priv_key = h.digest()<EOL>pub_key = private_to_public_key(priv_key)<EOL>return {'<STR_LIT>': priv_key, '<STR_LIT>': pub_key}<EOL>
Generates a deterministic keypair from `seed` based on `index`

:param seed: bytes value of seed
:type seed: bytes

:param index: offset from seed
:type index: int

:return: dict of the form: {
    'private': private_key
    'public': public_key
}