From 75c875cfeed69962d68f8be40116d0f0dff69958 Mon Sep 17 00:00:00 2001 From: cf Date: Tue, 2 Jul 2024 02:59:56 +0800 Subject: [PATCH] added getPrivateKeyWIF to memory wallet --- src/wallet/memory/wallet.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/memory/wallet.ts b/src/wallet/memory/wallet.ts index 15db10d..9a754a6 100644 --- a/src/wallet/memory/wallet.ts +++ b/src/wallet/memory/wallet.ts @@ -27,6 +27,9 @@ class DogeMemoryWallet implements IDogeTransactionSigner{ this.wif = encodePrivateKeyToWIF(privateKey, networkId); this.name = name; } + getPrivateKeyWIF(): Promise { + return Promise.resolve(this.wif); + } getCompressedPublicKey(): Promise { return Promise.resolve(this.compressedPublicKeyHex); }