@harmoniclabs/cardanocli-pluts
Advanced tools
Comparing version 0.1.3-dev3 to 0.1.3-dev4
@@ -1,2 +0,2 @@ | ||
import { Address, AddressStr, Hash28, PrivateKey, PublicKey, Script, Tx } from "@harmoniclabs/plu-ts"; | ||
import { Address, AddressStr, PrivateKey, PublicKey, Script, Tx } from "@harmoniclabs/plu-ts"; | ||
import { WithPath } from "../../utils/path/withPath.js"; | ||
@@ -10,3 +10,2 @@ import { CliCmd, ICliCmdConfig } from "./CliCmd.js"; | ||
writePublicKey(pk: PublicKey, path: string): Promise<void>; | ||
writePublicKeyHash(pk: Hash28, path: string): Promise<void>; | ||
readPrivateKey(path: string): WithPath<PrivateKey>; | ||
@@ -13,0 +12,0 @@ writePrivateKey(pk: PrivateKey, path: string): Promise<void>; |
@@ -96,3 +96,3 @@ "use strict"; | ||
description: "Payment Verification Key", | ||
cborHex: pk.toString() | ||
cborHex: pk.toCbor().toString() | ||
}, undefined, 4))]; | ||
@@ -109,17 +109,2 @@ case 1: | ||
}; | ||
CliUtils.prototype.writePublicKeyHash = function (pk, path) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, promises_1.writeFile)(path, pk.toString())]; | ||
case 1: | ||
_a.sent(); | ||
return [4 /*yield*/, (0, waitForFileExists_1.waitForFileExists)(path)]; | ||
case 2: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
CliUtils.prototype.readPrivateKey = function (path) { | ||
@@ -136,3 +121,3 @@ return (0, withPath_1.withPath)(path, plu_ts_1.PrivateKey.fromCbor(JSON.parse((0, fs_1.readFileSync)(path) | ||
description: "Payment Signing Key", | ||
cborHex: pk.toString() | ||
cborHex: pk.toCbor().toString() | ||
}, undefined, 4))]; | ||
@@ -139,0 +124,0 @@ case 1: |
{ | ||
"name": "@harmoniclabs/cardanocli-pluts", | ||
"version": "0.1.3-dev3", | ||
"version": "0.1.3-dev4", | ||
"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
163283
3189