You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ Test C++ SDK Recovery Phrase and ED25519 Key Generation Compatibility with Java SDK
packageorg.example;
importcom.hedera.hashgraph.sdk.*;
publicclassMneumonicExample {
publicstaticvoidmain(String[] args) throwsBadMnemonicException {
//This 12 word recovery phrase string was generated from the c++ sdkMnemonicmnemonic1 = Mnemonic.fromString("soccer loan bomb yard accuse doctor man mean lawn wing swift bread");
//The private key at index 0 generated by the c++ SDKPrivateKeycppPrivateKey0 = PrivateKey.fromString("302E020100300506032B657004220420BA36ED3F60E3DA30B5DB6215461FAFFC2FCD066F385FD2261F74AB4E174E4591");
//Generate ED25519 private key at index 0PrivateKeyprivateKey0 = mnemonic1.toStandardEd25519PrivateKey("",0);
System.out.println("PrivateKey0 (c++): " + cppPrivateKey0);
System.out.println("PrivateKey0 (jav): " + privateKey0);
}
}
Generating recovery phrases and keys should be compatible with other SDKs.
The text was updated successfully, but these errors were encountered: