not really sure what’s going on with my BIP38 code... had some tests on it but it’s not matching up. I’m using Cyberchef for the scrypt function and trying to do AES256 encryptions but can’t get derivedhalf1 and derivedhalf2 calculated right. tried so many combos, still nothing. any tips?
Sounds like a classic case of debugging trouble. It’s hard to pinpoint the issue without checking your code directly. Maybe check out a proper BIP38 implementation in C# for reference or hunt down a Python version on GitHub. That way you can compare how they handle those intermediary values like factorb and the AES results. Might help you figure out where you went wrong.