@macula-io/ts 0.20.0 → 0.21.0

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
@@ -162,6 +162,7 @@ a Promise; events, served calls and served streams reach JavaScript through a
162
162
  | Streams (`openStream`, `serveStream`) | ✅ | ✅ | Server, client and bidi; a QUIC stream per session, released on every path |
163
163
  | Publish/subscribe | ✅ | ✅ | Signed publications, delivered once across links |
164
164
  | DHT (`findRecord`, `findRecords`, `findRecordsByType`, `putRecord`) | ✅ | — | Records verified before they are handed on |
165
+ | Realm proof v2 (`NodeKey.deviceRequestProof`) | ✅ | — | macula-realm#29: a join session over HTTP (`"http"`, the realm's JSON rule) or a membership UCAN over the mesh (`"mesh"`), with its device_info and ttl_seconds, the realm and the procedure signed, and a nonce; the realm's own vector reproduced through macula-go's encoder |
165
166
  | Node-served content (`shareContent`, `unshareContent`, `getContent`) | ✅ | ✅ | macula 12.6.0 (D27): shared on the node's own `~<node_id>/content_v1` and announced; a fetch checks the block, the manifest and every chunk against the content id, bounded, with no realm key; `NotSharedError` / `ContentUnavailableError` |
166
167
 
167
168
  ## Not yet implemented
package/dist/binding.d.ts CHANGED
@@ -17,6 +17,8 @@ export declare const native: {
17
17
  keyPublicKey(key: Handle): Uint8Array;
18
18
  keyProfile(key: Handle): string;
19
19
  keySign(key: Handle, data: Uint8Array): Promise<Uint8Array>;
20
+ keyDeviceRequestProof(key: Handle, realm: Uint8Array, procedure: string, requestJson: string, rule: number): Promise<string>;
21
+ deviceRequestMessage(publicKey: Uint8Array, realm: Uint8Array, procedure: string, timestampMs: number, nonce: Uint8Array, requestJson: string, rule: number): Uint8Array;
20
22
  keyFree(key: Handle): void;
21
23
  verify(data: Uint8Array, signature: Uint8Array, publicKey: Uint8Array, profile: string): boolean;
22
24
  poolConnect(key: Handle, seedsJson: string, optionsJson: string): Promise<Handle>;
@@ -1 +1 @@
1
- {"version":3,"file":"binding.js","sourceRoot":"","sources":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AAQ,CAmDvD,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { NodeKey, type Profile } from "./key.js";
1
+ export { NodeKey, JOIN_SESSION_PROCEDURE, MEMBERSHIP_UCAN_PROCEDURE, type Profile, type DeviceRequestRule, type DeviceRequestProof, } from "./key.js";
2
2
  export { Pool, Subscription, Served, RecordType, type Seed, type PoolOptions, type LinkStatus, type Provider, type Event, type Request, type DhtRecord, } from "./pool.js";
3
3
  export { NotSharedError, ContentUnavailableError, DEFAULT_CONTENT_TIMEOUT_MS, type ContentOptions, type Mcid, } from "./content.js";
4
4
  export { Stream, StreamMode, type StreamEvent, type StreamRequest } from "./stream.js";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @macula-io/ts: the macula 12 mesh from TypeScript, over macula-go.
2
- export { NodeKey } from "./key.js";
2
+ export { NodeKey, JOIN_SESSION_PROCEDURE, MEMBERSHIP_UCAN_PROCEDURE, } from "./key.js";
3
3
  export { Pool, Subscription, Served, RecordType, } from "./pool.js";
4
4
  export { NotSharedError, ContentUnavailableError, DEFAULT_CONTENT_TIMEOUT_MS, } from "./content.js";
5
5
  export { Stream, StreamMode } from "./stream.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAgB,MAAM,UAAU,CAAC;AACjD,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,UAAU,GAQX,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,0BAA0B,GAG3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwC,MAAM,aAAa,CAAC;AACvF,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,uBAAuB,GAIxB,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,EACL,OAAO,EACP,sBAAsB,EACtB,yBAAyB,GAI1B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,UAAU,GAQX,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,0BAA0B,GAG3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwC,MAAM,aAAa,CAAC;AACvF,OAAO,EACL,aAAa,EACb,UAAU,EACV,WAAW,EACX,uBAAuB,GAIxB,MAAM,WAAW,CAAC"}
package/dist/key.d.ts CHANGED
@@ -1,6 +1,25 @@
1
1
  import { type Handle } from "./binding.js";
2
+ import { type Id, type JsonValue } from "./wire.js";
2
3
  /** A crypto profile: "pq_hybrid" (the fleet's) or "pq_pure". */
3
4
  export type Profile = "pq_hybrid" | "pq_pure";
5
+ /**
6
+ * How a device request is signed (realm proof v2, macula-realm#29): "http" is a
7
+ * join-session body under the realm's JSON rule (an integral number is an
8
+ * integer, a boolean or an integer beyond 2^53 - 1 is refused); "mesh" is a
9
+ * call's payload as this library puts it on the wire.
10
+ */
11
+ export type DeviceRequestRule = "http" | "mesh";
12
+ /** The procedure a join session over HTTP is signed for. */
13
+ export declare const JOIN_SESSION_PROCEDURE = "macula_realm.join_session";
14
+ /** The procedure a membership UCAN asked for over the mesh is signed for. */
15
+ export declare const MEMBERSHIP_UCAN_PROCEDURE = "macula_realm.membership_ucan";
16
+ /** A realm proof v2, as it goes on the wire beside the request's public_key. */
17
+ export interface DeviceRequestProof {
18
+ v: 2;
19
+ timestamp: number;
20
+ nonce: string;
21
+ signature: string;
22
+ }
4
23
  export declare class NodeKey {
5
24
  private handle;
6
25
  private constructor();
@@ -24,6 +43,20 @@ export declare class NodeKey {
24
43
  profile(): Profile;
25
44
  /** Signs data as given. */
26
45
  sign(data: Uint8Array): Promise<Uint8Array>;
46
+ /**
47
+ * A realm proof v2 (macula-realm#29) that this key made request (every field
48
+ * of it except "proof") for procedure in realm, now and with a fresh nonce.
49
+ * The request's device_info and ttl_seconds, the realm and the procedure are
50
+ * all signed, so the realm refuses a request changed on the way.
51
+ */
52
+ deviceRequestProof(realm: Id, procedure: string, request: {
53
+ [field: string]: JsonValue;
54
+ }, rule: DeviceRequestRule): Promise<DeviceRequestProof>;
55
+ /** The exact bytes a realm proof v2 signs, for a given timestamp and 16-byte
56
+ * nonce: what the realm's vector is checked against. */
57
+ static deviceRequestMessage(publicKey: Uint8Array, realm: Id, procedure: string, timestampMs: number, nonce: Uint8Array, request: {
58
+ [field: string]: JsonValue;
59
+ }, rule: DeviceRequestRule): Uint8Array;
27
60
  /** Whether signature is valid over data for a public key as carried on the
28
61
  * wire (publicKey()), under profile: ML-DSA-87 in pq_pure, and in pq_hybrid
29
62
  * the LAMPS composite id-MLDSA87-RSA4096-PSS-SHA512 with the empty context,
package/dist/key.js CHANGED
@@ -4,7 +4,12 @@
4
4
  // owner only.
5
5
  import { access } from "node:fs/promises";
6
6
  import { native } from "./binding.js";
7
- import { hex } from "./wire.js";
7
+ import { hex, id32 } from "./wire.js";
8
+ /** The procedure a join session over HTTP is signed for. */
9
+ export const JOIN_SESSION_PROCEDURE = "macula_realm.join_session";
10
+ /** The procedure a membership UCAN asked for over the mesh is signed for. */
11
+ export const MEMBERSHIP_UCAN_PROCEDURE = "macula_realm.membership_ucan";
12
+ const ruleNumber = (rule) => (rule === "http" ? 0 : 1);
8
13
  export class NodeKey {
9
14
  handle;
10
15
  constructor(handle) {
@@ -56,6 +61,21 @@ export class NodeKey {
56
61
  async sign(data) {
57
62
  return native.keySign(this.live(), data);
58
63
  }
64
+ /**
65
+ * A realm proof v2 (macula-realm#29) that this key made request (every field
66
+ * of it except "proof") for procedure in realm, now and with a fresh nonce.
67
+ * The request's device_info and ttl_seconds, the realm and the procedure are
68
+ * all signed, so the realm refuses a request changed on the way.
69
+ */
70
+ async deviceRequestProof(realm, procedure, request, rule) {
71
+ const proof = await native.keyDeviceRequestProof(this.live(), id32(realm, "realm"), procedure, JSON.stringify(request), ruleNumber(rule));
72
+ return JSON.parse(proof);
73
+ }
74
+ /** The exact bytes a realm proof v2 signs, for a given timestamp and 16-byte
75
+ * nonce: what the realm's vector is checked against. */
76
+ static deviceRequestMessage(publicKey, realm, procedure, timestampMs, nonce, request, rule) {
77
+ return native.deviceRequestMessage(publicKey, id32(realm, "realm"), procedure, timestampMs, nonce, JSON.stringify(request), ruleNumber(rule));
78
+ }
59
79
  /** Whether signature is valid over data for a public key as carried on the
60
80
  * wire (publicKey()), under profile: ML-DSA-87 in pq_pure, and in pq_hybrid
61
81
  * the LAMPS composite id-MLDSA87-RSA4096-PSS-SHA512 with the empty context,
package/dist/key.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"key.js","sourceRoot":"","sources":["../src/key.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,cAAc;AACd,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAe,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAKhC,MAAM,OAAO,OAAO;IACU,MAAM;IAAlC,YAA4B,MAAqB;sBAArB,MAAM;IAAkB,CAAC;IAErD;iCAC6B;IAC7B,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAY,WAAW;QAClD,OAAO,IAAI,OAAO,CAAC,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IACxD,CAAC;IAED;0DACsD;IACtD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAY,EAAE,OAAO,GAAY,WAAW;QAC5D,OAAO,IAAI,OAAO,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAA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AAC;QACtD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,gBAAgB;IAChB,IAAI;QACF,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QAC/E,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@macula-io/ts",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "TypeScript SDK for the Macula mesh (FFI over macula-go)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [