wallet-core: remove old+wrong backwards compatibility code path
This commit is contained in:
parent
3aa0b812f4
commit
3e6f6eb3d7
@ -185,21 +185,8 @@ async function computeBackupCryptoData(
|
|||||||
coinPub,
|
coinPub,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (
|
|
||||||
LibtoolVersion.compare(backupExchangeDetails.protocol_version, "9")
|
|
||||||
?.compatible
|
|
||||||
) {
|
|
||||||
cryptoData.rsaDenomPubToHash[backupDenom.denom_pub.rsa_public_key] =
|
|
||||||
encodeCrock(hash(decodeCrock(backupDenom.denom_pub.rsa_public_key)));
|
|
||||||
} else if (
|
|
||||||
LibtoolVersion.compare(backupExchangeDetails.protocol_version, "10")
|
|
||||||
?.compatible
|
|
||||||
) {
|
|
||||||
cryptoData.rsaDenomPubToHash[backupDenom.denom_pub.rsa_public_key] =
|
cryptoData.rsaDenomPubToHash[backupDenom.denom_pub.rsa_public_key] =
|
||||||
encodeCrock(hashDenomPub(backupDenom.denom_pub));
|
encodeCrock(hashDenomPub(backupDenom.denom_pub));
|
||||||
} else {
|
|
||||||
throw Error("unsupported exchange protocol version");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (const backupReserve of backupExchangeDetails.reserves) {
|
for (const backupReserve of backupExchangeDetails.reserves) {
|
||||||
cryptoData.reservePrivToPub[backupReserve.reserve_priv] = encodeCrock(
|
cryptoData.reservePrivToPub[backupReserve.reserve_priv] = encodeCrock(
|
||||||
|
Loading…
Reference in New Issue
Block a user