Skip to content
Snippets Groups Projects
Commit 1e8f51ac authored by Javier Diaz's avatar Javier Diaz
Browse files

Debugging

parent f7af9901
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!259Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
......@@ -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 };
}
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment