1 import { getHasMigratedAddressKeys } from '../keyMigration';
2 import type { ReactivateKeysProcessLegacyArguments } from './reactivateKeysProcessLegacy';
3 import reactivateKeysProcessLegacy from './reactivateKeysProcessLegacy';
4 import type { ReactivateKeysProcessV2Arguments } from './reactivateKeysProcessV2';
5 import reactivateKeysProcessV2 from './reactivateKeysProcessV2';
7 interface Arguments extends ReactivateKeysProcessV2Arguments, ReactivateKeysProcessLegacyArguments {}
9 export const reactivateKeysProcess = async ({
15 keyReactivationRecords,
18 keyTransparencyVerify,
20 const hasMigratedAddressKeys = getHasMigratedAddressKeys(addresses);
22 if (hasMigratedAddressKeys) {
23 return reactivateKeysProcessV2({
25 keyReactivationRecords,
31 keyTransparencyVerify,
35 return reactivateKeysProcessLegacy({
37 keyReactivationRecords,
42 keyTransparencyVerify,