mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
af9b5ff10c
* initial button refactor and gradient background * CW-397 Use a separate Hive instance to avoid Issues with plugins using Hive * CW-397 Add Support Page Strings * CW-397 Add new Support Page * CW-397 Add Support Live Chat Page * CW-397 Add Hive Type Ids Doc * CW-397 Use Newer Chatwoot SDK Version and add new Images * CW-397 Update pubspec_base.yaml * CW-397 Add own Chatwoot Widget * Lowercase `s` skip-ci * CW-397 Fix WebMessageListener * CW-397 Fix Merge conflicts * CW-397 Add Erc20 Hive Type ID * CW-397 Fix Ethereum Hive Error * CW-397 Revert to Restore Button * CW-397 Only use In App chat on mobile * CW-397 Move Chatwoot Website Token to secrets * CW-397 Add Chatwoot Website Token to workflow * CW-397 Move Chatwoot fetchUrl to Support View Model --------- Co-authored-by: Rafael Saes <git@saes.io> Co-authored-by: Justin Ehrenhofer <justin.ehrenhofer@gmail.com>
43 lines
1.8 KiB
Dart
43 lines
1.8 KiB
Dart
import 'package:encrypt/encrypt.dart' as encrypt;
|
|
import 'package:convert/convert.dart';
|
|
|
|
class SecretKey {
|
|
const SecretKey(this.name, this.generate);
|
|
|
|
static final base = [
|
|
SecretKey('salt', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)),
|
|
SecretKey('keychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
|
SecretKey('key', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)),
|
|
SecretKey('walletSalt', () => hex.encode(encrypt.Key.fromSecureRandom(4).bytes)),
|
|
SecretKey('shortKey', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
|
SecretKey('backupSalt', () => hex.encode(encrypt.Key.fromSecureRandom(8).bytes)),
|
|
SecretKey('backupKeychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
|
SecretKey('changeNowApiKey', () => ''),
|
|
SecretKey('changeNowApiKeyDesktop', () => ''),
|
|
SecretKey('wyreSecretKey', () => ''),
|
|
SecretKey('wyreApiKey', () => ''),
|
|
SecretKey('wyreAccountId', () => ''),
|
|
SecretKey('moonPayApiKey', () => ''),
|
|
SecretKey('moonPaySecretKey', () => ''),
|
|
SecretKey('sideShiftAffiliateId', () => ''),
|
|
SecretKey('simpleSwapApiKey', () => ''),
|
|
SecretKey('simpleSwapApiKeyDesktop', () => ''),
|
|
SecretKey('anypayToken', () => ''),
|
|
SecretKey('onramperApiKey', () => ''),
|
|
SecretKey('ioniaClientId', () => ''),
|
|
SecretKey('trocadorApiKey', () => ''),
|
|
SecretKey('trocadorExchangeMarkup', () => ''),
|
|
SecretKey('twitterBearerToken', () => ''),
|
|
SecretKey('anonPayReferralCode', () => ''),
|
|
SecretKey('fiatApiKey', () => ''),
|
|
SecretKey('payfuraApiKey', () => ''),
|
|
SecretKey('chatwootWebsiteToken', () => ''),
|
|
];
|
|
|
|
static final ethereumSecrets = [
|
|
SecretKey('etherScanApiKey', () => ''),
|
|
];
|
|
|
|
final String name;
|
|
final String Function() generate;
|
|
}
|