Markets
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
||||
import { decryptWallet, encryptWallet, type WalletBackup } from '../shared/wallet-backup.ts';
|
||||
import { IS_MAINNET } from '../shared/network.ts';
|
||||
|
||||
export type Wallet = { privateKey: CryptoKey; publicKey: string; address: string };
|
||||
const DATABASE = 'wikideck-testnet-wallet-v2';
|
||||
const DATABASE = IS_MAINNET ? 'wikideck-mainnet-wallet-v1' : 'wikideck-testnet-wallet-v2';
|
||||
const LOCK = `${DATABASE}:identity`;
|
||||
const encode = (bytes: ArrayBuffer) => btoa(String.fromCharCode(...new Uint8Array(bytes)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user