Fix MagicByte null bug in Network, add tests for stealth, add helper method in EncryptedSecret