**Motivations:** - Consigner l'état actuel du dépôt (cron, service-login-verify, website-skeleton, userwallet, docs). - Centraliser les modifications en attente. **Root causes:** - N/A (commit groupé). **Correctifs:** - N/A. **Evolutions:** - Cron quotidien restart services : script local sans SSH, systemd (bitcoin-signet, bitcoin, APIs, dashboard, userwallet, website-skeleton) + Docker (mempool, bitcoin-signet-instance). - Feature cron-restart-services-local : documentation et règle scripts locaux / pas d'SSH. - service-login-verify : module vérification login (buildAllowedPubkeys, verifyLoginProof, nonceCache). - website-skeleton : app iframe UserWallet, config, systemd unit. - userwallet : collectSignatures, relay. - docs : DOMAINS_AND_PORTS, README, WEBSITE_SKELETON ; features userwallet-contrat-login, timeouts-backoff, service-login-verify. **Pages affectées:** - data/restart-services-cron.sh, data/restart-services.log, data/sync-utxos.log - features/cron-restart-services-local.md, features/service-login-verify.md, features/userwallet-contrat-login-reste-a-faire.md, features/userwallet-timeouts-backoff.md - docs/DOMAINS_AND_PORTS.md, docs/README.md, docs/WEBSITE_SKELETON.md - configure-nginx-proxy.sh - service-login-verify/ (src, dist, node_modules) - userwallet/src/utils/collectSignatures.ts, userwallet/src/utils/relay.ts - website-skeleton/
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
import { type KDFInput } from './utils.ts';
|
|
/**
|
|
* Argon2 options.
|
|
* * t: time cost, m: mem cost in kb, p: parallelization.
|
|
* * key: optional key. personalization: arbitrary extra data.
|
|
* * dkLen: desired number of output bytes.
|
|
*/
|
|
export type ArgonOpts = {
|
|
t: number;
|
|
m: number;
|
|
p: number;
|
|
version?: number;
|
|
key?: KDFInput;
|
|
personalization?: KDFInput;
|
|
dkLen?: number;
|
|
asyncTick?: number;
|
|
maxmem?: number;
|
|
onProgress?: (progress: number) => void;
|
|
};
|
|
/** argon2d GPU-resistant version. */
|
|
export declare const argon2d: (password: KDFInput, salt: KDFInput, opts: ArgonOpts) => Uint8Array;
|
|
/** argon2i side-channel-resistant version. */
|
|
export declare const argon2i: (password: KDFInput, salt: KDFInput, opts: ArgonOpts) => Uint8Array;
|
|
/** argon2id, combining i+d, the most popular version from RFC 9106 */
|
|
export declare const argon2id: (password: KDFInput, salt: KDFInput, opts: ArgonOpts) => Uint8Array;
|
|
/** argon2d async GPU-resistant version. */
|
|
export declare const argon2dAsync: (password: KDFInput, salt: KDFInput, opts: ArgonOpts) => Promise<Uint8Array>;
|
|
/** argon2i async side-channel-resistant version. */
|
|
export declare const argon2iAsync: (password: KDFInput, salt: KDFInput, opts: ArgonOpts) => Promise<Uint8Array>;
|
|
/** argon2id async, combining i+d, the most popular version from RFC 9106 */
|
|
export declare const argon2idAsync: (password: KDFInput, salt: KDFInput, opts: ArgonOpts) => Promise<Uint8Array>;
|
|
//# sourceMappingURL=argon2.d.ts.map
|