remove excessive logging
This commit is contained in:
parent
57d7c988b3
commit
270d84d611
@ -1068,19 +1068,20 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async revokeDenomination(denomPubHash: string) {
|
async revokeDenomination(denomPubHash: string) {
|
||||||
if (this.isRunning()) {
|
if (!this.isRunning()) {
|
||||||
throw Error("exchange must be stopped when revoking denominations");
|
throw Error("exchange must be running when revoking denominations");
|
||||||
}
|
}
|
||||||
await runCommand(
|
await runCommand(
|
||||||
this.globalState,
|
this.globalState,
|
||||||
"exchange-keyup",
|
"exchange-offline",
|
||||||
"taler-exchange-keyup",
|
"taler-exchange-offline",
|
||||||
[
|
[
|
||||||
"-c",
|
"-c",
|
||||||
this.configFilename,
|
this.configFilename,
|
||||||
...this.timetravelArgArr,
|
...this.timetravelArgArr,
|
||||||
"--revoke",
|
"revoke-denomination",
|
||||||
denomPubHash,
|
denomPubHash,
|
||||||
|
"upload",
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -408,17 +408,12 @@ export class CryptoImplementation {
|
|||||||
|
|
||||||
const planchetsForGammas: RefreshPlanchet[][] = [];
|
const planchetsForGammas: RefreshPlanchet[][] = [];
|
||||||
|
|
||||||
logger.trace("starting RC computation");
|
|
||||||
|
|
||||||
for (let i = 0; i < kappa; i++) {
|
for (let i = 0; i < kappa; i++) {
|
||||||
const transferKeyPair = setupRefreshTransferPub(
|
const transferKeyPair = setupRefreshTransferPub(
|
||||||
decodeCrock(refreshSessionSecretSeed),
|
decodeCrock(refreshSessionSecretSeed),
|
||||||
i,
|
i,
|
||||||
);
|
);
|
||||||
sessionHc.update(transferKeyPair.ecdhePub);
|
sessionHc.update(transferKeyPair.ecdhePub);
|
||||||
logger.trace(
|
|
||||||
`HASH transfer_pub ${encodeCrock(transferKeyPair.ecdhePub)}`,
|
|
||||||
);
|
|
||||||
transferPrivs.push(encodeCrock(transferKeyPair.ecdhePriv));
|
transferPrivs.push(encodeCrock(transferKeyPair.ecdhePriv));
|
||||||
transferPubs.push(encodeCrock(transferKeyPair.ecdhePub));
|
transferPubs.push(encodeCrock(transferKeyPair.ecdhePub));
|
||||||
}
|
}
|
||||||
@ -427,17 +422,11 @@ export class CryptoImplementation {
|
|||||||
for (let i = 0; i < denomSel.count; i++) {
|
for (let i = 0; i < denomSel.count; i++) {
|
||||||
const r = decodeCrock(denomSel.denomPub);
|
const r = decodeCrock(denomSel.denomPub);
|
||||||
sessionHc.update(r);
|
sessionHc.update(r);
|
||||||
logger.trace(`HASH new_coins ${encodeCrock(r)}`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sessionHc.update(decodeCrock(meltCoinPub));
|
sessionHc.update(decodeCrock(meltCoinPub));
|
||||||
logger.trace(`HASH coin_pub ${meltCoinPub}`);
|
|
||||||
sessionHc.update(amountToBuffer(valueWithFee));
|
sessionHc.update(amountToBuffer(valueWithFee));
|
||||||
logger.trace(
|
|
||||||
`HASH melt_amount ${encodeCrock(amountToBuffer(valueWithFee))}`,
|
|
||||||
);
|
|
||||||
|
|
||||||
for (let i = 0; i < kappa; i++) {
|
for (let i = 0; i < kappa; i++) {
|
||||||
const planchets: RefreshPlanchet[] = [];
|
const planchets: RefreshPlanchet[] = [];
|
||||||
for (let j = 0; j < newCoinDenoms.length; j++) {
|
for (let j = 0; j < newCoinDenoms.length; j++) {
|
||||||
@ -465,26 +454,13 @@ export class CryptoImplementation {
|
|||||||
coinEvHash: encodeCrock(hash(ev)),
|
coinEvHash: encodeCrock(hash(ev)),
|
||||||
};
|
};
|
||||||
planchets.push(planchet);
|
planchets.push(planchet);
|
||||||
|
|
||||||
logger.trace(
|
|
||||||
`GENERATE i=${i} coin=${coinNumber} m=${encodeCrock(
|
|
||||||
pubHash,
|
|
||||||
)} bf=${encodeCrock(blindingFactor)} dp=${encodeCrock(
|
|
||||||
denomPub,
|
|
||||||
)} ev=${encodeCrock(ev)}`,
|
|
||||||
);
|
|
||||||
|
|
||||||
sessionHc.update(ev);
|
sessionHc.update(ev);
|
||||||
logger.trace(`HASH ev ${encodeCrock(ev)}`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
planchetsForGammas.push(planchets);
|
planchetsForGammas.push(planchets);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sessionHash = sessionHc.finish();
|
const sessionHash = sessionHc.finish();
|
||||||
|
|
||||||
logger.trace(`RHASH ${encodeCrock(sessionHash)}`);
|
|
||||||
|
|
||||||
const confirmData = buildSigPS(SignaturePurpose.WALLET_COIN_MELT)
|
const confirmData = buildSigPS(SignaturePurpose.WALLET_COIN_MELT)
|
||||||
.put(sessionHash)
|
.put(sessionHash)
|
||||||
.put(decodeCrock(meltCoinDenomPubHash))
|
.put(decodeCrock(meltCoinDenomPubHash))
|
||||||
|
@ -524,12 +524,6 @@ export interface BackupTip {
|
|||||||
finish_clock?: ClockStamp;
|
finish_clock?: ClockStamp;
|
||||||
finish_is_failure?: boolean;
|
finish_is_failure?: boolean;
|
||||||
|
|
||||||
finish_info?: {
|
|
||||||
timestamp: Timestamp;
|
|
||||||
clock: ClockStamp;
|
|
||||||
failure: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The tipped amount.
|
* The tipped amount.
|
||||||
*/
|
*/
|
||||||
@ -579,7 +573,7 @@ export enum BackupRefreshReason {
|
|||||||
*/
|
*/
|
||||||
export interface BackupRefreshSession {
|
export interface BackupRefreshSession {
|
||||||
/**
|
/**
|
||||||
* Hased denominations of the newly requested coins.
|
* Hashed denominations of the newly requested coins.
|
||||||
*/
|
*/
|
||||||
new_denoms: BackupDenomSel;
|
new_denoms: BackupDenomSel;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user