Loading src/dlt/gateway/dltApp/src/fabricConnect.ts +2 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ async function newGrpcConnection(): Promise<grpc.Client> { async function newIdentity(): Promise<Identity> { const certPath = await getFirstDirFileName(certDirectoryPath); console.log("DEBUG", certPath); const credentials = await fs.readFile(certPath); return { mspId, credentials }; } Loading @@ -116,6 +117,7 @@ async function getFirstDirFileName(dirPath: string): Promise<string> { async function newSigner(): Promise<Signer> { const keyPath = await getFirstDirFileName(keyDirectoryPath); console.log("DEBUG2", keyPath); const privateKeyPem = await fs.readFile(keyPath); const privateKey = crypto.createPrivateKey(privateKeyPem); return signers.newPrivateKeySigner(privateKey); Loading Loading
src/dlt/gateway/dltApp/src/fabricConnect.ts +2 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ async function newGrpcConnection(): Promise<grpc.Client> { async function newIdentity(): Promise<Identity> { const certPath = await getFirstDirFileName(certDirectoryPath); console.log("DEBUG", certPath); const credentials = await fs.readFile(certPath); return { mspId, credentials }; } Loading @@ -116,6 +117,7 @@ async function getFirstDirFileName(dirPath: string): Promise<string> { async function newSigner(): Promise<Signer> { const keyPath = await getFirstDirFileName(keyDirectoryPath); console.log("DEBUG2", keyPath); const privateKeyPem = await fs.readFile(keyPath); const privateKey = crypto.createPrivateKey(privateKeyPem); return signers.newPrivateKeySigner(privateKey); Loading