Skip to content

Commit fec6132

Browse files
committed
Fixed bug with 'PrivateKey' type definition;
1 parent 4ee8565 commit fec6132

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Crypto.re

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module KeyObject = {
3636

3737
module PivateKey = {
3838
include KeyObject.Impl;
39-
type kind = [ KeyObject.publicKey];
39+
type kind = [ KeyObject.privateKey];
4040
type t('a) = KeyObject.t('a, [ kind]);
4141
[@bs.module "crypto"] external make: Buffer.t => t('a) = "createPrivateKey";
4242
[@bs.module "crypto"]
@@ -193,7 +193,7 @@ module Decipher = {
193193
) =>
194194
t =
195195
"createDecipheriv";
196-
} /* }*/ /* module Verify = */;
196+
} /* }*/ /* }*/ /* module Verify = */;
197197

198198
// module DiffieHellman = {
199199

@@ -203,6 +203,4 @@ module Decipher = {
203203

204204
// };
205205

206-
// module Sign = {
207-
208-
// };
206+
// module Sign = {

0 commit comments

Comments
 (0)