1type ValueOf<T> = T[keyof T];
3type CHILD_SEED_TYPES = {
4 OWNERSHIP: 'ownership';
8 MANAGEMENT: 'management';
10 BITCOIN_MAINNET: 'bitcoinMainnet';
11 BITCOIN_TESTNET: 'bitcoinTestnet';
14type ChildSeedType = ValueOf<CHILD_SEED_TYPES>;
16interface NetworkKeys {
27interface WalletNodeKeys {
38 derivationPath: string;
41interface BitcoinWallet extends WalletNode {}
43interface WalletConfig {
50interface UrbitWallet {
63 ownership: WalletNode;
64 management: WalletNode;
75 bitcoinTestnet: BitcoinWallet;
76 bitcoinMainnet: BitcoinWallet;
79declare module 'urbit-key-generation' {
80 const CHILD_SEED_TYPES: CHILD_SEED_TYPES;
81 function addressFromSecp256k1Public(pub: string): string;
82 function argon2u(entropy: Buffer, ship: number): Promise<Uint8Array>;
83 function combine(shards: string[]): string;
84 function deriveNetworkInfo(
88 ): { type: 'network'; seed: string; keys: WalletNodeKeys };
89 function deriveNetworkKeys(hex: string): NetworkKeys;
90 function deriveNetworkSeed(
98 derivationPath: string,
101 function deriveNodeKeys(
103 derivationPath: string,
106 function deriveNodeSeed(master: Uint8Array, type: ChildSeedType): string;
107 function generateCode(pair: NetworkKeys, step: number): string;
108 function generateKeyfile(
113 function generateOwnershipWallet({
117 }: WalletConfig): UrbitWallet;
118 function generateWallet({
123 }: WalletConfig): UrbitWallet;
124 function shard(ticket: string): string[];
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list