Skip to main content

createTenebraePlugin

createTenebraePlugin(
host: Pick<Host, 'storage' | 'provider'> & {
provider: Host['provider'] & Pick<TxSigner, 'sendTransaction'>;
},
config: ITenebraeKohakuPluginConfig,
options: { storageCrypto: ITenebraeSdkStorageCrypto }
): Promise<TenebraeKohakuPluginType>
ParameterTypeRequiredDescription
hostHost subsetyesLab/docs: { storage, provider }. Wallet shell also supplies network + keystore. Provider needs TxSigner.sendTransaction for Deposit settle.
configplugin configyesSDK Plugin Config
options.storageCryptosecure storage cryptoyesAES-GCM for unlock material at rest

Types: Host from @kohaku-eth/plugins; TxSigner from @kohaku-eth/provider. See SDK Plugin Dependencies.

Returns: Plugin with settlement verbs + extras. Sandbox: SDK Plugin card.


Next