more codespell
This commit is contained in:
parent
6c3cfa9be7
commit
905be0124a
@ -45,7 +45,7 @@ If the above parameters have an optimal assignment, then replacing
|
|||||||
v'[x] := 0
|
v'[x] := 0
|
||||||
gives another optimal solution, as otherwise we'd get a better one for the first situation.
|
gives another optimal solution, as otherwise we'd get a better one for the first situation.
|
||||||
|
|
||||||
There is however no assurence that t[x] = price mod v[x] for some x in D, so nievely such solutions give you running times like O(price * |D|), which kinda sucks actually. Just one simplified example :
|
There is however no assurence that t[x] = price mod v[x] for some x in D, so naively such solutions give you running times like O(price * |D|), which kinda sucks actually. Just one simplified example :
|
||||||
http://www.codeproject.com/Articles/31002/Coin-Change-Problem-Using-Dynamic-Programming
|
http://www.codeproject.com/Articles/31002/Coin-Change-Problem-Using-Dynamic-Programming
|
||||||
|
|
||||||
|
|
||||||
|
@ -881,7 +881,7 @@ the page. Then the wallet inspects the response as it may contain
|
|||||||
error reports about a failed payment which the wallet has to handle.
|
error reports about a failed payment which the wallet has to handle.
|
||||||
By submitting the payment this way, we also ensure that this
|
By submitting the payment this way, we also ensure that this
|
||||||
intermediate request does not require JavaScript and still does not
|
intermediate request does not require JavaScript and still does not
|
||||||
interfer with navigation. Once the Web shop confirms the payment, the
|
interfere with navigation. Once the Web shop confirms the payment, the
|
||||||
wallet causes the fulfillment URL to be reloaded.
|
wallet causes the fulfillment URL to be reloaded.
|
||||||
|
|
||||||
If the contract hash does not match a payment which the user
|
If the contract hash does not match a payment which the user
|
||||||
@ -937,7 +937,7 @@ it has the following key advantages:
|
|||||||
other users has the expected behavior
|
other users has the expected behavior
|
||||||
of asking the other user to pay for the resource.
|
of asking the other user to pay for the resource.
|
||||||
\item Asynchronously transmitting coins from injected JavaScript costs
|
\item Asynchronously transmitting coins from injected JavaScript costs
|
||||||
one roundtrip, but does not interfer with navigation and allows
|
one roundtrip, but does not interfere with navigation and allows
|
||||||
proper error handling.
|
proper error handling.
|
||||||
\item The different pages of the merchant have clear
|
\item The different pages of the merchant have clear
|
||||||
delineations: the shopping pages conclude by making an offer, and
|
delineations: the shopping pages conclude by making an offer, and
|
||||||
|
@ -933,7 +933,7 @@ the page. Then the wallet inspects the response as it may contain
|
|||||||
error reports about a failed payment which the wallet has to handle.
|
error reports about a failed payment which the wallet has to handle.
|
||||||
By submitting the payment this way, we also ensure that this
|
By submitting the payment this way, we also ensure that this
|
||||||
intermediate request does not require JavaScript and still does not
|
intermediate request does not require JavaScript and still does not
|
||||||
interfer with navigation. Once the Web shop confirms the payment, the
|
interfere with navigation. Once the Web shop confirms the payment, the
|
||||||
wallet causes the fulfillment URL to be reloaded.
|
wallet causes the fulfillment URL to be reloaded.
|
||||||
|
|
||||||
If the contract hash does not match a payment which the user
|
If the contract hash does not match a payment which the user
|
||||||
@ -989,7 +989,7 @@ it has the following key advantages:
|
|||||||
other users has the expected behavior
|
other users has the expected behavior
|
||||||
of asking the other user to pay for the resource.
|
of asking the other user to pay for the resource.
|
||||||
\item Asynchronously transmitting coins from injected JavaScript costs
|
\item Asynchronously transmitting coins from injected JavaScript costs
|
||||||
one roundtrip, but does not interfer with navigation and allows
|
one roundtrip, but does not interfere with navigation and allows
|
||||||
proper error handling.
|
proper error handling.
|
||||||
\item The different pages of the merchant have clear
|
\item The different pages of the merchant have clear
|
||||||
delineations: the shopping pages conclude by making an offer, and
|
delineations: the shopping pages conclude by making an offer, and
|
||||||
|
@ -241,7 +241,7 @@ export function AuthenticationEditorScreen(): VNode {
|
|||||||
</p>
|
</p>
|
||||||
{authAvailableSet.size > 0 && (
|
{authAvailableSet.size > 0 && (
|
||||||
<p class="block">
|
<p class="block">
|
||||||
We couldn't find provider for some of the authentication
|
We couldn't find provider for some of the authentication
|
||||||
methods.
|
methods.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
@ -26,7 +26,7 @@ test("WPT idbcursor-reused.htm", async (t) => {
|
|||||||
case 0:
|
case 0:
|
||||||
cursor = e.target.result;
|
cursor = e.target.result;
|
||||||
|
|
||||||
t.deepEqual(cursor.value, "data", "prequisite cursor.value");
|
t.deepEqual(cursor.value, "data", "prerequisite cursor.value");
|
||||||
cursor.custom_cursor_value = 1;
|
cursor.custom_cursor_value = 1;
|
||||||
e.target.custom_request_value = 2;
|
e.target.custom_request_value = 2;
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ test("WPT idbcursor-reused.htm", async (t) => {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
t.deepEqual(cursor.value, "data2", "prequisite cursor.value");
|
t.deepEqual(cursor.value, "data2", "prerequisite cursor.value");
|
||||||
t.deepEqual(cursor.custom_cursor_value, 1, "custom cursor value");
|
t.deepEqual(cursor.custom_cursor_value, 1, "custom cursor value");
|
||||||
t.deepEqual(
|
t.deepEqual(
|
||||||
e.target.custom_request_value,
|
e.target.custom_request_value,
|
||||||
|
@ -21,7 +21,7 @@ export interface FakeDOMStringList extends Array<string> {
|
|||||||
item: (i: number) => string | null;
|
item: (i: number) => string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Would be nicer to sublcass Array, but I'd have to sacrifice Node 4 support to do that.
|
// Would be nicer to subclass Array, but I'd have to sacrifice Node 4 support to do that.
|
||||||
|
|
||||||
export const fakeDOMStringList = (arr: string[]): FakeDOMStringList => {
|
export const fakeDOMStringList = (arr: string[]): FakeDOMStringList => {
|
||||||
const arr2 = arr.slice();
|
const arr2 = arr.slice();
|
||||||
|
@ -580,8 +580,7 @@ export interface HarnessExchangeBankAccount {
|
|||||||
*/
|
*/
|
||||||
export class FakebankService
|
export class FakebankService
|
||||||
extends BankServiceBase
|
extends BankServiceBase
|
||||||
implements BankServiceHandle
|
implements BankServiceHandle {
|
||||||
{
|
|
||||||
proc: ProcessWrapper | undefined;
|
proc: ProcessWrapper | undefined;
|
||||||
|
|
||||||
http = createPlatformHttpLib({ enableThrottling: false });
|
http = createPlatformHttpLib({ enableThrottling: false });
|
||||||
@ -790,7 +789,7 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
|
|
||||||
async runWirewatchOnce() {
|
async runWirewatchOnce() {
|
||||||
if (useLibeufinBank) {
|
if (useLibeufinBank) {
|
||||||
// Not even 2 secods showed to be enough!
|
// Not even 2 seconds showed to be enough!
|
||||||
await waitMs(4000);
|
await waitMs(4000);
|
||||||
}
|
}
|
||||||
await runCommand(
|
await runCommand(
|
||||||
@ -1883,10 +1882,8 @@ export class WalletCli {
|
|||||||
? `--crypto-worker=${cliOpts.cryptoWorkerType}`
|
? `--crypto-worker=${cliOpts.cryptoWorkerType}`
|
||||||
: "";
|
: "";
|
||||||
const logName = `wallet-${self.name}`;
|
const logName = `wallet-${self.name}`;
|
||||||
const command = `taler-wallet-cli ${
|
const command = `taler-wallet-cli ${self.timetravelArg ?? ""
|
||||||
self.timetravelArg ?? ""
|
} ${cryptoWorkerArg} --no-throttle -LTRACE --skip-defaults --wallet-db '${self.dbfile
|
||||||
} ${cryptoWorkerArg} --no-throttle -LTRACE --skip-defaults --wallet-db '${
|
|
||||||
self.dbfile
|
|
||||||
}' api '${op}' ${shellWrap(JSON.stringify(payload))}`;
|
}' api '${op}' ${shellWrap(JSON.stringify(payload))}`;
|
||||||
const resp = await sh(self.globalTestState, logName, command);
|
const resp = await sh(self.globalTestState, logName, command);
|
||||||
logger.info("--- wallet core response ---");
|
logger.info("--- wallet core response ---");
|
||||||
|
@ -251,7 +251,7 @@ export interface NexusTask {
|
|||||||
taskCronSpec: string;
|
taskCronSpec: string;
|
||||||
// Only meaningful for "fetch" types.
|
// Only meaningful for "fetch" types.
|
||||||
taskParams: FetchParams;
|
taskParams: FetchParams;
|
||||||
// Timestamp in secons when the next iteration will run.
|
// Timestamp in seconds when the next iteration will run.
|
||||||
nextScheduledExecutionSec: number;
|
nextScheduledExecutionSec: number;
|
||||||
// Timestamp in seconds when the previous iteration ran.
|
// Timestamp in seconds when the previous iteration ran.
|
||||||
prevScheduledExecutionSec: number;
|
prevScheduledExecutionSec: number;
|
||||||
|
@ -392,7 +392,7 @@ function csKdfMod(
|
|||||||
// Newer versions of node have TextEncoder and TextDecoder as a global,
|
// Newer versions of node have TextEncoder and TextDecoder as a global,
|
||||||
// just like modern browsers.
|
// just like modern browsers.
|
||||||
// In older versions of node or environments that do not have these
|
// In older versions of node or environments that do not have these
|
||||||
// globals, they must be polyfilled (by adding them to globa/globalThis)
|
// globals, they must be polyfilled (by adding them to global/globalThis)
|
||||||
// before stringToBytes or bytesToString is called the first time.
|
// before stringToBytes or bytesToString is called the first time.
|
||||||
|
|
||||||
let encoder: any;
|
let encoder: any;
|
||||||
@ -693,7 +693,7 @@ export async function csBlind(
|
|||||||
* Unblind operation to unblind the signature
|
* Unblind operation to unblind the signature
|
||||||
* @param bseed seed to derive secrets
|
* @param bseed seed to derive secrets
|
||||||
* @param rPub public R received from /csr
|
* @param rPub public R received from /csr
|
||||||
* @param csPub denomination publick key
|
* @param csPub denomination public key
|
||||||
* @param b returned from exchange to select c
|
* @param b returned from exchange to select c
|
||||||
* @param csSig blinded signature
|
* @param csSig blinded signature
|
||||||
* @returns unblinded signature
|
* @returns unblinded signature
|
||||||
@ -721,7 +721,7 @@ export async function csUnblind(
|
|||||||
* Verification algorithm for CS signatures
|
* Verification algorithm for CS signatures
|
||||||
* @param hm message signed
|
* @param hm message signed
|
||||||
* @param csSig unblinded signature
|
* @param csSig unblinded signature
|
||||||
* @param csPub denomination publick key
|
* @param csPub denomination public key
|
||||||
* @returns true if valid, false if invalid
|
* @returns true if valid, false if invalid
|
||||||
*/
|
*/
|
||||||
export async function csVerify(
|
export async function csVerify(
|
||||||
@ -844,8 +844,7 @@ export function hashDenomPub(pub: DenominationPubKey): Uint8Array {
|
|||||||
return hash(uint8ArrayBuf);
|
return hash(uint8ArrayBuf);
|
||||||
} else {
|
} else {
|
||||||
throw Error(
|
throw Error(
|
||||||
`unsupported cipher (${
|
`unsupported cipher (${(pub as DenominationPubKey).cipher
|
||||||
(pub as DenominationPubKey).cipher
|
|
||||||
}), unable to hash`,
|
}), unable to hash`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* High-level wallet operations that should be indepentent from the underlying
|
* High-level wallet operations that should be independent from the underlying
|
||||||
* browser extension interface.
|
* browser extension interface.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user