We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1422758 commit f29ded7Copy full SHA for f29ded7
src/KeyPair.ts
@@ -90,8 +90,7 @@ export class KeyPair {
90
*
91
*/
92
public static async importFromFile(filename: string, password: string): Promise<KeyPair> {
93
-
94
- const fs = await import('fs')
+ const fs = await import('fs')
95
if (fs.existsSync(filename)) {
96
const data = await fs.promises.readFile(filename)
97
return KeyPair.importFromString(data.toString(), password)
@@ -125,7 +124,7 @@ export class KeyPair {
125
124
126
127
public async exportToFile(filename: string, password: string): Promise<unknown> {
128
129
return await fs.promises.writeFile(filename, this.exportToString(password))
130
}
131
0 commit comments