@harmoniclabs/cardanocli-pluts
Advanced tools
Comparing version 0.1.3-dev2 to 0.1.3-dev3
@@ -12,3 +12,3 @@ import { Address, AddressStr, Hash28, PrivateKey, PublicKey, Script, Tx } from "@harmoniclabs/plu-ts"; | ||
readPrivateKey(path: string): WithPath<PrivateKey>; | ||
writePrivateKey(pk: PublicKey, path: string): Promise<void>; | ||
writePrivateKey(pk: PrivateKey, path: string): Promise<void>; | ||
readScript(path: string): WithPath<Script>; | ||
@@ -15,0 +15,0 @@ writeScript(script: Script, path: string): Promise<void>; |
@@ -93,3 +93,7 @@ "use strict"; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, promises_1.writeFile)(path, pk.toString())]; | ||
case 0: return [4 /*yield*/, (0, promises_1.writeFile)(path, JSON.stringify({ | ||
type: "PaymentVerificationKeyShelley_ed25519", | ||
description: "Payment Verification Key", | ||
cborHex: pk.toString() | ||
}, undefined, 4))]; | ||
case 1: | ||
@@ -128,5 +132,12 @@ _a.sent(); | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.writePublicKey(pk, path)]; | ||
case 0: return [4 /*yield*/, (0, promises_1.writeFile)(path, JSON.stringify({ | ||
type: "PaymentSigningKeyShelley_ed25519", | ||
description: "Payment Signing Key", | ||
cborHex: pk.toString() | ||
}, undefined, 4))]; | ||
case 1: | ||
_a.sent(); | ||
return [4 /*yield*/, (0, waitForFileExists_1.waitForFileExists)(path)]; | ||
case 2: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
@@ -133,0 +144,0 @@ } |
{ | ||
"name": "@harmoniclabs/cardanocli-pluts", | ||
"version": "0.1.3-dev2", | ||
"version": "0.1.3-dev3", | ||
"description": "typescript wrapper on top of the cardano-cli tool", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163974
3205