@owlmeans/basic-keys 0.1.7 → 0.1.8

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 CHANGED
@@ -80,3 +80,20 @@ enum KeyType { ED25519 = 'ed25519', XCHACHA = 'xchacha' }
80
80
  - [`@owlmeans/basic-envelope`](../basic-envelope) — uses `KeyPairModel` for envelope signing
81
81
  - [`@owlmeans/auth`](../auth) — `AuthCredentials` type consumed by this package
82
82
  - [`@owlmeans/did`](../did) — DID documents built on top of key pairs
83
+
84
+ <!-- owlmeans:agent-guidance:start -->
85
+ ## Agent guidance
86
+
87
+ This package ships embedded Claude Code skills and GitHub Copilot instructions under
88
+ `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
89
+ agent-skills installer to place them into your project's native locations
90
+ (`.claude/skills/` and `.github/instructions/`):
91
+
92
+ ```sh
93
+ npx @owlmeans/agent-skills
94
+ ```
95
+
96
+ The embedded files are version-matched to this package release. Do not edit them
97
+ directly — they are regenerated on each publish. To contribute guidance edits,
98
+ open a PR against the source monorepo.
99
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,38 @@
1
+ ---
2
+ description: "How to use @owlmeans/basic-keys — Ed25519 keypair generation, signing/verification, key model, and auth plugins."
3
+ applyTo: "**/*.ts, **/*.tsx"
4
+ ---
5
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
6
+
7
+ # @owlmeans/basic-keys
8
+
9
+ **Layer:** Core
10
+ **Install:** `"@owlmeans/basic-keys": "^0.1.8"` in `dependencies`
11
+
12
+ ## Key Exports
13
+
14
+ | Export | Description |
15
+ |--------|-------------|
16
+ | `KeyPair` types | Public/private key pair shape |
17
+ | `keypair` factory | Generate or load Ed25519 keypairs |
18
+ | `KeyModel` | Sign/verify helpers |
19
+ | Constants | Curve names, key encodings |
20
+ | `auth` exports | Auth plugin built on keypair signatures |
21
+ | Plugins | Pluggable signature verification |
22
+
23
+ ## Subpath Exports
24
+
25
+ - `./plugins` — pluggable key/auth plugins
26
+ - `./utils` — encoding/decoding helpers
27
+
28
+ ## Usage
29
+
30
+ ```typescript
31
+ import { keypair, KeyModel } from '@owlmeans/basic-keys'
32
+ const kp = keypair.generate()
33
+ const signature = KeyModel.sign(kp.privateKey, message)
34
+ ```
35
+
36
+ ## Depends On
37
+
38
+ - `@owlmeans/basic-envelope`, `@noble/curves`, `@noble/hashes`, `@scure/base`
@@ -0,0 +1,23 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@owlmeans/basic-keys",
4
+ "version": "0.1.8",
5
+ "generatedAt": "2026-06-11T16:30:27.161Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "basic-keys",
11
+ "category": "package-specific",
12
+ "file": "skills/basic-keys/SKILL.md",
13
+ "canonicalPath": ".claude/skills/basic-keys/SKILL.md"
14
+ },
15
+ {
16
+ "kind": "instruction",
17
+ "name": "basic-keys",
18
+ "category": "package-specific",
19
+ "file": "instructions/basic-keys.instructions.md",
20
+ "canonicalPath": ".github/instructions/basic-keys.instructions.md"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: basic-keys
3
+ description: How to use @owlmeans/basic-keys — Ed25519 keypair generation, signing/verification, key model, and auth plugins (built on @noble/curves and @noble/hashes). Auto-invoked when importing keypair utilities or implementing crypto-based auth.
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/basic-keys
9
+
10
+ **Layer:** Core
11
+ **Install:** `"@owlmeans/basic-keys": "^0.1.8"` in `dependencies`
12
+
13
+ ## Key Exports
14
+
15
+ | Export | Description |
16
+ |--------|-------------|
17
+ | `KeyPair` types | Public/private key pair shape |
18
+ | `keypair` factory | Generate or load Ed25519 keypairs |
19
+ | `KeyModel` | Sign/verify helpers |
20
+ | Constants | Curve names, key encodings |
21
+ | `auth` exports | Auth plugin built on keypair signatures |
22
+ | Plugins | Pluggable signature verification |
23
+
24
+ ## Subpath Exports
25
+
26
+ - `./plugins` — pluggable key/auth plugins
27
+ - `./utils` — encoding/decoding helpers
28
+
29
+ ## Usage
30
+
31
+ ```typescript
32
+ import { keypair, KeyModel } from '@owlmeans/basic-keys'
33
+
34
+ const kp = keypair.generate()
35
+ const signature = KeyModel.sign(kp.privateKey, message)
36
+ const ok = KeyModel.verify(kp.publicKey, message, signature)
37
+ ```
38
+
39
+ ## Depends On
40
+
41
+ - `@owlmeans/basic-envelope` — wraps signed payloads
42
+ - `@noble/curves`, `@noble/hashes`, `@scure/base`, `@scure/bip39` (peer/runtime crypto)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/basic-keys",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@owlmeans/dep-config": "workspace:*",
43
- "@owlmeans/test-auth": "^0.1.7",
43
+ "@owlmeans/test-auth": "^0.1.8",
44
44
  "@types/bun": "^1.3.0",
45
45
  "nodemon": "^3.1.11",
46
46
  "npm-check": "^6.0.1",
@@ -50,7 +50,7 @@
50
50
  "@noble/ciphers": "^1.2.1",
51
51
  "@noble/curves": "^1.6.0",
52
52
  "@noble/hashes": "^1.5.0",
53
- "@owlmeans/auth": "^0.1.7",
53
+ "@owlmeans/auth": "^0.1.8",
54
54
  "@scure/base": "^1.1.9",
55
55
  "canonicalize": "^2.0.0"
56
56
  },