Setup 5d15508bba929f1f074c052ac933863eadf6eb8e56984ebd5a1af75e80626643 Portable a5d346b97f5a13d85fa3bd301a72075ddb82fe636d7b1a51840ffd5a16d879f4 Bundled since 0.3.27: 32d4b75 - Aegis (bchwallet) gains its own update card in Settings > General beside Ariadne. Check for updates hits the same signed OTA endpoint the boot timer uses; Restart to apply appears when a signed newer version is staged. Uses the existing addons-check-updates + a new app-restart IPC. New Aegis versions ship without a Theseus release. 32d4b75 (same commit) - DevTools (F12 / Ctrl+Shift+I) opens docked to the right of the tab (mode: 'right') instead of a detached window. Matches stock Chrome. Users who prefer detached can drag out via the DevTools own toolbar. b71c925 - Search-engine favicons in Settings > Search now use Google's /s2/favicons service — DuckDuckGo's ip3 source returned 404 for enough hosts (Brave, Bing, Yandex, etc.) that half the list was falling through to the emoji placeholder. Deployed. Verified LIVE 0.3.28.
24 lines
No EOL
952 B
JavaScript
24 lines
No EOL
952 B
JavaScript
import { BIP32Factory } from 'bip32';
|
|
import * as ecc from '@bitcoinerlab/secp256k1';
|
|
import { digibyte, DGB_COIN_TYPE } from './network.js';
|
|
const bip32 = BIP32Factory(ecc);
|
|
export const PURPOSE_LABEL = {
|
|
44: 'BIP44 legacy P2PKH',
|
|
49: 'BIP49 P2SH-wrapped SegWit',
|
|
84: 'BIP84 native SegWit v0',
|
|
86: 'BIP86 Taproot (SegWit v1)',
|
|
};
|
|
export function rootFromSeed(seed, network = digibyte) {
|
|
return bip32.fromSeed(seed, network);
|
|
}
|
|
// Standard account-level derivation: m/purpose'/coin'/account'.
|
|
// account defaults to 0 (the first account).
|
|
export function accountNode(root, purpose, account = 0) {
|
|
return root.derivePath(`m/${purpose}'/${DGB_COIN_TYPE}'/${account}'`);
|
|
}
|
|
// Address-level derivation from an account node.
|
|
// change = 0 for external (receive) addresses, 1 for internal (change).
|
|
export function addressNode(account, change, index) {
|
|
return account.derive(change).derive(index);
|
|
}
|
|
//# sourceMappingURL=hd.js.map
|