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();
|
||||||
|
@ -565,7 +565,7 @@ class BankServiceBase {
|
|||||||
protected globalTestState: GlobalTestState,
|
protected globalTestState: GlobalTestState,
|
||||||
protected bankConfig: BankConfig,
|
protected bankConfig: BankConfig,
|
||||||
protected configFile: string,
|
protected configFile: string,
|
||||||
) {}
|
) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HarnessExchangeBankAccount {
|
export interface HarnessExchangeBankAccount {
|
||||||
@ -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(
|
||||||
@ -1013,7 +1012,7 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
private exchangeConfig: ExchangeConfig,
|
private exchangeConfig: ExchangeConfig,
|
||||||
private configFilename: string,
|
private configFilename: string,
|
||||||
private keyPair: EddsaKeyPair,
|
private keyPair: EddsaKeyPair,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
get name() {
|
get name() {
|
||||||
return this.exchangeConfig.name;
|
return this.exchangeConfig.name;
|
||||||
@ -1369,7 +1368,7 @@ export class MerchantService implements MerchantServiceInterface {
|
|||||||
private globalState: GlobalTestState,
|
private globalState: GlobalTestState,
|
||||||
private merchantConfig: MerchantConfig,
|
private merchantConfig: MerchantConfig,
|
||||||
private configFilename: string,
|
private configFilename: string,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
private currentTimetravelOffsetMs: number | undefined;
|
private currentTimetravelOffsetMs: number | undefined;
|
||||||
|
|
||||||
@ -1707,7 +1706,7 @@ export class WalletService {
|
|||||||
constructor(
|
constructor(
|
||||||
private globalState: GlobalTestState,
|
private globalState: GlobalTestState,
|
||||||
private opts: WalletServiceOptions,
|
private opts: WalletServiceOptions,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
get socketPath() {
|
get socketPath() {
|
||||||
const unixPath = path.join(
|
const unixPath = path.join(
|
||||||
@ -1816,7 +1815,7 @@ export class WalletClient {
|
|||||||
return client.call(operation, payload);
|
return client.call(operation, payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(private args: WalletClientArgs) {}
|
constructor(private args: WalletClientArgs) { }
|
||||||
|
|
||||||
async connect(): Promise<void> {
|
async connect(): Promise<void> {
|
||||||
const waiter = this.waiter;
|
const waiter = this.waiter;
|
||||||
@ -1883,11 +1882,9 @@ 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 '${
|
}' api '${op}' ${shellWrap(JSON.stringify(payload))}`;
|
||||||
self.dbfile
|
|
||||||
}' 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 ---");
|
||||||
logger.info(resp);
|
logger.info(resp);
|
||||||
|
@ -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;
|
||||||
@ -618,9 +618,9 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-createebicssubscriber",
|
"libeufin-cli-createebicssubscriber",
|
||||||
"libeufin-cli sandbox ebicssubscriber create" +
|
"libeufin-cli sandbox ebicssubscriber create" +
|
||||||
` --host-id=${details.hostId}` +
|
` --host-id=${details.hostId}` +
|
||||||
` --partner-id=${details.partnerId}` +
|
` --partner-id=${details.partnerId}` +
|
||||||
` --user-id=${details.userId}`,
|
` --user-id=${details.userId}`,
|
||||||
this.env(),
|
this.env(),
|
||||||
);
|
);
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
@ -634,13 +634,13 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-createebicsbankaccount",
|
"libeufin-cli-createebicsbankaccount",
|
||||||
"libeufin-cli sandbox ebicsbankaccount create" +
|
"libeufin-cli sandbox ebicsbankaccount create" +
|
||||||
` --iban=${bankAccountDetails.iban}` +
|
` --iban=${bankAccountDetails.iban}` +
|
||||||
` --bic=${bankAccountDetails.bic}` +
|
` --bic=${bankAccountDetails.bic}` +
|
||||||
` --person-name='${bankAccountDetails.personName}'` +
|
` --person-name='${bankAccountDetails.personName}'` +
|
||||||
` --account-name=${bankAccountDetails.accountName}` +
|
` --account-name=${bankAccountDetails.accountName}` +
|
||||||
` --ebics-host-id=${sd.hostId}` +
|
` --ebics-host-id=${sd.hostId}` +
|
||||||
` --ebics-partner-id=${sd.partnerId}` +
|
` --ebics-partner-id=${sd.partnerId}` +
|
||||||
` --ebics-user-id=${sd.userId}`,
|
` --ebics-user-id=${sd.userId}`,
|
||||||
this.env(),
|
this.env(),
|
||||||
);
|
);
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
@ -673,11 +673,11 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-createebicsconnection",
|
"libeufin-cli-createebicsconnection",
|
||||||
`libeufin-cli connections new-ebics-connection` +
|
`libeufin-cli connections new-ebics-connection` +
|
||||||
` --ebics-url=${connectionDetails.ebicsUrl}` +
|
` --ebics-url=${connectionDetails.ebicsUrl}` +
|
||||||
` --host-id=${connectionDetails.subscriberDetails.hostId}` +
|
` --host-id=${connectionDetails.subscriberDetails.hostId}` +
|
||||||
` --partner-id=${connectionDetails.subscriberDetails.partnerId}` +
|
` --partner-id=${connectionDetails.subscriberDetails.partnerId}` +
|
||||||
` --ebics-user-id=${connectionDetails.subscriberDetails.userId}` +
|
` --ebics-user-id=${connectionDetails.subscriberDetails.userId}` +
|
||||||
` ${connectionDetails.connectionName}`,
|
` ${connectionDetails.connectionName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -693,9 +693,9 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-createbackupfile",
|
"libeufin-cli-createbackupfile",
|
||||||
`libeufin-cli connections export-backup` +
|
`libeufin-cli connections export-backup` +
|
||||||
` --passphrase=${details.passphrase}` +
|
` --passphrase=${details.passphrase}` +
|
||||||
` --output-file=${details.outputFile}` +
|
` --output-file=${details.outputFile}` +
|
||||||
` ${details.connectionName}`,
|
` ${details.connectionName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -711,7 +711,7 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-createkeyletter",
|
"libeufin-cli-createkeyletter",
|
||||||
`libeufin-cli connections get-key-letter` +
|
`libeufin-cli connections get-key-letter` +
|
||||||
` ${details.connectionName} ${details.outputFile}`,
|
` ${details.connectionName} ${details.outputFile}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -774,9 +774,9 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-importbankaccount",
|
"libeufin-cli-importbankaccount",
|
||||||
"libeufin-cli connections import-bank-account" +
|
"libeufin-cli connections import-bank-account" +
|
||||||
` --offered-account-id=${importDetails.offeredBankAccountName}` +
|
` --offered-account-id=${importDetails.offeredBankAccountName}` +
|
||||||
` --nexus-bank-account-id=${importDetails.nexusBankAccountName}` +
|
` --nexus-bank-account-id=${importDetails.nexusBankAccountName}` +
|
||||||
` ${importDetails.connectionName}`,
|
` ${importDetails.connectionName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -822,12 +822,12 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-preparepayment",
|
"libeufin-cli-preparepayment",
|
||||||
`libeufin-cli accounts prepare-payment` +
|
`libeufin-cli accounts prepare-payment` +
|
||||||
` --creditor-iban=${details.creditorIban}` +
|
` --creditor-iban=${details.creditorIban}` +
|
||||||
` --creditor-bic=${details.creditorBic}` +
|
` --creditor-bic=${details.creditorBic}` +
|
||||||
` --creditor-name='${details.creditorName}'` +
|
` --creditor-name='${details.creditorName}'` +
|
||||||
` --payment-subject='${details.subject}'` +
|
` --payment-subject='${details.subject}'` +
|
||||||
` --payment-amount=${details.currency}:${details.amount}` +
|
` --payment-amount=${details.currency}:${details.amount}` +
|
||||||
` ${details.nexusBankAccountName}`,
|
` ${details.nexusBankAccountName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -846,8 +846,8 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-submitpayments",
|
"libeufin-cli-submitpayments",
|
||||||
`libeufin-cli accounts submit-payments` +
|
`libeufin-cli accounts submit-payments` +
|
||||||
` --payment-uuid=${paymentUuid}` +
|
` --payment-uuid=${paymentUuid}` +
|
||||||
` ${details.nexusBankAccountName}`,
|
` ${details.nexusBankAccountName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -863,9 +863,9 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-new-anastasis-facade",
|
"libeufin-cli-new-anastasis-facade",
|
||||||
`libeufin-cli facades new-anastasis-facade` +
|
`libeufin-cli facades new-anastasis-facade` +
|
||||||
` --currency ${req.currency}` +
|
` --currency ${req.currency}` +
|
||||||
` --facade-name ${req.facadeName}` +
|
` --facade-name ${req.facadeName}` +
|
||||||
` ${req.connectionName} ${req.accountName}`,
|
` ${req.connectionName} ${req.accountName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
@ -881,9 +881,9 @@ export class LibeufinCli {
|
|||||||
this.globalTestState,
|
this.globalTestState,
|
||||||
"libeufin-cli-new-taler-wire-gateway-facade",
|
"libeufin-cli-new-taler-wire-gateway-facade",
|
||||||
`libeufin-cli facades new-taler-wire-gateway-facade` +
|
`libeufin-cli facades new-taler-wire-gateway-facade` +
|
||||||
` --currency ${req.currency}` +
|
` --currency ${req.currency}` +
|
||||||
` --facade-name ${req.facadeName}` +
|
` --facade-name ${req.facadeName}` +
|
||||||
` ${req.connectionName} ${req.accountName}`,
|
` ${req.connectionName} ${req.accountName}`,
|
||||||
{
|
{
|
||||||
...process.env,
|
...process.env,
|
||||||
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl,
|
||||||
|
@ -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`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1023,7 +1022,7 @@ export enum WalletAccountMergeFlags {
|
|||||||
export class SignaturePurposeBuilder {
|
export class SignaturePurposeBuilder {
|
||||||
private chunks: Uint8Array[] = [];
|
private chunks: Uint8Array[] = [];
|
||||||
|
|
||||||
constructor(private purposeNum: number) {}
|
constructor(private purposeNum: number) { }
|
||||||
|
|
||||||
put(bytes: Uint8Array): SignaturePurposeBuilder {
|
put(bytes: Uint8Array): SignaturePurposeBuilder {
|
||||||
this.chunks.push(Uint8Array.from(bytes));
|
this.chunks.push(Uint8Array.from(bytes));
|
||||||
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -923,9 +923,9 @@ async function dumpCoins(ws: InternalWalletState): Promise<CoinDumpJson> {
|
|||||||
ageCommitmentProof: c.ageCommitmentProof,
|
ageCommitmentProof: c.ageCommitmentProof,
|
||||||
spend_allocation: c.spendAllocation
|
spend_allocation: c.spendAllocation
|
||||||
? {
|
? {
|
||||||
amount: c.spendAllocation.amount,
|
amount: c.spendAllocation.amount,
|
||||||
id: c.spendAllocation.id,
|
id: c.spendAllocation.id,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user