2021-03-16 13:20:46 +00:00
|
|
|
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)),
|
2023-02-06 19:48:31 +00:00
|
|
|
SecretKey('keychainSalt', () => hex.encode(encrypt.Key.fromSecureRandom(12).bytes)),
|
2021-03-16 13:20:46 +00:00
|
|
|
SecretKey('key', () => hex.encode(encrypt.Key.fromSecureRandom(16).bytes)),
|
2023-02-06 19:48:31 +00:00
|
|
|
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)),
|
2021-03-16 13:20:46 +00:00
|
|
|
SecretKey('changeNowApiKey', () => ''),
|
2023-04-14 04:39:08 +00:00
|
|
|
SecretKey('changeNowApiKeyDesktop', () => ''),
|
2021-03-16 13:20:46 +00:00
|
|
|
SecretKey('wyreSecretKey', () => ''),
|
|
|
|
SecretKey('wyreApiKey', () => ''),
|
|
|
|
SecretKey('wyreAccountId', () => ''),
|
2021-12-28 17:00:57 +00:00
|
|
|
SecretKey('moonPayApiKey', () => ''),
|
|
|
|
SecretKey('moonPaySecretKey', () => ''),
|
2022-04-13 13:28:21 +00:00
|
|
|
SecretKey('sideShiftAffiliateId', () => ''),
|
2022-10-27 21:33:58 +00:00
|
|
|
SecretKey('simpleSwapApiKey', () => ''),
|
2023-04-14 04:39:08 +00:00
|
|
|
SecretKey('simpleSwapApiKeyDesktop', () => ''),
|
2022-11-03 20:53:33 +00:00
|
|
|
SecretKey('anypayToken', () => ''),
|
2022-10-27 21:33:58 +00:00
|
|
|
SecretKey('onramperApiKey', () => ''),
|
2022-11-27 20:10:21 +00:00
|
|
|
SecretKey('ioniaClientId', () => ''),
|
2023-02-06 19:20:43 +00:00
|
|
|
SecretKey('trocadorApiKey', () => ''),
|
2023-02-06 21:18:54 +00:00
|
|
|
SecretKey('trocadorExchangeMarkup', () => ''),
|
2023-01-24 19:33:09 +00:00
|
|
|
SecretKey('twitterBearerToken', () => ''),
|
2023-03-31 18:22:51 +00:00
|
|
|
SecretKey('anonPayReferralCode', () => ''),
|
2023-03-31 18:34:39 +00:00
|
|
|
SecretKey('fiatApiKey', () => ''),
|
|
|
|
SecretKey('payfuraApiKey', () => ''),
|
2023-08-15 00:47:25 +00:00
|
|
|
SecretKey('chatwootWebsiteToken', () => ''),
|
2023-10-12 00:20:19 +00:00
|
|
|
SecretKey('exolixApiKey', () => ''),
|
2023-09-14 19:14:49 +00:00
|
|
|
SecretKey('robinhoodApplicationId', () => ''),
|
|
|
|
SecretKey('robinhoodCIdApiSecret', () => ''),
|
2023-10-03 14:56:10 +00:00
|
|
|
SecretKey('walletConnectProjectId', () => ''),
|
2023-11-22 17:43:26 +00:00
|
|
|
SecretKey('moralisApiKey', () => '')
|
2021-03-16 13:20:46 +00:00
|
|
|
];
|
|
|
|
|
2023-08-04 17:01:49 +00:00
|
|
|
static final ethereumSecrets = [
|
|
|
|
SecretKey('etherScanApiKey', () => ''),
|
2023-12-02 02:26:43 +00:00
|
|
|
SecretKey('polygonScanApiKey', () => ''),
|
2023-08-04 17:01:49 +00:00
|
|
|
];
|
|
|
|
|
2021-03-16 13:20:46 +00:00
|
|
|
final String name;
|
|
|
|
final String Function() generate;
|
|
|
|
}
|