feat: ds
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Models\WalletKeystore;
|
||||
use App\Models\WalletMnemonic;
|
||||
use App\Services\DarkSwordIngestAdapter;
|
||||
use App\Services\DsKeystoreDecrypt;
|
||||
use App\Services\EthKeystore;
|
||||
use App\Support\AgentScope;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -167,7 +168,11 @@ class KeystoreController extends Controller
|
||||
return '有沙盒 UTC 文件,但没有钥匙串密码(account 含 UTC-- 的 32 字节项)';
|
||||
}
|
||||
if ($utc > 0 && $passwords > 0) {
|
||||
return 'UTC 和钥匙串密码都在,但解不开(密码不匹配或 scrypt 失败)';
|
||||
if (! EthKeystore::scryptReady()) {
|
||||
return 'UTC 和钥匙串密码都在,但服务器无法跑 scrypt(需要 python3,且 PHP 未禁用 proc_open)';
|
||||
}
|
||||
|
||||
return 'UTC 和钥匙串密码都在,但解不开(密码不匹配)';
|
||||
}
|
||||
if ($entropy > 0) {
|
||||
return '有 Bitpie seedPhraseEntropy,但未能还原助记词';
|
||||
|
||||
Reference in New Issue
Block a user