@lindorm/okp 0.2.11 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/dist/classes/OkpKit.d.ts +2 -2
- package/dist/classes/OkpKit.d.ts.map +1 -1
- package/dist/classes/OkpKit.js +11 -15
- package/dist/classes/OkpKit.js.map +1 -1
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.d.ts.map +1 -1
- package/dist/classes/index.js +1 -17
- package/dist/classes/index.js.map +1 -1
- package/dist/errors/OkpError.js +2 -6
- package/dist/errors/OkpError.js.map +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +1 -17
- package/dist/errors/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -19
- package/dist/index.js.map +1 -1
- package/dist/internal/get-key.d.ts +1 -1
- package/dist/internal/get-key.d.ts.map +1 -1
- package/dist/internal/get-key.js +5 -10
- package/dist/internal/get-key.js.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +2 -18
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/okp-signature.d.ts +1 -1
- package/dist/internal/okp-signature.d.ts.map +1 -1
- package/dist/internal/okp-signature.js +10 -16
- package/dist/internal/okp-signature.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -17
- package/dist/types/index.js.map +1 -1
- package/dist/types/okp-kit.d.ts +2 -2
- package/dist/types/okp-kit.d.ts.map +1 -1
- package/dist/types/okp-kit.js +1 -2
- package/package.json +19 -12
- package/CHANGELOG.md +0 -105
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @lindorm/okp
|
|
2
2
|
|
|
3
|
-
EdDSA
|
|
3
|
+
EdDSA signing kit built on Node's `crypto` module and [`@lindorm/kryptos`](https://www.npmjs.com/package/@lindorm/kryptos). Provides an `OkpKit` class that implements the `IKeyKit` contract used across the Lindorm cryptography packages.
|
|
4
|
+
|
|
5
|
+
This package is **ESM-only**.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -8,6 +10,16 @@ EdDSA signature kit built on Node's `crypto` module and [`@lindorm/kryptos`](htt
|
|
|
8
10
|
npm install @lindorm/okp
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
`OkpKit` accepts an `IKryptos` instance constructed by the consumer, so [`@lindorm/kryptos`](https://www.npmjs.com/package/@lindorm/kryptos) must also be installed in your project.
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- Sign, verify, and assert EdDSA signatures over `Buffer` or `string` input
|
|
18
|
+
- Supports the `EdDSA` algorithm on the `Ed25519` and `Ed448` curves
|
|
19
|
+
- DSA encoding selectable between `der` and `ieee-p1363`
|
|
20
|
+
- Configurable string output encoding via Node's `BufferEncoding`
|
|
21
|
+
- Rejects non-OKP keys and OKP encryption curves (`X25519`, `X448`) at construction time
|
|
22
|
+
|
|
11
23
|
## Quick Start
|
|
12
24
|
|
|
13
25
|
```typescript
|
|
@@ -17,16 +29,12 @@ import { KryptosKit } from "@lindorm/kryptos";
|
|
|
17
29
|
const kryptos = KryptosKit.generate.sig.okp({ algorithm: "EdDSA", curve: "Ed25519" });
|
|
18
30
|
const kit = new OkpKit({ kryptos });
|
|
19
31
|
|
|
20
|
-
// Sign
|
|
21
32
|
const signature = kit.sign("hello world");
|
|
22
33
|
|
|
23
|
-
// Verify
|
|
24
34
|
kit.verify("hello world", signature); // true
|
|
25
35
|
|
|
26
|
-
//
|
|
27
|
-
kit.assert("hello world", signature);
|
|
36
|
+
kit.assert("hello world", signature); // throws OkpError if invalid
|
|
28
37
|
|
|
29
|
-
// Format Buffer to string
|
|
30
38
|
kit.format(signature); // base64 string
|
|
31
39
|
```
|
|
32
40
|
|
|
@@ -34,13 +42,13 @@ kit.format(signature); // base64 string
|
|
|
34
42
|
|
|
35
43
|
```typescript
|
|
36
44
|
new OkpKit({
|
|
37
|
-
kryptos, // IKryptos — must be an OKP key
|
|
45
|
+
kryptos, // IKryptos — must be an OKP key on a signing curve (Ed25519 or Ed448)
|
|
38
46
|
dsa: "der", // DsaEncoding — "der" | "ieee-p1363" (default: "der")
|
|
39
|
-
encoding: "base64", // BufferEncoding —
|
|
47
|
+
encoding: "base64", // BufferEncoding — string encoding for verify/format (default: "base64")
|
|
40
48
|
});
|
|
41
49
|
```
|
|
42
50
|
|
|
43
|
-
The constructor validates that the key is an OKP
|
|
51
|
+
The constructor validates that the key is an OKP key on one of the supported signing curves (`Ed25519`, `Ed448`). OKP encryption curves (`X25519`, `X448`) and non-OKP keys are rejected with an `OkpError`.
|
|
44
52
|
|
|
45
53
|
## API
|
|
46
54
|
|
|
@@ -55,6 +63,11 @@ class OkpKit implements IKeyKit {
|
|
|
55
63
|
|
|
56
64
|
`KeyData` is `Buffer | string`.
|
|
57
65
|
|
|
66
|
+
- `sign(data)` — produces an EdDSA signature `Buffer`. String input is encoded as UTF-8 before signing.
|
|
67
|
+
- `verify(data, signature)` — returns `true` if the signature is valid. String signatures are decoded using the configured `encoding`.
|
|
68
|
+
- `assert(data, signature)` — same as `verify`, but throws `OkpError` instead of returning `false`.
|
|
69
|
+
- `format(buffer)` — encodes a signature `Buffer` to a string using the configured `encoding`.
|
|
70
|
+
|
|
58
71
|
## Supported Curves
|
|
59
72
|
|
|
60
73
|
| Curve | Algorithm | Use |
|
|
@@ -62,11 +75,11 @@ class OkpKit implements IKeyKit {
|
|
|
62
75
|
| Ed25519 | EdDSA | Signing |
|
|
63
76
|
| Ed448 | EdDSA | Signing |
|
|
64
77
|
|
|
65
|
-
X25519 and X448 are encryption curves and are not supported by `OkpKit`.
|
|
78
|
+
`X25519` and `X448` are OKP encryption curves and are not supported by `OkpKit`. For Diffie-Hellman key agreement and content encryption with those curves, see [`@lindorm/aes`](https://www.npmjs.com/package/@lindorm/aes).
|
|
66
79
|
|
|
67
80
|
## Error Handling
|
|
68
81
|
|
|
69
|
-
All errors are `OkpError
|
|
82
|
+
All errors thrown by this package are instances of `OkpError`:
|
|
70
83
|
|
|
71
84
|
```typescript
|
|
72
85
|
import { OkpError } from "@lindorm/okp";
|
package/dist/classes/OkpKit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IKeyKit, KeyData } from "@lindorm/types";
|
|
2
|
-
import { OkpKitOptions } from "../types";
|
|
1
|
+
import type { IKeyKit, KeyData } from "@lindorm/types";
|
|
2
|
+
import type { OkpKitOptions } from "../types/index.js";
|
|
3
3
|
export declare class OkpKit implements IKeyKit {
|
|
4
4
|
private readonly dsa;
|
|
5
5
|
private readonly encoding;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OkpKit.d.ts","sourceRoot":"","sources":["../../src/classes/OkpKit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OkpKit.d.ts","sourceRoot":"","sources":["../../src/classes/OkpKit.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAe,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOvD,qBAAa,MAAO,YAAW,OAAO;IACpC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiB;IAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;gBAEnB,OAAO,EAAE,aAAa;IAelC,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;IAQ3B,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO;IAUlD,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI;IAU/C,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGpC"}
|
package/dist/classes/OkpKit.js
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const errors_1 = require("../errors");
|
|
6
|
-
const index_1 = require("../internal/index");
|
|
7
|
-
class OkpKit {
|
|
1
|
+
import { KryptosKit, OKP_SIG_CURVES, } from "@lindorm/kryptos";
|
|
2
|
+
import { OkpError } from "../errors/index.js";
|
|
3
|
+
import { assertOkpSignature, createOkpSignature, verifyOkpSignature, } from "../internal/index.js";
|
|
4
|
+
export class OkpKit {
|
|
8
5
|
dsa;
|
|
9
6
|
encoding;
|
|
10
7
|
kryptos;
|
|
11
8
|
constructor(options) {
|
|
12
9
|
this.dsa = options.dsa ?? "der";
|
|
13
10
|
this.encoding = options.encoding ?? "base64";
|
|
14
|
-
if (!
|
|
15
|
-
throw new
|
|
11
|
+
if (!KryptosKit.isOkp(options.kryptos)) {
|
|
12
|
+
throw new OkpError("Invalid Kryptos instance");
|
|
16
13
|
}
|
|
17
|
-
if (!
|
|
18
|
-
throw new
|
|
14
|
+
if (!OKP_SIG_CURVES.includes(options.kryptos.curve)) {
|
|
15
|
+
throw new OkpError("OkpKit only supports signing curves (Ed25519, Ed448)");
|
|
19
16
|
}
|
|
20
17
|
this.kryptos = options.kryptos;
|
|
21
18
|
}
|
|
22
19
|
sign(data) {
|
|
23
|
-
return
|
|
20
|
+
return createOkpSignature({
|
|
24
21
|
data,
|
|
25
22
|
dsaEncoding: this.dsa,
|
|
26
23
|
kryptos: this.kryptos,
|
|
27
24
|
});
|
|
28
25
|
}
|
|
29
26
|
verify(data, signature) {
|
|
30
|
-
return
|
|
27
|
+
return verifyOkpSignature({
|
|
31
28
|
data,
|
|
32
29
|
dsaEncoding: this.dsa,
|
|
33
30
|
encoding: this.encoding,
|
|
@@ -36,7 +33,7 @@ class OkpKit {
|
|
|
36
33
|
});
|
|
37
34
|
}
|
|
38
35
|
assert(data, signature) {
|
|
39
|
-
return
|
|
36
|
+
return assertOkpSignature({
|
|
40
37
|
data,
|
|
41
38
|
dsaEncoding: this.dsa,
|
|
42
39
|
encoding: this.encoding,
|
|
@@ -48,5 +45,4 @@ class OkpKit {
|
|
|
48
45
|
return data.toString(this.encoding);
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
|
-
exports.OkpKit = OkpKit;
|
|
52
48
|
//# sourceMappingURL=OkpKit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OkpKit.js","sourceRoot":"","sources":["../../src/classes/OkpKit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OkpKit.js","sourceRoot":"","sources":["../../src/classes/OkpKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,cAAc,GAEf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,OAAO,MAAM;IACA,GAAG,CAAc;IACjB,QAAQ,CAAiB;IACzB,OAAO,CAAc;IAEtC,YAAmB,OAAsB;QACvC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,KAAK,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC;QAE7C,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,QAAQ,CAAC,0BAA0B,CAAC,CAAC;QACjD,CAAC;QAED,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAoB,CAAC,EAAE,CAAC;YACnE,MAAM,IAAI,QAAQ,CAAC,sDAAsD,CAAC,CAAC;QAC7E,CAAC;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACjC,CAAC;IAEM,IAAI,CAAC,IAAa;QACvB,OAAO,kBAAkB,CAAC;YACxB,IAAI;YACJ,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,IAAa,EAAE,SAAkB;QAC7C,OAAO,kBAAkB,CAAC;YACxB,IAAI;YACJ,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,IAAa,EAAE,SAAkB;QAC7C,OAAO,kBAAkB,CAAC;YACxB,IAAI;YACJ,WAAW,EAAE,IAAI,CAAC,GAAG;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACF"}
|
package/dist/classes/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./OkpKit";
|
|
1
|
+
export * from "./OkpKit.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/classes/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./OkpKit"), exports);
|
|
1
|
+
export * from "./OkpKit.js";
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/errors/OkpError.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.OkpError = void 0;
|
|
4
|
-
const errors_1 = require("@lindorm/errors");
|
|
5
|
-
class OkpError extends errors_1.LindormError {
|
|
1
|
+
import { LindormError } from "@lindorm/errors";
|
|
2
|
+
export class OkpError extends LindormError {
|
|
6
3
|
}
|
|
7
|
-
exports.OkpError = OkpError;
|
|
8
4
|
//# sourceMappingURL=OkpError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OkpError.js","sourceRoot":"","sources":["../../src/errors/OkpError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OkpError.js","sourceRoot":"","sources":["../../src/errors/OkpError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,OAAO,QAAS,SAAQ,YAAY;CAAG"}
|
package/dist/errors/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./OkpError";
|
|
1
|
+
export * from "./OkpError.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
package/dist/errors/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./OkpError"), exports);
|
|
1
|
+
export * from "./OkpError.js";
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
package/dist/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./classes";
|
|
2
|
-
export * from "./errors";
|
|
3
|
-
export * from "./types";
|
|
1
|
+
export * from "./classes/index.js";
|
|
2
|
+
export * from "./errors/index.js";
|
|
3
|
+
export * from "./types/index.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./classes"), exports);
|
|
18
|
-
__exportStar(require("./errors"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from "./classes/index.js";
|
|
2
|
+
export * from "./errors/index.js";
|
|
3
|
+
export * from "./types/index.js";
|
|
20
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IKryptosOkp } from "@lindorm/kryptos";
|
|
1
|
+
import type { IKryptosOkp } from "@lindorm/kryptos";
|
|
2
2
|
export declare const getSignKey: (kryptos: IKryptosOkp) => string;
|
|
3
3
|
export declare const getVerifyKey: (kryptos: IKryptosOkp) => string;
|
|
4
4
|
//# sourceMappingURL=get-key.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-key.d.ts","sourceRoot":"","sources":["../../src/internal/get-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-key.d.ts","sourceRoot":"","sources":["../../src/internal/get-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,eAAO,MAAM,UAAU,GAAI,SAAS,WAAW,KAAG,MAQjD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,WAAW,KAAG,MAQnD,CAAC"}
|
package/dist/internal/get-key.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getVerifyKey = exports.getSignKey = void 0;
|
|
4
|
-
const errors_1 = require("../errors");
|
|
5
|
-
const getSignKey = (kryptos) => {
|
|
1
|
+
import { OkpError } from "../errors/index.js";
|
|
2
|
+
export const getSignKey = (kryptos) => {
|
|
6
3
|
const { privateKey } = kryptos.export("pem");
|
|
7
4
|
if (!privateKey) {
|
|
8
|
-
throw new
|
|
5
|
+
throw new OkpError("Missing private key");
|
|
9
6
|
}
|
|
10
7
|
return privateKey;
|
|
11
8
|
};
|
|
12
|
-
|
|
13
|
-
const getVerifyKey = (kryptos) => {
|
|
9
|
+
export const getVerifyKey = (kryptos) => {
|
|
14
10
|
const { publicKey } = kryptos.export("pem");
|
|
15
11
|
if (!publicKey) {
|
|
16
|
-
throw new
|
|
12
|
+
throw new OkpError("Missing public key");
|
|
17
13
|
}
|
|
18
14
|
return publicKey;
|
|
19
15
|
};
|
|
20
|
-
exports.getVerifyKey = getVerifyKey;
|
|
21
16
|
//# sourceMappingURL=get-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-key.js","sourceRoot":"","sources":["../../src/internal/get-key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-key.js","sourceRoot":"","sources":["../../src/internal/get-key.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAoB,EAAU,EAAE;IACzD,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE7C,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAoB,EAAU,EAAE;IAC3D,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE5C,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./get-key";
|
|
2
|
-
export * from "./okp-signature";
|
|
1
|
+
export * from "./get-key.js";
|
|
2
|
+
export * from "./okp-signature.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
package/dist/internal/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-key"), exports);
|
|
18
|
-
__exportStar(require("./okp-signature"), exports);
|
|
1
|
+
export * from "./get-key.js";
|
|
2
|
+
export * from "./okp-signature.js";
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateOkpSignatureOptions, VerifyOkpSignatureOptions } from "../types/okp-kit";
|
|
1
|
+
import type { CreateOkpSignatureOptions, VerifyOkpSignatureOptions } from "../types/okp-kit.js";
|
|
2
2
|
export declare const createOkpSignature: ({ data, dsaEncoding, kryptos, }: CreateOkpSignatureOptions) => Buffer;
|
|
3
3
|
export declare const verifyOkpSignature: ({ data, dsaEncoding, encoding, kryptos, signature, }: VerifyOkpSignatureOptions) => boolean;
|
|
4
4
|
export declare const assertOkpSignature: ({ data, dsaEncoding, encoding, kryptos, signature, }: VerifyOkpSignatureOptions) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"okp-signature.d.ts","sourceRoot":"","sources":["../../src/internal/okp-signature.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"okp-signature.d.ts","sourceRoot":"","sources":["../../src/internal/okp-signature.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,kBAAkB,GAAI,iCAIhC,yBAAyB,KAAG,MAI3B,CAAC;AAEL,eAAO,MAAM,kBAAkB,GAAI,sDAMhC,yBAAyB,KAAG,OAM5B,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,sDAMhC,yBAAyB,KAAG,IAG9B,CAAC"}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const get_key_1 = require("./get-key");
|
|
8
|
-
const createOkpSignature = ({ data, dsaEncoding, kryptos, }) => (0, crypto_1.sign)(undefined, (0, is_1.isString)(data) ? Buffer.from(data, "utf8") : data, {
|
|
9
|
-
key: (0, get_key_1.getSignKey)(kryptos),
|
|
1
|
+
import { isString } from "@lindorm/is";
|
|
2
|
+
import { sign, verify } from "crypto";
|
|
3
|
+
import { OkpError } from "../errors/index.js";
|
|
4
|
+
import { getSignKey, getVerifyKey } from "./get-key.js";
|
|
5
|
+
export const createOkpSignature = ({ data, dsaEncoding, kryptos, }) => sign(undefined, isString(data) ? Buffer.from(data, "utf8") : data, {
|
|
6
|
+
key: getSignKey(kryptos),
|
|
10
7
|
dsaEncoding,
|
|
11
8
|
});
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const assertOkpSignature = ({ data, dsaEncoding, encoding, kryptos, signature, }) => {
|
|
16
|
-
if ((0, exports.verifyOkpSignature)({ data, dsaEncoding, encoding, kryptos, signature }))
|
|
9
|
+
export const verifyOkpSignature = ({ data, dsaEncoding, encoding, kryptos, signature, }) => verify(undefined, isString(data) ? Buffer.from(data, "utf8") : data, { key: getVerifyKey(kryptos), dsaEncoding }, isString(signature) ? Buffer.from(signature, encoding) : signature);
|
|
10
|
+
export const assertOkpSignature = ({ data, dsaEncoding, encoding, kryptos, signature, }) => {
|
|
11
|
+
if (verifyOkpSignature({ data, dsaEncoding, encoding, kryptos, signature }))
|
|
17
12
|
return;
|
|
18
|
-
throw new
|
|
13
|
+
throw new OkpError("Invalid signature");
|
|
19
14
|
};
|
|
20
|
-
exports.assertOkpSignature = assertOkpSignature;
|
|
21
15
|
//# sourceMappingURL=okp-signature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"okp-signature.js","sourceRoot":"","sources":["../../src/internal/okp-signature.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"okp-signature.js","sourceRoot":"","sources":["../../src/internal/okp-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAK9C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,IAAI,EACJ,WAAW,EACX,OAAO,GACmB,EAAU,EAAE,CACtC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;IACjE,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC;IACxB,WAAW;CACZ,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,GACiB,EAAW,EAAE,CACvC,MAAM,CACJ,SAAS,EACT,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EACjD,EAAE,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,EAC3C,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CACnE,CAAC;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,GACiB,EAAQ,EAAE;IACpC,IAAI,kBAAkB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;QAAE,OAAO;IACpF,MAAM,IAAI,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAC1C,CAAC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./okp-kit";
|
|
1
|
+
export * from "./okp-kit.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./okp-kit"), exports);
|
|
1
|
+
export * from "./okp-kit.js";
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
package/dist/types/okp-kit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IKryptos, IKryptosOkp } from "@lindorm/kryptos";
|
|
2
|
-
import { DsaEncoding, KeyData } from "@lindorm/types";
|
|
1
|
+
import type { IKryptos, IKryptosOkp } from "@lindorm/kryptos";
|
|
2
|
+
import type { DsaEncoding, KeyData } from "@lindorm/types";
|
|
3
3
|
export type CreateOkpSignatureOptions = {
|
|
4
4
|
data: KeyData;
|
|
5
5
|
dsaEncoding: DsaEncoding;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"okp-kit.d.ts","sourceRoot":"","sources":["../../src/types/okp-kit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"okp-kit.d.ts","sourceRoot":"","sources":["../../src/types/okp-kit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC"}
|
package/dist/types/okp-kit.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lindorm/okp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"author": "Jonn Nilsson",
|
|
6
6
|
"repository": {
|
|
@@ -11,15 +11,24 @@
|
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
15
18
|
"typings": "dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
16
25
|
"scripts": {
|
|
17
26
|
"build": "rimraf dist && tsc -b ./tsconfig.build.json",
|
|
18
27
|
"example": "ts-node example",
|
|
19
28
|
"prettier": "prettier --write ./src/*",
|
|
20
|
-
"test": "
|
|
21
|
-
"test:
|
|
22
|
-
"test:watch": "
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:unit": "vitest run --exclude '**/*.integration.test.ts'",
|
|
31
|
+
"test:watch": "vitest",
|
|
23
32
|
"typecheck": "tsc",
|
|
24
33
|
"typecheck:watch": "tsc --watch",
|
|
25
34
|
"update": "ncu -i",
|
|
@@ -27,12 +36,10 @@
|
|
|
27
36
|
"verify": "npm run typecheck && npm run build && npm test"
|
|
28
37
|
},
|
|
29
38
|
"dependencies": {
|
|
30
|
-
"@lindorm/errors": "^0.1
|
|
31
|
-
"@lindorm/is": "^0.1
|
|
32
|
-
"@lindorm/kryptos": "^0.
|
|
33
|
-
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@lindorm/types": "^0.5.0"
|
|
39
|
+
"@lindorm/errors": "^0.2.1",
|
|
40
|
+
"@lindorm/is": "^0.2.1",
|
|
41
|
+
"@lindorm/kryptos": "^0.8.1",
|
|
42
|
+
"@lindorm/types": "^0.6.1"
|
|
36
43
|
},
|
|
37
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "da067071d415e07d7d25bbac1621b9e02fcc3166"
|
|
38
45
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.2.11](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.10...@lindorm/okp@0.2.11) (2026-04-19)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
9
|
-
|
|
10
|
-
## [0.2.10](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.9...@lindorm/okp@0.2.10) (2026-04-15)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
13
|
-
|
|
14
|
-
## [0.2.9](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.8...@lindorm/okp@0.2.9) (2026-04-01)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
17
|
-
|
|
18
|
-
## [0.2.8](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.7...@lindorm/okp@0.2.8) (2026-03-13)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
21
|
-
|
|
22
|
-
## [0.2.7](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.6...@lindorm/okp@0.2.7) (2026-03-13)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
25
|
-
|
|
26
|
-
## [0.2.6](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.5...@lindorm/okp@0.2.6) (2026-02-17)
|
|
27
|
-
|
|
28
|
-
### Bug Fixes
|
|
29
|
-
|
|
30
|
-
- **ec,oct,okp,rsa:** harden signing kits with validation and security fixes ([910f016](https://github.com/lindorm-io/monorepo/commit/910f01669aefcb4e6eb69c0297291fe2404232f8))
|
|
31
|
-
|
|
32
|
-
## [0.2.5](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.4...@lindorm/okp@0.2.5) (2025-09-18)
|
|
33
|
-
|
|
34
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
35
|
-
|
|
36
|
-
## [0.2.4](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.3...@lindorm/okp@0.2.4) (2025-07-19)
|
|
37
|
-
|
|
38
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
39
|
-
|
|
40
|
-
## [0.2.3](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.2...@lindorm/okp@0.2.3) (2025-07-12)
|
|
41
|
-
|
|
42
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
43
|
-
|
|
44
|
-
## [0.2.2](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.1...@lindorm/okp@0.2.2) (2025-07-10)
|
|
45
|
-
|
|
46
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
47
|
-
|
|
48
|
-
## [0.2.1](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.2.0...@lindorm/okp@0.2.1) (2025-07-02)
|
|
49
|
-
|
|
50
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
51
|
-
|
|
52
|
-
# [0.2.0](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.8...@lindorm/okp@0.2.0) (2025-06-17)
|
|
53
|
-
|
|
54
|
-
### Bug Fixes
|
|
55
|
-
|
|
56
|
-
- add and implement keykit interface ([70762aa](https://github.com/lindorm-io/monorepo/commit/70762aaca51c9fe904121b69b4bc072cdd89c8a2))
|
|
57
|
-
- align with changes to kryptos ([74bbfff](https://github.com/lindorm-io/monorepo/commit/74bbfff6fb50504dc70327f7de3fd6d4b45cb65a))
|
|
58
|
-
- align with kryptos changes ([206eb38](https://github.com/lindorm-io/monorepo/commit/206eb38ae2a03b14973e706035c87a953cc753af))
|
|
59
|
-
|
|
60
|
-
### Features
|
|
61
|
-
|
|
62
|
-
- add dsa encoding ([a893601](https://github.com/lindorm-io/monorepo/commit/a8936015a9408733445cdbda8d8b70d633a2330a))
|
|
63
|
-
- upgrade key kits ([198956c](https://github.com/lindorm-io/monorepo/commit/198956c5fa276ae192af22cb204b3c2158c74339))
|
|
64
|
-
|
|
65
|
-
## [0.1.8](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.7...@lindorm/okp@0.1.8) (2025-01-28)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
68
|
-
|
|
69
|
-
## [0.1.7](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.6...@lindorm/okp@0.1.7) (2024-10-12)
|
|
70
|
-
|
|
71
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
72
|
-
|
|
73
|
-
## [0.1.6](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.5...@lindorm/okp@0.1.6) (2024-10-09)
|
|
74
|
-
|
|
75
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
76
|
-
|
|
77
|
-
## [0.1.5](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.4...@lindorm/okp@0.1.5) (2024-09-25)
|
|
78
|
-
|
|
79
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
80
|
-
|
|
81
|
-
## [0.1.4](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.3...@lindorm/okp@0.1.4) (2024-09-23)
|
|
82
|
-
|
|
83
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
84
|
-
|
|
85
|
-
## [0.1.3](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.2...@lindorm/okp@0.1.3) (2024-09-20)
|
|
86
|
-
|
|
87
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
88
|
-
|
|
89
|
-
## [0.1.2](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.1...@lindorm/okp@0.1.2) (2024-05-20)
|
|
90
|
-
|
|
91
|
-
**Note:** Version bump only for package @lindorm/okp
|
|
92
|
-
|
|
93
|
-
## [0.1.1](https://github.com/lindorm-io/monorepo/compare/@lindorm/okp@0.1.0...@lindorm/okp@0.1.1) (2024-05-19)
|
|
94
|
-
|
|
95
|
-
### Bug Fixes
|
|
96
|
-
|
|
97
|
-
- align with kryptos changes ([344c4e2](https://github.com/lindorm-io/monorepo/commit/344c4e2fad07e66c91f7e0820bfc929c1f8ffcab))
|
|
98
|
-
- rename interfaces ([3b1f457](https://github.com/lindorm-io/monorepo/commit/3b1f45736f88b8c2d4481cbeca6da87bf8443bde))
|
|
99
|
-
- simplify interfaces with kryptos metadata ([c4075d2](https://github.com/lindorm-io/monorepo/commit/c4075d2e133c2fe0a1fafa548da68db34b3407c6))
|
|
100
|
-
|
|
101
|
-
# 0.1.0 (2024-05-12)
|
|
102
|
-
|
|
103
|
-
### Features
|
|
104
|
-
|
|
105
|
-
- initialise okp package ([8ecd15f](https://github.com/lindorm-io/monorepo/commit/8ecd15f0079ea9cd830d1d006ea2fb0433a264e2))
|