import { fromRandom } from '@ocap/wallet';
import { types } from '@ocap/mcrypto';

// Create a test wallet
const wallet = fromRandom({
  role: types.RoleType.ROLE_APPLICATION,
});

// Set missing environment variables that @blocklet/sdk jest-setup.js doesn't provide
process.env.BLOCKLET_APP_PK = wallet.publicKey;
process.env.BLOCKLET_APP_EK = wallet.secretKey; // EK (Encryption Key) uses secretKey
