wallet-core: remove old+wrong backwards compatibility code path

This commit is contained in:
Florian Dold 2022-03-08 12:32:29 +01:00
parent 3aa0b812f4
commit 3e6f6eb3d7
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -185,21 +185,8 @@ async function computeBackupCryptoData(
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] =
encodeCrock(hashDenomPub(backupDenom.denom_pub));
} else {
throw Error("unsupported exchange protocol version");
}
}
for (const backupReserve of backupExchangeDetails.reserves) {
cryptoData.reservePrivToPub[backupReserve.reserve_priv] = encodeCrock(