@me2em/core 0.7.0-alpha.1 → 1.0.0-rc.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 +242 -47
- package/dist/attestation.d.ts +26 -17
- package/dist/attestation.d.ts.map +1 -1
- package/dist/attestation.js +76 -29
- package/dist/attestation.js.map +1 -1
- package/dist/canonical-name.d.ts +18 -0
- package/dist/canonical-name.d.ts.map +1 -1
- package/dist/canonical-name.js +28 -1
- package/dist/canonical-name.js.map +1 -1
- package/dist/crypto/derivation-paths.d.ts +33 -2
- package/dist/crypto/derivation-paths.d.ts.map +1 -1
- package/dist/crypto/derivation-paths.js +33 -2
- package/dist/crypto/derivation-paths.js.map +1 -1
- package/dist/crypto/derivation.d.ts +47 -0
- package/dist/crypto/derivation.d.ts.map +1 -0
- package/dist/crypto/derivation.js +68 -0
- package/dist/crypto/derivation.js.map +1 -0
- package/dist/crypto/ecdh.d.ts +19 -0
- package/dist/crypto/ecdh.d.ts.map +1 -0
- package/dist/crypto/ecdh.js +33 -0
- package/dist/crypto/ecdh.js.map +1 -0
- package/dist/crypto/ed25519.d.ts +24 -3
- package/dist/crypto/ed25519.d.ts.map +1 -1
- package/dist/crypto/ed25519.js +39 -6
- package/dist/crypto/ed25519.js.map +1 -1
- package/dist/crypto/hkdf.d.ts +11 -2
- package/dist/crypto/hkdf.d.ts.map +1 -1
- package/dist/crypto/hkdf.js +13 -1
- package/dist/crypto/hkdf.js.map +1 -1
- package/dist/crypto/index.d.ts +25 -0
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +25 -0
- package/dist/crypto/index.js.map +1 -1
- package/dist/disposed-error.d.ts +24 -0
- package/dist/disposed-error.d.ts.map +1 -0
- package/dist/disposed-error.js +39 -0
- package/dist/disposed-error.js.map +1 -0
- package/dist/errors.d.ts +67 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +54 -0
- package/dist/errors.js.map +1 -0
- package/dist/handle.d.ts +300 -14
- package/dist/handle.d.ts.map +1 -1
- package/dist/handle.js +463 -54
- package/dist/handle.js.map +1 -1
- package/dist/identity.d.ts +55 -11
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +105 -35
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/seed.d.ts +33 -22
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +59 -31
- package/dist/seed.js.map +1 -1
- package/dist/session.d.ts +42 -5
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +248 -117
- package/dist/session.js.map +1 -1
- package/dist/subhandle.d.ts +1 -125
- package/dist/subhandle.d.ts.map +1 -1
- package/dist/subhandle.js +12 -179
- package/dist/subhandle.js.map +1 -1
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/util.d.ts +47 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +72 -20
- package/dist/util.js.map +1 -1
- package/package.json +12 -5
- package/src/attestation.ts +88 -38
- package/src/canonical-name.ts +33 -1
- package/src/crypto/derivation-paths.ts +37 -2
- package/src/crypto/derivation.ts +90 -0
- package/src/crypto/ecdh.ts +37 -0
- package/src/crypto/ed25519.ts +39 -6
- package/src/crypto/hkdf.ts +13 -1
- package/src/crypto/index.ts +28 -1
- package/src/disposed-error.ts +45 -0
- package/src/errors.ts +88 -0
- package/src/handle.ts +630 -65
- package/src/identity.ts +111 -64
- package/src/index.ts +13 -7
- package/src/seed.ts +75 -32
- package/src/session.ts +336 -132
- package/src/subhandle.ts +12 -251
- package/src/types.ts +26 -0
- package/src/util.ts +78 -20
package/dist/seed.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// seed.ts
|
|
1
|
+
// packages/core/src/seed.ts
|
|
2
2
|
import { generateMnemonic, mnemonicToSeed, validateMnemonic } from '@scure/bip39';
|
|
3
3
|
import { wordlist } from '@scure/bip39/wordlists/english';
|
|
4
|
-
import {
|
|
4
|
+
import { AttestationError } from './errors.js';
|
|
5
5
|
/**
|
|
6
6
|
* Utilities for BIP39 mnemonic seed phrase generation and validation.
|
|
7
7
|
* These functions provide secure, deterministic seed phrase handling
|
|
@@ -29,7 +29,7 @@ import { sha256 } from './crypto/hkdf.js';
|
|
|
29
29
|
*/
|
|
30
30
|
export function generateSeedPhrase(strength = 128) {
|
|
31
31
|
if (strength !== 128 && strength !== 256) {
|
|
32
|
-
throw new
|
|
32
|
+
throw new AttestationError('MALFORMED', 'FORMAT', 'Seed strength must be 128 (12 words) or 256 (24 words)');
|
|
33
33
|
}
|
|
34
34
|
const mnemonic = generateMnemonic(wordlist, strength);
|
|
35
35
|
return mnemonic.split(' ');
|
|
@@ -53,70 +53,98 @@ export function normalizeSeedPhrase(seedPhrase) {
|
|
|
53
53
|
return words.map(word => word.toLowerCase().trim()).filter(word => word.length > 0);
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Validates a mnemonic seed phrase against the BIP39 standard
|
|
56
|
+
* Validates a mnemonic seed phrase against the BIP39 standard with
|
|
57
|
+
* detailed feedback.
|
|
57
58
|
*
|
|
58
|
-
* Checks:
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
59
|
+
* Checks (in order):
|
|
60
|
+
* 1. Word count must be 12 or 24.
|
|
61
|
+
* 2. Each word must exist in the BIP39 English wordlist.
|
|
62
|
+
* 3. Checksum must be valid.
|
|
62
63
|
*
|
|
63
64
|
* @param words - The mnemonic phrase to validate.
|
|
64
|
-
* @returns
|
|
65
|
+
* @returns A result object with isValid, error, wordCount, and invalidWords.
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
68
|
* ```ts
|
|
68
69
|
* const result = validateSeedPhrase(['abandon', 'abandon', ..., 'art']);
|
|
69
|
-
* if (!result.isValid)
|
|
70
|
+
* if (!result.isValid) {
|
|
71
|
+
* console.error(result.error);
|
|
72
|
+
* console.log('Invalid words:', result.invalidWords);
|
|
73
|
+
* }
|
|
70
74
|
* ```
|
|
71
75
|
*/
|
|
72
76
|
export function validateSeedPhrase(words) {
|
|
73
|
-
const wordCount = words.length;
|
|
74
|
-
if (wordCount !== 12 && wordCount !== 24) {
|
|
75
|
-
return { isValid: false, error: `Seed phrase must be 12 or 24 words, got ${wordCount}` };
|
|
76
|
-
}
|
|
77
77
|
const normalized = normalizeSeedPhrase(words);
|
|
78
|
+
const invalidWords = [];
|
|
78
79
|
for (const word of normalized) {
|
|
79
80
|
if (!wordlist.includes(word)) {
|
|
80
|
-
|
|
81
|
+
invalidWords.push(word);
|
|
81
82
|
}
|
|
82
83
|
}
|
|
84
|
+
if (normalized.length !== 12 && normalized.length !== 24) {
|
|
85
|
+
return {
|
|
86
|
+
isValid: false,
|
|
87
|
+
error: `Seed phrase must be 12 or 24 words, got ${normalized.length}`,
|
|
88
|
+
wordCount: normalized.length,
|
|
89
|
+
invalidWords,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
if (invalidWords.length > 0) {
|
|
93
|
+
return {
|
|
94
|
+
isValid: false,
|
|
95
|
+
error: `Invalid words found: ${invalidWords.join(', ')}`,
|
|
96
|
+
wordCount: normalized.length,
|
|
97
|
+
invalidWords,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
83
100
|
const isValid = validateMnemonic(normalized.join(' '), wordlist);
|
|
84
|
-
return {
|
|
101
|
+
return {
|
|
102
|
+
isValid,
|
|
103
|
+
error: isValid ? undefined : 'Invalid seed phrase checksum',
|
|
104
|
+
wordCount: normalized.length,
|
|
105
|
+
invalidWords: [],
|
|
106
|
+
};
|
|
85
107
|
}
|
|
86
108
|
/**
|
|
87
|
-
* Derives
|
|
88
|
-
*
|
|
89
|
-
*
|
|
109
|
+
* Derives the 64-byte BIP39 seed from a mnemonic phrase using PBKDF2
|
|
110
|
+
* (PBKDF2-HMAC-SHA512, 2048 iterations, salt `"mnemonic" + passphrase`).
|
|
111
|
+
* This is the standard BIP39 derivation: the full 512-bit seed is returned
|
|
112
|
+
* unmodified and serves as the input key material for identity derivation
|
|
113
|
+
* ({@link Identity.fromSeed} applies HKDF-SHA256 on top).
|
|
90
114
|
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
115
|
+
* Both 12-word (128-bit) and 24-word (256-bit) mnemonics produce the same
|
|
116
|
+
* 64-byte seed length, per the BIP39 standard.
|
|
93
117
|
*
|
|
94
118
|
* @param seedPhrase - The BIP39 mnemonic phrase (string or array of words).
|
|
95
119
|
* @param passphrase - Optional BIP39 passphrase ("25th word").
|
|
96
|
-
*
|
|
120
|
+
* BIP39 NFKD normalization (mnemonic and passphrase) is performed by
|
|
121
|
+
* `@scure/bip39`; this function passes the passphrase through
|
|
122
|
+
* unchanged. An empty string (default)
|
|
97
123
|
* matches phrases without a passphrase. WARNING: the passphrase
|
|
98
124
|
* is NOT recoverable — a different passphrase silently derives a
|
|
99
125
|
* completely different seed with no error indication. Store it
|
|
100
126
|
* as carefully as the mnemonic itself.
|
|
101
|
-
* @returns A Promise resolving to
|
|
127
|
+
* @returns A Promise resolving to the 64-byte Uint8Array BIP39 seed.
|
|
102
128
|
*
|
|
103
129
|
* @example
|
|
104
130
|
* ```ts
|
|
105
|
-
* const seed = await
|
|
106
|
-
* // Uint8Array(
|
|
131
|
+
* const seed = await get64ByteSeedFromMnemonic('abandon abandon ... art');
|
|
132
|
+
* // Uint8Array(64) [94, 176, 187, ...]
|
|
107
133
|
*
|
|
108
|
-
* const seedWithPassphrase = await
|
|
134
|
+
* const seedWithPassphrase = await get64ByteSeedFromMnemonic(words, 'my secret 25th word');
|
|
109
135
|
* ```
|
|
110
136
|
*/
|
|
111
|
-
export async function
|
|
137
|
+
export async function get64ByteSeedFromMnemonic(seedPhrase, passphrase = '') {
|
|
112
138
|
const words = normalizeSeedPhrase(seedPhrase);
|
|
113
139
|
const validation = validateSeedPhrase(words);
|
|
114
140
|
if (!validation.isValid) {
|
|
115
|
-
throw new
|
|
141
|
+
throw new AttestationError('MALFORMED', 'FORMAT', `Invalid seed phrase: ${validation.error}`);
|
|
116
142
|
}
|
|
117
143
|
const mnemonic = words.join(' ');
|
|
118
|
-
|
|
119
|
-
//
|
|
120
|
-
|
|
144
|
+
// Full 64-byte BIP39 seed (PBKDF2-HMAC-SHA512 output) — no post-hashing.
|
|
145
|
+
// Normalization (NFKD on mnemonic + passphrase salt) is the BIP39 layer's
|
|
146
|
+
// job — do not pre-normalize here (spec §2: implementations MUST NOT
|
|
147
|
+
// apply additional normalization on top).
|
|
148
|
+
return mnemonicToSeed(mnemonic, passphrase);
|
|
121
149
|
}
|
|
122
150
|
//# sourceMappingURL=seed.js.map
|
package/dist/seed.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../src/seed.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../src/seed.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAW/C;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,WAAyB,GAAG;IAC7D,IAAI,QAAQ,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,EAAE,CAAC;QACzC,MAAM,IAAI,gBAAgB,CACxB,WAAW,EACX,QAAQ,EACR,wDAAwD,CACzD,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtD,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAC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M;YAC5B,YAAY;SACb,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjE,OAAO;QACL,OAAO;QACP,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,8BAA8B;QAC3D,SAAS,EAAE,UAAU,CAAC,MAAM;QAC5B,YAAY,EAAE,EAAE;KACjB,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,UAA6B,EAC7B,aAAqB,EAAE;IAEvB,MAAM,KAAK,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACxB,MAAM,IAAI,gBAAgB,CAAC,WAAW,EAAE,QAAQ,EAAE,wBAAwB,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;IAChG,CAAC;IACD,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjC,yEAAyE;IACzE,0EAA0E;IAC1E,qEAAqE;IACrE,0CAA0C;IAC1C,OAAO,cAAc,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AAC9C,CAAC"}
|
package/dist/session.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface SessionPayload {
|
|
|
52
52
|
/**
|
|
53
53
|
* Interface for application-side revocation checking.
|
|
54
54
|
*
|
|
55
|
-
* The
|
|
55
|
+
* The Me2eM protocol does not prescribe a storage backend for revocation.
|
|
56
56
|
* Applications implement this interface using their preferred store
|
|
57
57
|
* (Redis, PostgreSQL, in-memory Set, etc.) and pass it to
|
|
58
58
|
* {@link Session.verifyStateless}.
|
|
@@ -105,6 +105,7 @@ export interface RevocationChecker {
|
|
|
105
105
|
* @category Core Primitives
|
|
106
106
|
*/
|
|
107
107
|
export declare class Session {
|
|
108
|
+
#private;
|
|
108
109
|
readonly handleId: string;
|
|
109
110
|
readonly handleName: string;
|
|
110
111
|
readonly audience: string;
|
|
@@ -118,10 +119,36 @@ export declare class Session {
|
|
|
118
119
|
/**
|
|
119
120
|
* Creates a new Session instance.
|
|
120
121
|
*
|
|
121
|
-
* @internal
|
|
122
|
-
* {@link Session.
|
|
122
|
+
* @internal Construction is a library-internal step (PR-11, D6): a
|
|
123
|
+
* Session is either freshly issued — {@link Session.create} — or the
|
|
124
|
+
* result of a verified token — {@link Session.verifyStateless} /
|
|
125
|
+
* {@link Session.verifyAttested}. External callers cannot fabricate a
|
|
126
|
+
* verified-looking session object; test/tooling reconstruction goes
|
|
127
|
+
* through the {@link Session.fromVerified} internal factory.
|
|
123
128
|
*/
|
|
124
|
-
constructor(
|
|
129
|
+
private constructor();
|
|
130
|
+
/**
|
|
131
|
+
* Rebuilds a Session from parts whose validity has already been
|
|
132
|
+
* established — the single sanctioned bypass of the private
|
|
133
|
+
* constructor (PR-11, D6).
|
|
134
|
+
*
|
|
135
|
+
* @internal Not public API. Production code gets sessions from
|
|
136
|
+
* {@link Session.create} / {@link Session.verifyStateless} /
|
|
137
|
+
* {@link Session.verifyAttested}; only library tests (via test-utils)
|
|
138
|
+
* use this factory. It performs no verification of its own — the name
|
|
139
|
+
* says "verified" because the CALLER asserts the parts come from a
|
|
140
|
+
* verification step or a fresh issuance.
|
|
141
|
+
*
|
|
142
|
+
* @param handleId - Handle / SubHandle ID (Base64URL of public key).
|
|
143
|
+
* @param handleName - Handle / SubHandle name.
|
|
144
|
+
* @param audience - Intended audience.
|
|
145
|
+
* @param scopes - Granted scopes.
|
|
146
|
+
* @param expiresAt - Expiration timestamp (Unix seconds).
|
|
147
|
+
* @param token - The full session token.
|
|
148
|
+
* @param path - Derivation path (SubHandle sessions only).
|
|
149
|
+
* @param sessionId - Session `jti` (revocation id).
|
|
150
|
+
*/
|
|
151
|
+
static fromVerified(handleId: string, handleName: string, audience: string, scopes: string[], expiresAt: number, token: string, path?: string[], sessionId?: string): Session;
|
|
125
152
|
/**
|
|
126
153
|
* Checks if the session has expired based on the current time.
|
|
127
154
|
*
|
|
@@ -171,7 +198,10 @@ export declare class Session {
|
|
|
171
198
|
* @param expectedAudience - The audience that this token must be intended for.
|
|
172
199
|
* @param revocationChecker - Optional checker for revocation list.
|
|
173
200
|
* @returns A Promise resolving to a verified Session instance.
|
|
174
|
-
* @throws {
|
|
201
|
+
* @throws {AttestationError} With `code`/`level` — `MALFORMED`/`FORMAT`
|
|
202
|
+
* for structural failures, then `AUDIENCE_NOT_PERMITTED`,
|
|
203
|
+
* `EXPIRED`, `NOT_YET_VALID` (session), `BAD_SIGNATURE`,
|
|
204
|
+
* `SUBJECT_MISMATCH`, `REVOKED` at level `SESSION`.
|
|
175
205
|
*
|
|
176
206
|
* @example
|
|
177
207
|
* ```ts
|
|
@@ -204,6 +234,13 @@ export declare class Session {
|
|
|
204
234
|
* expiry against the earliest attestation expiry; session signature
|
|
205
235
|
* against `hId`; session revocation — last.
|
|
206
236
|
*
|
|
237
|
+
* Internally (PR-11, 3.4/3.6) the flow is split into five private
|
|
238
|
+
* stages — `#verifyChainStructure`, `#verifyRootAttestation`,
|
|
239
|
+
* `#verifyHandleAttestation`, `#verifySessionAgainstGrant`,
|
|
240
|
+
* `#verifySessionSignature` — with the check order, error codes and
|
|
241
|
+
* error levels byte-identical to the pre-split monolith (pinned by the
|
|
242
|
+
* untouched attested-session, error-table and fuzz suites).
|
|
243
|
+
*
|
|
207
244
|
* @param attestationChain - Attestation tokens, root first; length
|
|
208
245
|
* must match the session kind (1 for Handle, 2 for SubHandle).
|
|
209
246
|
* @param revocationChecker - Optional; consulted for attestation
|
package/dist/session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"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