Skip to content

Commit

Permalink
♻️ (context-module): Use tx_simu_signer with web3check cert
Browse files Browse the repository at this point in the history
  • Loading branch information
aussedatlo committed Feb 5, 2025
1 parent d861d81 commit 445fbd5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { configTypes } from "@/config/di/configTypes";
import type { ContextModuleConfig } from "@/config/model/ContextModuleConfig";
import { pkiTypes } from "@/pki/di/pkiTypes";
import { type PkiCertificateLoader } from "@/pki/domain/PkiCertificateLoader";
import { KeyId } from "@/pki/model/KeyId";
import { KeyUsage } from "@/pki/model/KeyUsage";
import {
type Web3CheckContext,
Expand Down Expand Up @@ -68,7 +69,7 @@ export class HttpWeb3CheckDataSource implements Web3CheckDataSource {

const certificate = await this._certificateLoader.loadCertificate({
keyId: web3CheckDto.public_key_id,
keyUsage: "replace-me" as KeyUsage, // TODO: replace with the keyUsage given by the API
keyUsage: KeyUsage.TxSimulationSigner,
targetDevice: deviceModelId,
});

Expand Down

0 comments on commit 445fbd5

Please sign in to comment.