Sorry, but I don't have the programming skills to comment on your project. I will check the responses of other members to see what they say. There are those who know these things. Maybe you talked about it in your thread, but I have to ask, why generate private keys if you can generate 12/24-word seeds? They are longer strings and difficult to write down. Therefore, the possibility to make a mistake is greater compared to a sequence of English words, for example.