**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/
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
export declare function scrypt(password: string, salt: string): Uint8Array;
|
|
export declare function pbkdf2(password: string, salt: string): Uint8Array;
|
|
/**
|
|
* Derives main seed. Takes a lot of time. Prefer `eskdf` method instead.
|
|
*/
|
|
export declare function deriveMainSeed(username: string, password: string): Uint8Array;
|
|
type AccountID = number | string;
|
|
type OptsLength = {
|
|
keyLength: number;
|
|
};
|
|
type OptsMod = {
|
|
modulus: bigint;
|
|
};
|
|
type KeyOpts = undefined | OptsLength | OptsMod;
|
|
export interface ESKDF {
|
|
/**
|
|
* Derives a child key. Child key will not be associated with any
|
|
* other child key because of properties of underlying KDF.
|
|
*
|
|
* @param protocol - 3-15 character protocol name
|
|
* @param accountId - numeric identifier of account
|
|
* @param options - `keyLength: 64` or `modulus: 41920438n`
|
|
* @example deriveChildKey('aes', 0)
|
|
*/
|
|
deriveChildKey: (protocol: string, accountId: AccountID, options?: KeyOpts) => Uint8Array;
|
|
/**
|
|
* Deletes the main seed from eskdf instance
|
|
*/
|
|
expire: () => void;
|
|
/**
|
|
* Account fingerprint
|
|
*/
|
|
fingerprint: string;
|
|
}
|
|
/**
|
|
* ESKDF
|
|
* @param username - username, email, or identifier, min: 8 characters, should have enough entropy
|
|
* @param password - password, min: 8 characters, should have enough entropy
|
|
* @example
|
|
* const kdf = await eskdf('example-university', 'beginning-new-example');
|
|
* const key = kdf.deriveChildKey('aes', 0);
|
|
* console.log(kdf.fingerprint);
|
|
* kdf.expire();
|
|
*/
|
|
export declare function eskdf(username: string, password: string): Promise<ESKDF>;
|
|
export {};
|
|
//# sourceMappingURL=eskdf.d.ts.map
|