Generating hierarchical deterministic ed25519 keys in Java/Kotlin

I am looking to generate hd keys of the ed25519 spec in java/kotlin. I am aware of libraries like stellar-hd-wallet that does the same in javascript. I am generating a new mnemonic using bitcoinj as follows val params = TestNet3Params.get() val wallet = Wallet.createDeterministic(params, Script.ScriptType.P2PKH) val seed: DeterministicSeed = wallet.keyChainSeed println(“mnemonicCode: “+ seed.mnemonicCode) I want…

Details

C++ unordered_map emplace() function throwing seg fault and I have no idea why

I am getting a seg fault while using std::unordered_map::emplace(). Here is the minimal reproducible example: #include <iostream> #include <string> #include <unordered_map> using namespace std; class WordTable { public: WordTable() { total = 0; } ~WordTable() {} void addWord(const string word, const int incr = 1) { cout << “begin emplace” << endl; table.emplace(word, Node()); //this…

Details