Create SDK Plugin
Assemble plugin dependencies + config into one instance.
import { createAesGcmSecureStorageCrypto, createTenebraePlugin } from '@kohaku-eth/tenebrae';
import { MemoryStorage } from '@kohaku-eth/plugins';
const plugin = await createTenebraePlugin(
{
storage: new MemoryStorage(),
provider, // wallet RPC — sendTransaction for tx broadcast
},
config,
{ storageCrypto: createAesGcmSecureStorageCrypto(wrappingKey32Bytes) }
);
After create, unlock and run motions on Lifecycle.