@ghostlytools/sdk 1.3.1 → 1.3.3
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/dist/core.js +2 -2
- package/dist/{fakes-Bpy2WRVB.js → fakes-BGm8YDy-.js} +36 -32
- package/dist/fakes-BGm8YDy-.js.map +1 -0
- package/dist/fakes.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{keet-identity-key-DypfAhWn.js → keet-identity-key-CRb0ko1T.js} +2 -2
- package/dist/{keet-identity-key-DypfAhWn.js.map → keet-identity-key-CRb0ko1T.js.map} +1 -1
- package/dist/{src-CXmIA8pL.js → src-DhOMxijH.js} +490 -242
- package/dist/src-DhOMxijH.js.map +1 -0
- package/dist/testing.js +3 -3
- package/dist/types/browser/src/engine/paymentAdapters/providers/testing.d.ts +2 -2
- package/dist/types/browser/src/proofs/testing.d.ts +5 -5
- package/dist/types/browser/src/shared/features.d.ts +15 -0
- package/dist/types/core/src/bytes.d.ts +6 -0
- package/dist/types/core/src/datalink.d.ts +1 -1
- package/dist/types/core/src/ghostlink.d.ts +25 -2
- package/dist/types/core/src/groupCommits.d.ts +12 -1
- package/dist/types/core/src/groupFiles.d.ts +19 -4
- package/dist/types/core/src/groupSession.d.ts +22 -0
- package/dist/types/core/src/identity.d.ts +2 -0
- package/dist/types/core/src/identityProofs.d.ts +9 -0
- package/dist/types/core/src/image.d.ts +13 -0
- package/dist/types/core/src/paymentIntent.d.ts +2 -0
- package/dist/types/core/src/pkdns.d.ts +5 -1
- package/dist/types/core/src/services.d.ts +8 -0
- package/dist/types/core/src/video.d.ts +2 -1
- package/dist/types/sdk/src/fakes.d.ts +3 -1
- package/dist/{verify-Bxi3-0i6.js → verify-J0ShO67L.js} +2 -2
- package/dist/{verify-Bxi3-0i6.js.map → verify-J0ShO67L.js.map} +1 -1
- package/package.json +1 -1
- package/dist/fakes-Bpy2WRVB.js.map +0 -1
- package/dist/src-CXmIA8pL.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { xsalsa20poly1305 } from "@noble/ciphers/salsa.js";
|
|
2
2
|
import { ed25519, x25519 } from "@noble/curves/ed25519.js";
|
|
3
|
-
import { hkdf } from "@noble/hashes/hkdf.js";
|
|
4
3
|
import { sha256, sha512 } from "@noble/hashes/sha2.js";
|
|
4
|
+
import { hkdf } from "@noble/hashes/hkdf.js";
|
|
5
5
|
import { base58, base64, base64urlnopad, bech32, bech32m, createBase58check } from "@scure/base";
|
|
6
6
|
import { hmac } from "@noble/hashes/hmac.js";
|
|
7
7
|
import { hexToBytes } from "@noble/hashes/utils.js";
|
|
@@ -168,6 +168,19 @@ function fromZ32(str) {
|
|
|
168
168
|
}
|
|
169
169
|
return out;
|
|
170
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* A 32-byte key written as the one z-base-32 spelling `toZ32` produces: 52 characters that decode to 32 bytes and
|
|
173
|
+
* encode back to the same string. The last character carries four zero padding bits, so each key has exactly one
|
|
174
|
+
* spelling and keys may be compared as strings (WISP 02). Any other spelling is not a key here.
|
|
175
|
+
*/
|
|
176
|
+
function isZ32Key(value) {
|
|
177
|
+
if (typeof value !== "string" || value.length !== 52) return false;
|
|
178
|
+
try {
|
|
179
|
+
return toZ32(fromZ32(value)) === value;
|
|
180
|
+
} catch {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
171
184
|
function randomBytes(length) {
|
|
172
185
|
const bytes = new Uint8Array(length);
|
|
173
186
|
crypto.getRandomValues(bytes);
|
|
@@ -313,9 +326,28 @@ function tryDecrypt(encoded, key) {
|
|
|
313
326
|
}
|
|
314
327
|
//#endregion
|
|
315
328
|
//#region ../core/src/identity.ts
|
|
329
|
+
/** How many public keys `identityFromSeed` keeps: a start with 50 chats and 20 groups derives about 400 distinct ones. */
|
|
330
|
+
var IDENTITY_MEMO_SIZE = 1024;
|
|
331
|
+
/**
|
|
332
|
+
* Public keys already derived, by the SHA-256 of their seed, the most recently used last. A chat's start derives the
|
|
333
|
+
* same few seeds' keys again and again (its link, its delivery, its capability record): ~0.25 ms each in V8, ~3.4x
|
|
334
|
+
* that in JSC. The seed itself is never kept, so a seed its owner zeroes leaves nothing behind here.
|
|
335
|
+
*/
|
|
336
|
+
var publicKeys = /* @__PURE__ */ new Map();
|
|
337
|
+
function publicKeyOf(seed) {
|
|
338
|
+
const id = toBase64Url(sha256(seed));
|
|
339
|
+
let key = publicKeys.get(id);
|
|
340
|
+
if (key) publicKeys.delete(id);
|
|
341
|
+
else {
|
|
342
|
+
key = ed25519.getPublicKey(seed);
|
|
343
|
+
if (publicKeys.size >= 1024) publicKeys.delete(publicKeys.keys().next().value);
|
|
344
|
+
}
|
|
345
|
+
publicKeys.set(id, key);
|
|
346
|
+
return key.slice();
|
|
347
|
+
}
|
|
316
348
|
function identityFromSeed(seed) {
|
|
317
349
|
if (seed.length !== 32) throw new Error("Seed must be exactly 32 bytes");
|
|
318
|
-
const publicKey =
|
|
350
|
+
const publicKey = publicKeyOf(seed);
|
|
319
351
|
return {
|
|
320
352
|
seed,
|
|
321
353
|
seedB64: toBase64Url(seed),
|
|
@@ -332,7 +364,7 @@ function createIdentity() {
|
|
|
332
364
|
function publicKeyFromZ32(z32) {
|
|
333
365
|
if (z32.length !== 52) throw new Error("Invalid public key: expected 52 z-base-32 characters");
|
|
334
366
|
const bytes = fromZ32(z32);
|
|
335
|
-
if (bytes
|
|
367
|
+
if (toZ32(bytes) !== z32) throw new Error("Invalid public key: not canonical z-base-32");
|
|
336
368
|
return bytes;
|
|
337
369
|
}
|
|
338
370
|
function sign(message, seed) {
|
|
@@ -3242,7 +3274,6 @@ function readGhostly(code) {
|
|
|
3242
3274
|
};
|
|
3243
3275
|
}
|
|
3244
3276
|
var B64_KEY = /^[A-Za-z0-9_-]{43}$/;
|
|
3245
|
-
var Z32_KEY$1 = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/;
|
|
3246
3277
|
function readSlashForm(code) {
|
|
3247
3278
|
const dht = code.startsWith("pair2d/");
|
|
3248
3279
|
const profile = dht || code.startsWith("pair1/") ? "paired-chat/1" : void 0;
|
|
@@ -3256,7 +3287,7 @@ function readSlashForm(code) {
|
|
|
3256
3287
|
reason: "not-ghostly"
|
|
3257
3288
|
};
|
|
3258
3289
|
const [seedB64, peerPubKeyZ32, encKeyB64] = parts;
|
|
3259
|
-
const bad = !B64_KEY.test(seedB64) ? "The seed" : !
|
|
3290
|
+
const bad = !B64_KEY.test(seedB64) ? "The seed" : !isZ32Key(peerPubKeyZ32) ? "The contact's key" : !B64_KEY.test(encKeyB64) ? "The shared key" : null;
|
|
3260
3291
|
if (bad) return {
|
|
3261
3292
|
ok: false,
|
|
3262
3293
|
reason: "damaged",
|
|
@@ -3549,7 +3580,7 @@ var ENROLL_CANCEL_REASONS = [
|
|
|
3549
3580
|
"full",
|
|
3550
3581
|
"failed"
|
|
3551
3582
|
];
|
|
3552
|
-
var KEY$
|
|
3583
|
+
var KEY$3 = /^[A-Za-z0-9_-]{43}$/;
|
|
3553
3584
|
var SIGNATURE$2 = /^[A-Za-z0-9_-]{86}$/;
|
|
3554
3585
|
var HASH$3 = /^[0-9a-f]{64}$/;
|
|
3555
3586
|
function checkKey(key, who) {
|
|
@@ -3601,7 +3632,7 @@ async function enrollHelloFrame(transcriptHash, inviterKey, joiner, about) {
|
|
|
3601
3632
|
* key's over this session's tuple. Null for anything else.
|
|
3602
3633
|
*/
|
|
3603
3634
|
function readEnrollHello(frame, transcriptHash, inviterKey, sessionKey) {
|
|
3604
|
-
if (frame.t !== "enroll-hello" || typeof frame.k !== "string" || !KEY$
|
|
3635
|
+
if (frame.t !== "enroll-hello" || typeof frame.k !== "string" || !KEY$3.test(frame.k) || typeof frame.s !== "string" || !SIGNATURE$2.test(frame.s)) return null;
|
|
3605
3636
|
if (typeof frame.name !== "string" || frame.name.length > 64 || typeof frame.app !== "string" || frame.app.length > 32) return null;
|
|
3606
3637
|
const key = fromBase64Url(frame.k);
|
|
3607
3638
|
if (key.length !== 32 || toBase64Url(key) !== toBase64Url(sessionKey)) return null;
|
|
@@ -3683,7 +3714,7 @@ function enrollGrantFrame(grant) {
|
|
|
3683
3714
|
* once and the inviter once, and a turn and `rev` an ordinary record can have. Null for anything else.
|
|
3684
3715
|
*/
|
|
3685
3716
|
function readEnrollGrant(frame, inviterKey, joinerKey) {
|
|
3686
|
-
if (frame.t !== "enroll-grant" || typeof frame.d !== "string" || !KEY$
|
|
3717
|
+
if (frame.t !== "enroll-grant" || typeof frame.d !== "string" || !KEY$3.test(frame.d) || !Array.isArray(frame.set) || frame.set.length > 4) return null;
|
|
3687
3718
|
if (!Number.isInteger(frame.turn) || frame.turn < 0 || frame.turn > TURN_MAX) return null;
|
|
3688
3719
|
if (!Number.isInteger(frame.rev) || frame.rev < 0 || frame.rev >= TURN_REV_LIMIT) return null;
|
|
3689
3720
|
const set = [];
|
|
@@ -3692,7 +3723,7 @@ function readEnrollGrant(frame, inviterKey, joinerKey) {
|
|
|
3692
3723
|
set.push(null);
|
|
3693
3724
|
continue;
|
|
3694
3725
|
}
|
|
3695
|
-
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$
|
|
3726
|
+
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$3.test(slot[0]) || typeof slot[1] !== "string" || slot[1].length > 64) return null;
|
|
3696
3727
|
set.push({
|
|
3697
3728
|
key: fromBase64Url(slot[0]),
|
|
3698
3729
|
name: turnName(slot[1])
|
|
@@ -3729,7 +3760,7 @@ function enrollCancelReason(frame) {
|
|
|
3729
3760
|
//#region ../core/src/setUpdate.ts
|
|
3730
3761
|
var SET_UPDATE = "set-update";
|
|
3731
3762
|
var SET_ACK = "set-ack";
|
|
3732
|
-
var KEY$
|
|
3763
|
+
var KEY$2 = /^[A-Za-z0-9_-]{43}$/;
|
|
3733
3764
|
var SIGNATURE$1 = /^[A-Za-z0-9_-]{86}$/;
|
|
3734
3765
|
/** A tombstone packet is a relay payload of 706 bytes (WISP 06 § Record); a little room above it, nothing more. */
|
|
3735
3766
|
var TOMB = /^[A-Za-z0-9_-]{100,1400}$/;
|
|
@@ -3781,7 +3812,7 @@ async function setUpdateFrame(oldAddress, update, signer) {
|
|
|
3781
3812
|
* here: that needs the old turn address (`verifySetUpdate`).
|
|
3782
3813
|
*/
|
|
3783
3814
|
function readSetUpdate(frame) {
|
|
3784
|
-
if (frame.t !== "set-update" || typeof frame.d !== "string" || !KEY$
|
|
3815
|
+
if (frame.t !== "set-update" || typeof frame.d !== "string" || !KEY$2.test(frame.d) || typeof frame.by !== "string" || !KEY$2.test(frame.by)) return null;
|
|
3785
3816
|
if (typeof frame.s !== "string" || !SIGNATURE$1.test(frame.s) || typeof frame.tomb !== "string" || !TOMB.test(frame.tomb)) return null;
|
|
3786
3817
|
if (!Array.isArray(frame.set) || frame.set.length > 4) return null;
|
|
3787
3818
|
if (frame.rec !== void 0 && (typeof frame.rec !== "string" || !TOMB.test(frame.rec))) return null;
|
|
@@ -3795,7 +3826,7 @@ function readSetUpdate(frame) {
|
|
|
3795
3826
|
signed.push(null);
|
|
3796
3827
|
continue;
|
|
3797
3828
|
}
|
|
3798
|
-
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$
|
|
3829
|
+
if (!Array.isArray(slot) || slot.length !== 2 || typeof slot[0] !== "string" || !KEY$2.test(slot[0]) || typeof slot[1] !== "string" || slot[1].length > 64) return null;
|
|
3799
3830
|
if (utf8Encode(slot[1]).length > 16 || slot[1].includes("\0")) return null;
|
|
3800
3831
|
signed.push([slot[0], slot[1]]);
|
|
3801
3832
|
set.push({
|
|
@@ -3921,8 +3952,8 @@ var HANDOFF_CANCEL_REASONS = [
|
|
|
3921
3952
|
"password",
|
|
3922
3953
|
"stalled"
|
|
3923
3954
|
];
|
|
3924
|
-
var KEY$
|
|
3925
|
-
var DIGEST$2 = KEY$
|
|
3955
|
+
var KEY$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
3956
|
+
var DIGEST$2 = KEY$1;
|
|
3926
3957
|
var SIGNATURE = /^[A-Za-z0-9_-]{86}$/;
|
|
3927
3958
|
var ID$5 = /^[A-Za-z0-9_-]{22}$/;
|
|
3928
3959
|
var B64$4 = /^[A-Za-z0-9_-]*$/;
|
|
@@ -4071,7 +4102,7 @@ function handoffHelloFrame(hello) {
|
|
|
4071
4102
|
}
|
|
4072
4103
|
function readHandoffHello(frame) {
|
|
4073
4104
|
if (frame.t !== "handoff-hello" || frame.v !== 1) return null;
|
|
4074
|
-
if (!isText$2(frame.e, KEY$
|
|
4105
|
+
if (!isText$2(frame.e, KEY$1) || fromBase64Url(frame.e).length !== 32) return null;
|
|
4075
4106
|
if (!isText$2(frame.app, VERSION_TEXT) || !isCount$1(frame.db, 1e6) || !isPins(frame.pins)) return null;
|
|
4076
4107
|
if (typeof frame.room !== "number" || !Number.isSafeInteger(frame.room) || frame.room < -1) return null;
|
|
4077
4108
|
if (typeof frame.metered !== "boolean") return null;
|
|
@@ -4150,7 +4181,7 @@ function readHandoffPake(frame) {
|
|
|
4150
4181
|
wrong: true
|
|
4151
4182
|
} : null;
|
|
4152
4183
|
if (!isText$2(frame.m, B64$4) || !frame.m.length || frame.m.length > 4096) return null;
|
|
4153
|
-
if (frame.n === 3 && !isText$2(frame.c, KEY$
|
|
4184
|
+
if (frame.n === 3 && !isText$2(frame.c, KEY$1)) return null;
|
|
4154
4185
|
return {
|
|
4155
4186
|
n: frame.n,
|
|
4156
4187
|
m: frame.m,
|
|
@@ -4290,7 +4321,7 @@ var handoffReleaseFrame = (release) => ({
|
|
|
4290
4321
|
...release
|
|
4291
4322
|
});
|
|
4292
4323
|
function readHandoffRelease(frame) {
|
|
4293
|
-
if (frame.t !== "handoff-release" || !isCount$1(frame.turn, TURN_MAX) || !isText$2(frame.to, KEY$
|
|
4324
|
+
if (frame.t !== "handoff-release" || !isCount$1(frame.turn, TURN_MAX) || !isText$2(frame.to, KEY$1) || !isText$2(frame.h, DIGEST$2) || !isText$2(frame.s, SIGNATURE)) return null;
|
|
4294
4325
|
return {
|
|
4295
4326
|
turn: frame.turn,
|
|
4296
4327
|
to: frame.to,
|
|
@@ -4410,6 +4441,19 @@ var LEGACY_SERVICES = [
|
|
|
4410
4441
|
function isValidServiceId(id) {
|
|
4411
4442
|
return SERVICE_ID_PATTERN.test(id);
|
|
4412
4443
|
}
|
|
4444
|
+
var VIEWER_TAG_PATTERN = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{16}$/;
|
|
4445
|
+
/**
|
|
4446
|
+
* The label that makes the origin a contact's app opens in this side's own (WISP 04): derived from the key this
|
|
4447
|
+
* profile holds for the chat with that contact. Another profile on the device, a profile after "Clear all data", or
|
|
4448
|
+
* one made again after a delete has another chat key, so another origin, and never finds the storage, cookies or
|
|
4449
|
+
* session the app kept here. The contact already knows that key, so the label tells it nothing new.
|
|
4450
|
+
*/
|
|
4451
|
+
function viewerTag(myPubKeyZ32) {
|
|
4452
|
+
return toZ32(sha256(utf8Encode(`ghostly-viewer/1\n${myPubKeyZ32}`)).subarray(0, 10));
|
|
4453
|
+
}
|
|
4454
|
+
function isViewerTag(tag) {
|
|
4455
|
+
return VIEWER_TAG_PATTERN.test(tag);
|
|
4456
|
+
}
|
|
4413
4457
|
function serviceIdFromName(name, taken = []) {
|
|
4414
4458
|
const used = new Set(taken);
|
|
4415
4459
|
const base = name.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 24) || "service";
|
|
@@ -5068,8 +5112,12 @@ function buildSdpFromSignal(signal) {
|
|
|
5068
5112
|
function sdpHasCandidates(sdp) {
|
|
5069
5113
|
return /^a=candidate:/m.test(sdp ?? "");
|
|
5070
5114
|
}
|
|
5071
|
-
/**
|
|
5072
|
-
|
|
5115
|
+
/**
|
|
5116
|
+
* How long to keep collecting after the candidate we were waiting for showed up (a call's; a chat's data link sets its
|
|
5117
|
+
* own, the same). The host candidates are in before it, and a call's signal keeps the first reflexive one only
|
|
5118
|
+
* (`pickCallCandidates`): 400 ms held every call's offer, and its answer, back that long for nothing it carried.
|
|
5119
|
+
*/
|
|
5120
|
+
var ICE_SETTLE_MS = 150;
|
|
5073
5121
|
/** IPv4 ranges that are not reachable from the internet: this network, private, shared (CGNAT), loopback, link-local, the documentation ones, benchmarking, multicast and up. */
|
|
5074
5122
|
var NOT_GLOBAL_IPV4 = [
|
|
5075
5123
|
[0, 8],
|
|
@@ -7038,7 +7086,7 @@ var ICE_GATHERING_TIMEOUT_MS = 5e3;
|
|
|
7038
7086
|
* rather than 2 s (calls bug hunt, 2026-10-12).
|
|
7039
7087
|
*/
|
|
7040
7088
|
var OFFER_HOST_GATHER_MS = 2e3;
|
|
7041
|
-
/** The data link keeps collecting this long after the candidate it waited for came (a call
|
|
7089
|
+
/** The data link keeps collecting this long after the candidate it waited for came (a call too). */
|
|
7042
7090
|
var DATA_SETTLE_MS = 150;
|
|
7043
7091
|
/**
|
|
7044
7092
|
* A connection with no candidate at all by then has stalled: Chromium, rarely and under load, gathers none, and an
|
|
@@ -7648,7 +7696,11 @@ var GROUP_MEMBER_CAP = { max: 32 };
|
|
|
7648
7696
|
var GROUP_VERSION_LARGE = 3;
|
|
7649
7697
|
var MAX_GROUP_CHAIN = 1024;
|
|
7650
7698
|
var GROUP_ID = /^[A-Za-z0-9_-]{22}$/;
|
|
7651
|
-
|
|
7699
|
+
/**
|
|
7700
|
+
* A member's key, in its one canonical spelling (`isZ32Key`): a roster names members by string, so a key respelled in
|
|
7701
|
+
* its last character would be a second member for one key, and `publicKeyFromZ32` would throw on it past this check.
|
|
7702
|
+
*/
|
|
7703
|
+
var MEMBER_KEY = { test: isZ32Key };
|
|
7652
7704
|
var TAG$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
7653
7705
|
var SIG$6 = /^[A-Za-z0-9_-]{86}$/;
|
|
7654
7706
|
var HASH$2 = /^[a-f0-9]{64}$/;
|
|
@@ -7714,6 +7766,8 @@ function parseCommit$1(raw) {
|
|
|
7714
7766
|
sig: c.sig
|
|
7715
7767
|
};
|
|
7716
7768
|
}
|
|
7769
|
+
/** Only shape, no signature or parent: a commit as kept, its fields alone (anything else it carried dropped); null when malformed. */
|
|
7770
|
+
var parseGroupCommit = parseCommit$1;
|
|
7717
7771
|
/** The roster a commit must carry, given the previous one; null when the change is not allowed. */
|
|
7718
7772
|
function expectedRoster(previous, kind, by, subject) {
|
|
7719
7773
|
if (kind === "create") return previous === null && !subject ? [[by, "admin"]] : null;
|
|
@@ -9380,6 +9434,154 @@ var RateWindow = class {
|
|
|
9380
9434
|
}
|
|
9381
9435
|
};
|
|
9382
9436
|
//#endregion
|
|
9437
|
+
//#region ../core/src/image.ts
|
|
9438
|
+
var IMAGE_LIMITS = {
|
|
9439
|
+
/** Pixels on either side: the most a JPEG can say, well past what anyone sends as a picture. */
|
|
9440
|
+
maxEdge: 65535,
|
|
9441
|
+
/** How much of a file is read for its size: past a JPEG's EXIF, thumbnails and colour profile. */
|
|
9442
|
+
headBytes: 262144,
|
|
9443
|
+
/**
|
|
9444
|
+
* The most pixels a picture drawn in a chat may have: a 50-megapixel phone photo (8160 × 6120), about 200 MB once
|
|
9445
|
+
* decoded. A few kilobytes can say far more (a PNG of 23000 × 23000 is 64 KB and 2 GB decoded): past this a picture
|
|
9446
|
+
* is kept and saved, not drawn.
|
|
9447
|
+
*/
|
|
9448
|
+
previewPixels: 5e7,
|
|
9449
|
+
/** The longest side a picture drawn in a chat may have: a wide panorama. */
|
|
9450
|
+
previewEdge: 16384
|
|
9451
|
+
};
|
|
9452
|
+
/**
|
|
9453
|
+
* Whether a picture of this size, read from its own bytes (never from what its sender said), may be drawn: undefined
|
|
9454
|
+
* (its bytes do not say) may not either, as what draws it would find its size only by decoding it.
|
|
9455
|
+
*/
|
|
9456
|
+
function previewable(size) {
|
|
9457
|
+
return !!size && size.width <= IMAGE_LIMITS.previewEdge && size.height <= IMAGE_LIMITS.previewEdge && size.width * size.height <= IMAGE_LIMITS.previewPixels;
|
|
9458
|
+
}
|
|
9459
|
+
/** Whether a file is a picture, by its type. */
|
|
9460
|
+
function isImageMime(mime) {
|
|
9461
|
+
return mime.split(";")[0].trim().toLowerCase().startsWith("image/");
|
|
9462
|
+
}
|
|
9463
|
+
var edge = (n) => typeof n === "number" && Number.isSafeInteger(n) && n > 0 && n <= IMAGE_LIMITS.maxEdge;
|
|
9464
|
+
/** A peer's `image` description, or undefined when it is not one. It never refuses the file. */
|
|
9465
|
+
function parseImageMeta(value, mime) {
|
|
9466
|
+
if (mime !== void 0 && !isImageMime(mime)) return void 0;
|
|
9467
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
9468
|
+
const { width, height } = value;
|
|
9469
|
+
return edge(width) && edge(height) ? {
|
|
9470
|
+
width,
|
|
9471
|
+
height
|
|
9472
|
+
} : void 0;
|
|
9473
|
+
}
|
|
9474
|
+
var u16be = (b, at) => b[at] << 8 | b[at + 1];
|
|
9475
|
+
var u16le = (b, at) => b[at] | b[at + 1] << 8;
|
|
9476
|
+
var u24le = (b, at) => b[at] | b[at + 1] << 8 | b[at + 2] << 16;
|
|
9477
|
+
var u32be = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
|
|
9478
|
+
var ascii = (b, at, text) => [...text].every((c, i) => b[at + i] === c.charCodeAt(0));
|
|
9479
|
+
var sized = (width, height) => edge(width) && edge(height) ? {
|
|
9480
|
+
width,
|
|
9481
|
+
height
|
|
9482
|
+
} : void 0;
|
|
9483
|
+
/** SOFn markers: every frame type but DHT (C4), JPG (C8) and DAC (CC). */
|
|
9484
|
+
var JPEG_FRAME = /* @__PURE__ */ new Set([
|
|
9485
|
+
192,
|
|
9486
|
+
193,
|
|
9487
|
+
194,
|
|
9488
|
+
195,
|
|
9489
|
+
197,
|
|
9490
|
+
198,
|
|
9491
|
+
199,
|
|
9492
|
+
201,
|
|
9493
|
+
202,
|
|
9494
|
+
203,
|
|
9495
|
+
205,
|
|
9496
|
+
206,
|
|
9497
|
+
207
|
|
9498
|
+
]);
|
|
9499
|
+
/** The EXIF orientation in an APP1 segment's TIFF block (1 when it says none). */
|
|
9500
|
+
function exifOrientation(b, tiff, end) {
|
|
9501
|
+
if (tiff + 8 > end) return 1;
|
|
9502
|
+
const little = ascii(b, tiff, "II");
|
|
9503
|
+
if (!little && !ascii(b, tiff, "MM")) return 1;
|
|
9504
|
+
const u16 = (at) => little ? u16le(b, at) : u16be(b, at);
|
|
9505
|
+
const u32 = (at) => little ? u16le(b, at) + u16le(b, at + 2) * 65536 : u32be(b, at);
|
|
9506
|
+
if (u16(tiff + 2) !== 42) return 1;
|
|
9507
|
+
const ifd = tiff + u32(tiff + 4);
|
|
9508
|
+
if (ifd + 2 > end) return 1;
|
|
9509
|
+
const count = u16(ifd);
|
|
9510
|
+
for (let i = 0; i < count; i++) {
|
|
9511
|
+
const entry = ifd + 2 + i * 12;
|
|
9512
|
+
if (entry + 12 > end) return 1;
|
|
9513
|
+
if (u16(entry) === 274) {
|
|
9514
|
+
const value = u16(entry + 8);
|
|
9515
|
+
return value >= 1 && value <= 8 ? value : 1;
|
|
9516
|
+
}
|
|
9517
|
+
}
|
|
9518
|
+
return 1;
|
|
9519
|
+
}
|
|
9520
|
+
function jpegSize(b) {
|
|
9521
|
+
let at = 2, orientation = 1;
|
|
9522
|
+
while (at + 4 <= b.length) {
|
|
9523
|
+
if (b[at] !== 255) return void 0;
|
|
9524
|
+
const marker = b[at + 1];
|
|
9525
|
+
if (marker === 255) {
|
|
9526
|
+
at++;
|
|
9527
|
+
continue;
|
|
9528
|
+
}
|
|
9529
|
+
if (marker === 1 || marker >= 208 && marker <= 215) {
|
|
9530
|
+
at += 2;
|
|
9531
|
+
continue;
|
|
9532
|
+
}
|
|
9533
|
+
if (marker === 217 || marker === 218) return void 0;
|
|
9534
|
+
const length = u16be(b, at + 2);
|
|
9535
|
+
if (length < 2) return void 0;
|
|
9536
|
+
const end = Math.min(b.length, at + 2 + length);
|
|
9537
|
+
if (marker === 225 && ascii(b, at + 4, "Exif\0\0")) orientation = exifOrientation(b, at + 10, end);
|
|
9538
|
+
if (JPEG_FRAME.has(marker)) {
|
|
9539
|
+
if (at + 9 > b.length) return void 0;
|
|
9540
|
+
const height = u16be(b, at + 5), width = u16be(b, at + 7);
|
|
9541
|
+
return orientation >= 5 ? sized(height, width) : sized(width, height);
|
|
9542
|
+
}
|
|
9543
|
+
at += 2 + length;
|
|
9544
|
+
}
|
|
9545
|
+
}
|
|
9546
|
+
function webpSize(b) {
|
|
9547
|
+
if (b.length < 30) return void 0;
|
|
9548
|
+
if (ascii(b, 12, "VP8 ")) {
|
|
9549
|
+
if (b[23] !== 157 || b[24] !== 1 || b[25] !== 42) return void 0;
|
|
9550
|
+
return sized(u16le(b, 26) & 16383, u16le(b, 28) & 16383);
|
|
9551
|
+
}
|
|
9552
|
+
if (ascii(b, 12, "VP8L")) {
|
|
9553
|
+
if (b[20] !== 47) return void 0;
|
|
9554
|
+
const bits = b[21] | b[22] << 8 | b[23] << 16 | b[24] << 24;
|
|
9555
|
+
return sized((bits & 16383) + 1, (bits >>> 14 & 16383) + 1);
|
|
9556
|
+
}
|
|
9557
|
+
if (ascii(b, 12, "VP8X")) return sized(u24le(b, 24) + 1, u24le(b, 27) + 1);
|
|
9558
|
+
}
|
|
9559
|
+
/**
|
|
9560
|
+
* A picture's size as it is shown, read from its first bytes (PNG, JPEG, GIF, WebP), or undefined when they do not
|
|
9561
|
+
* say. Only the header is read: a JPEG whose frame header sits past `IMAGE_LIMITS.headBytes` goes without.
|
|
9562
|
+
*/
|
|
9563
|
+
function imageSize(head) {
|
|
9564
|
+
const b = head;
|
|
9565
|
+
try {
|
|
9566
|
+
if (b.length >= 24 && b[0] === 137 && ascii(b, 1, "PNG\r\n\n") && ascii(b, 12, "IHDR")) return sized(u32be(b, 16), u32be(b, 20));
|
|
9567
|
+
if (b.length >= 10 && (ascii(b, 0, "GIF87a") || ascii(b, 0, "GIF89a"))) return sized(u16le(b, 6), u16le(b, 8));
|
|
9568
|
+
if (b.length >= 4 && b[0] === 255 && b[1] === 216 && b[2] === 255) return jpegSize(b);
|
|
9569
|
+
if (b.length >= 16 && ascii(b, 0, "RIFF") && ascii(b, 8, "WEBP")) return webpSize(b);
|
|
9570
|
+
} catch {}
|
|
9571
|
+
}
|
|
9572
|
+
/**
|
|
9573
|
+
* The description a picture is sent with, read from the start of the file, or undefined when it is not a picture
|
|
9574
|
+
* or its first bytes do not say (it then goes without one).
|
|
9575
|
+
*/
|
|
9576
|
+
async function readImageMeta(source, mime) {
|
|
9577
|
+
if (!isImageMime(mime)) return void 0;
|
|
9578
|
+
try {
|
|
9579
|
+
return imageSize(new Uint8Array(await source.slice(0, IMAGE_LIMITS.headBytes).arrayBuffer()));
|
|
9580
|
+
} catch {
|
|
9581
|
+
return;
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
//#endregion
|
|
9383
9585
|
//#region ../core/src/video.ts
|
|
9384
9586
|
var VIDEO_LIMITS = {
|
|
9385
9587
|
/** The poster's bytes: with the rest of an offer, a frame stays far below the 60 KiB a session carries. */
|
|
@@ -9415,7 +9617,8 @@ var JPEG_START = [
|
|
|
9415
9617
|
];
|
|
9416
9618
|
/**
|
|
9417
9619
|
* A peer's `video` description, or undefined when it is not one. It never refuses the file. A poster that is
|
|
9418
|
-
* too large
|
|
9620
|
+
* too large, not a JPEG, or says it is more pixels than a sender draws (`posterEdge`) is dropped on its own; the
|
|
9621
|
+
* length and size are kept. It is shown before the file is accepted, so a few bytes must not ask for a huge bitmap.
|
|
9419
9622
|
*/
|
|
9420
9623
|
function parseVideoMeta(value, mime) {
|
|
9421
9624
|
if (mime !== void 0 && !isVideoMime(mime)) return void 0;
|
|
@@ -9431,7 +9634,8 @@ function parseVideoMeta(value, mime) {
|
|
|
9431
9634
|
};
|
|
9432
9635
|
if (typeof poster === "string" && poster.length <= Math.ceil(VIDEO_LIMITS.maxPosterBytes * 4 / 3) && BASE64URL.test(poster)) try {
|
|
9433
9636
|
const bytes = fromBase64Url(poster);
|
|
9434
|
-
|
|
9637
|
+
const size = bytes.length <= VIDEO_LIMITS.maxPosterBytes && JPEG_START.every((b, i) => bytes[i] === b) ? imageSize(bytes) : void 0;
|
|
9638
|
+
if (size && Math.max(size.width, size.height) <= VIDEO_LIMITS.posterEdge) meta.poster = poster;
|
|
9435
9639
|
} catch {}
|
|
9436
9640
|
return meta;
|
|
9437
9641
|
}
|
|
@@ -9805,139 +10009,6 @@ var FileTransfers = class {
|
|
|
9805
10009
|
}
|
|
9806
10010
|
};
|
|
9807
10011
|
//#endregion
|
|
9808
|
-
//#region ../core/src/image.ts
|
|
9809
|
-
var IMAGE_LIMITS = {
|
|
9810
|
-
/** Pixels on either side: the most a JPEG can say, well past what anyone sends as a picture. */
|
|
9811
|
-
maxEdge: 65535,
|
|
9812
|
-
/** How much of a file is read for its size: past a JPEG's EXIF, thumbnails and colour profile. */
|
|
9813
|
-
headBytes: 262144
|
|
9814
|
-
};
|
|
9815
|
-
/** Whether a file is a picture, by its type. */
|
|
9816
|
-
function isImageMime(mime) {
|
|
9817
|
-
return mime.split(";")[0].trim().toLowerCase().startsWith("image/");
|
|
9818
|
-
}
|
|
9819
|
-
var edge = (n) => typeof n === "number" && Number.isSafeInteger(n) && n > 0 && n <= IMAGE_LIMITS.maxEdge;
|
|
9820
|
-
/** A peer's `image` description, or undefined when it is not one. It never refuses the file. */
|
|
9821
|
-
function parseImageMeta(value, mime) {
|
|
9822
|
-
if (mime !== void 0 && !isImageMime(mime)) return void 0;
|
|
9823
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
9824
|
-
const { width, height } = value;
|
|
9825
|
-
return edge(width) && edge(height) ? {
|
|
9826
|
-
width,
|
|
9827
|
-
height
|
|
9828
|
-
} : void 0;
|
|
9829
|
-
}
|
|
9830
|
-
var u16be = (b, at) => b[at] << 8 | b[at + 1];
|
|
9831
|
-
var u16le = (b, at) => b[at] | b[at + 1] << 8;
|
|
9832
|
-
var u24le = (b, at) => b[at] | b[at + 1] << 8 | b[at + 2] << 16;
|
|
9833
|
-
var u32be = (b, at) => (b[at] << 24 >>> 0) + (b[at + 1] << 16) + (b[at + 2] << 8) + b[at + 3];
|
|
9834
|
-
var ascii = (b, at, text) => [...text].every((c, i) => b[at + i] === c.charCodeAt(0));
|
|
9835
|
-
var sized = (width, height) => edge(width) && edge(height) ? {
|
|
9836
|
-
width,
|
|
9837
|
-
height
|
|
9838
|
-
} : void 0;
|
|
9839
|
-
/** SOFn markers: every frame type but DHT (C4), JPG (C8) and DAC (CC). */
|
|
9840
|
-
var JPEG_FRAME = /* @__PURE__ */ new Set([
|
|
9841
|
-
192,
|
|
9842
|
-
193,
|
|
9843
|
-
194,
|
|
9844
|
-
195,
|
|
9845
|
-
197,
|
|
9846
|
-
198,
|
|
9847
|
-
199,
|
|
9848
|
-
201,
|
|
9849
|
-
202,
|
|
9850
|
-
203,
|
|
9851
|
-
205,
|
|
9852
|
-
206,
|
|
9853
|
-
207
|
|
9854
|
-
]);
|
|
9855
|
-
/** The EXIF orientation in an APP1 segment's TIFF block (1 when it says none). */
|
|
9856
|
-
function exifOrientation(b, tiff, end) {
|
|
9857
|
-
if (tiff + 8 > end) return 1;
|
|
9858
|
-
const little = ascii(b, tiff, "II");
|
|
9859
|
-
if (!little && !ascii(b, tiff, "MM")) return 1;
|
|
9860
|
-
const u16 = (at) => little ? u16le(b, at) : u16be(b, at);
|
|
9861
|
-
const u32 = (at) => little ? u16le(b, at) + u16le(b, at + 2) * 65536 : u32be(b, at);
|
|
9862
|
-
if (u16(tiff + 2) !== 42) return 1;
|
|
9863
|
-
const ifd = tiff + u32(tiff + 4);
|
|
9864
|
-
if (ifd + 2 > end) return 1;
|
|
9865
|
-
const count = u16(ifd);
|
|
9866
|
-
for (let i = 0; i < count; i++) {
|
|
9867
|
-
const entry = ifd + 2 + i * 12;
|
|
9868
|
-
if (entry + 12 > end) return 1;
|
|
9869
|
-
if (u16(entry) === 274) {
|
|
9870
|
-
const value = u16(entry + 8);
|
|
9871
|
-
return value >= 1 && value <= 8 ? value : 1;
|
|
9872
|
-
}
|
|
9873
|
-
}
|
|
9874
|
-
return 1;
|
|
9875
|
-
}
|
|
9876
|
-
function jpegSize(b) {
|
|
9877
|
-
let at = 2, orientation = 1;
|
|
9878
|
-
while (at + 4 <= b.length) {
|
|
9879
|
-
if (b[at] !== 255) return void 0;
|
|
9880
|
-
const marker = b[at + 1];
|
|
9881
|
-
if (marker === 255) {
|
|
9882
|
-
at++;
|
|
9883
|
-
continue;
|
|
9884
|
-
}
|
|
9885
|
-
if (marker === 1 || marker >= 208 && marker <= 215) {
|
|
9886
|
-
at += 2;
|
|
9887
|
-
continue;
|
|
9888
|
-
}
|
|
9889
|
-
if (marker === 217 || marker === 218) return void 0;
|
|
9890
|
-
const length = u16be(b, at + 2);
|
|
9891
|
-
if (length < 2) return void 0;
|
|
9892
|
-
const end = Math.min(b.length, at + 2 + length);
|
|
9893
|
-
if (marker === 225 && ascii(b, at + 4, "Exif\0\0")) orientation = exifOrientation(b, at + 10, end);
|
|
9894
|
-
if (JPEG_FRAME.has(marker)) {
|
|
9895
|
-
if (at + 9 > b.length) return void 0;
|
|
9896
|
-
const height = u16be(b, at + 5), width = u16be(b, at + 7);
|
|
9897
|
-
return orientation >= 5 ? sized(height, width) : sized(width, height);
|
|
9898
|
-
}
|
|
9899
|
-
at += 2 + length;
|
|
9900
|
-
}
|
|
9901
|
-
}
|
|
9902
|
-
function webpSize(b) {
|
|
9903
|
-
if (b.length < 30) return void 0;
|
|
9904
|
-
if (ascii(b, 12, "VP8 ")) {
|
|
9905
|
-
if (b[23] !== 157 || b[24] !== 1 || b[25] !== 42) return void 0;
|
|
9906
|
-
return sized(u16le(b, 26) & 16383, u16le(b, 28) & 16383);
|
|
9907
|
-
}
|
|
9908
|
-
if (ascii(b, 12, "VP8L")) {
|
|
9909
|
-
if (b[20] !== 47) return void 0;
|
|
9910
|
-
const bits = b[21] | b[22] << 8 | b[23] << 16 | b[24] << 24;
|
|
9911
|
-
return sized((bits & 16383) + 1, (bits >>> 14 & 16383) + 1);
|
|
9912
|
-
}
|
|
9913
|
-
if (ascii(b, 12, "VP8X")) return sized(u24le(b, 24) + 1, u24le(b, 27) + 1);
|
|
9914
|
-
}
|
|
9915
|
-
/**
|
|
9916
|
-
* A picture's size as it is shown, read from its first bytes (PNG, JPEG, GIF, WebP), or undefined when they do not
|
|
9917
|
-
* say. Only the header is read: a JPEG whose frame header sits past `IMAGE_LIMITS.headBytes` goes without.
|
|
9918
|
-
*/
|
|
9919
|
-
function imageSize(head) {
|
|
9920
|
-
const b = head;
|
|
9921
|
-
try {
|
|
9922
|
-
if (b.length >= 24 && b[0] === 137 && ascii(b, 1, "PNG\r\n\n") && ascii(b, 12, "IHDR")) return sized(u32be(b, 16), u32be(b, 20));
|
|
9923
|
-
if (b.length >= 10 && (ascii(b, 0, "GIF87a") || ascii(b, 0, "GIF89a"))) return sized(u16le(b, 6), u16le(b, 8));
|
|
9924
|
-
if (b.length >= 4 && b[0] === 255 && b[1] === 216 && b[2] === 255) return jpegSize(b);
|
|
9925
|
-
if (b.length >= 16 && ascii(b, 0, "RIFF") && ascii(b, 8, "WEBP")) return webpSize(b);
|
|
9926
|
-
} catch {}
|
|
9927
|
-
}
|
|
9928
|
-
/**
|
|
9929
|
-
* The description a picture is sent with, read from the start of the file, or undefined when it is not a picture
|
|
9930
|
-
* or its first bytes do not say (it then goes without one).
|
|
9931
|
-
*/
|
|
9932
|
-
async function readImageMeta(source, mime) {
|
|
9933
|
-
if (!isImageMime(mime)) return void 0;
|
|
9934
|
-
try {
|
|
9935
|
-
return imageSize(new Uint8Array(await source.slice(0, IMAGE_LIMITS.headBytes).arrayBuffer()));
|
|
9936
|
-
} catch {
|
|
9937
|
-
return;
|
|
9938
|
-
}
|
|
9939
|
-
}
|
|
9940
|
-
//#endregion
|
|
9941
10012
|
//#region ../core/src/dhtFiles.ts
|
|
9942
10013
|
/**
|
|
9943
10014
|
* A file's bubble on the DHT floor (WISP 403 § Files): while the contact is away, a file's offer (its name, size, type,
|
|
@@ -12117,7 +12188,7 @@ async function verifyPeerProof(event, c, readStorage) {
|
|
|
12117
12188
|
if (sig.length !== 64 || !verify(sig, data, fromZ32(c.externalKey))) throw new Error("Invalid Pubky signature");
|
|
12118
12189
|
} else if (c.adapter === "keet-import") {
|
|
12119
12190
|
if (sig.length !== 107 || sig[0] !== 1 || sig[41] !== 0 || sig[42] !== 1) throw new Error("Unsupported Keet attestation");
|
|
12120
|
-
const { default: IdentityKey } = await import("./keet-identity-key-
|
|
12191
|
+
const { default: IdentityKey } = await import("./keet-identity-key-CRb0ko1T.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
12121
12192
|
if (!IdentityKey.verify(b4a.from(sig), b4a.from(data), { expectedIdentity: b4a.from(unhex(c.externalKey)) })) throw new Error("Invalid Keet attestation");
|
|
12122
12193
|
} else throw new Error("Unsupported proof adapter");
|
|
12123
12194
|
}
|
|
@@ -12451,10 +12522,18 @@ var IDENTITY_MAX_EVIDENCE = 16384;
|
|
|
12451
12522
|
var IDENTITY_MAX_FRAME = 32768;
|
|
12452
12523
|
/** Unanswered challenges a verifier keeps per conversation. */
|
|
12453
12524
|
var MAX_CHALLENGES = 8;
|
|
12525
|
+
/**
|
|
12526
|
+
* Proofs a verifier keeps from one contact. A newer proof of the same identity replaces the older one, and one no longer
|
|
12527
|
+
* standing (withdrawn, revoked, expired) gives its place to a new one; past that a presentation is refused before it is
|
|
12528
|
+
* checked, so a contact cannot make this side store, re-send to its pages and look up its proofs without end.
|
|
12529
|
+
*/
|
|
12530
|
+
var IDENTITY_MAX_RECEIVED = 16;
|
|
12531
|
+
/** `idp-*` frames a paired session reads from the contact per `IDENTITY_FRAME_WINDOW_MS`; the rest are dropped unread. */
|
|
12532
|
+
var IDENTITY_FRAME_LIMIT = 40;
|
|
12533
|
+
var IDENTITY_FRAME_WINDOW_MS = 6e4;
|
|
12454
12534
|
var IDENTITY_PROVIDER_ID = /^[a-z][a-z0-9-]{0,31}$/;
|
|
12455
12535
|
/** Printable ASCII without spaces, so the statement can be built but never needs parsing. */
|
|
12456
12536
|
var IDENTITY_SUBJECT = /^[\x21-\x7e]{1,512}$/;
|
|
12457
|
-
var KEY$2 = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/;
|
|
12458
12537
|
var BINDING_NONCE = /^[A-Za-z0-9_-]{22}$/;
|
|
12459
12538
|
var CHALLENGE_NONCE = /^[A-Za-z0-9_-]{43}$/;
|
|
12460
12539
|
var HEX64$2 = /^[a-f0-9]{64}$/;
|
|
@@ -12476,7 +12555,7 @@ var iso = (seconds) => (/* @__PURE__ */ new Date(seconds * 1e3)).toISOString().r
|
|
|
12476
12555
|
var isInt$2 = (v) => Number.isSafeInteger(v) && v > 0;
|
|
12477
12556
|
function isIdentityBinding(value) {
|
|
12478
12557
|
const b = value;
|
|
12479
|
-
return !!b && typeof b === "object" && !Array.isArray(b) && Object.keys(b).sort().join(",") === "expiresAt,issuedAt,key,nonce,provider,subject,v" && b.v === 1 && typeof b.provider === "string" && IDENTITY_PROVIDER_ID.test(b.provider) && typeof b.subject === "string" && IDENTITY_SUBJECT.test(b.subject) &&
|
|
12558
|
+
return !!b && typeof b === "object" && !Array.isArray(b) && Object.keys(b).sort().join(",") === "expiresAt,issuedAt,key,nonce,provider,subject,v" && b.v === 1 && typeof b.provider === "string" && IDENTITY_PROVIDER_ID.test(b.provider) && typeof b.subject === "string" && IDENTITY_SUBJECT.test(b.subject) && isZ32Key(b.key) && typeof b.nonce === "string" && BINDING_NONCE.test(b.nonce) && isInt$2(b.issuedAt) && isInt$2(b.expiresAt) && b.expiresAt > b.issuedAt && b.expiresAt - b.issuedAt <= 3456e4 && b.expiresAt < 253402300800;
|
|
12480
12559
|
}
|
|
12481
12560
|
/**
|
|
12482
12561
|
* The canonical statement, one line, so it survives every tool and clipboard (no line-ending
|
|
@@ -12536,7 +12615,7 @@ function signIdentityPresentation(seed, proofId, scope, nonce, issuedAt) {
|
|
|
12536
12615
|
return toBase64Url(sign(identityPresentationBytes(proofId, scope, nonce, issuedAt), seed));
|
|
12537
12616
|
}
|
|
12538
12617
|
function verifyIdentityPresentation(key, sig, proofId, scope, nonce, issuedAt) {
|
|
12539
|
-
if (typeof sig !== "string" || !SIG$5.test(sig) || !
|
|
12618
|
+
if (typeof sig !== "string" || !SIG$5.test(sig) || !isZ32Key(key)) return false;
|
|
12540
12619
|
return verify(fromBase64Url(sig), identityPresentationBytes(proofId, scope, nonce, issuedAt), publicKeyFromZ32(key));
|
|
12541
12620
|
}
|
|
12542
12621
|
var clean$1 = (value, max) => {
|
|
@@ -12589,6 +12668,18 @@ function receivedIdentityStatus(r, presenter, audience, now = nowSeconds()) {
|
|
|
12589
12668
|
if (Math.min(r.binding.expiresAt, r.verified.expiresAt ?? Infinity) <= now) return "expired";
|
|
12590
12669
|
return r.status === "unconfirmed" ? "unconfirmed" : "verified";
|
|
12591
12670
|
}
|
|
12671
|
+
var standing = (r, now) => r.status !== "withdrawn" && r.status !== "revoked" && Math.min(r.binding.expiresAt, r.verified.expiresAt ?? Infinity) > now;
|
|
12672
|
+
/**
|
|
12673
|
+
* `received` with room for one more proof: `replaced` (the older proof of the same identity) dropped, then the oldest ones
|
|
12674
|
+
* no longer standing; undefined when every place is still taken.
|
|
12675
|
+
*/
|
|
12676
|
+
function receivedWithRoom(received, id, replaced, now) {
|
|
12677
|
+
const kept = received.filter((r) => r.id !== id && !replaced(r));
|
|
12678
|
+
const gone = kept.filter((r) => !standing(r, now)).sort((a, b) => a.verifiedAt - b.verifiedAt);
|
|
12679
|
+
const drop = new Set(gone.slice(0, Math.max(0, kept.length - 16 + 1)));
|
|
12680
|
+
const out = kept.filter((r) => !drop.has(r));
|
|
12681
|
+
return out.length < 16 ? out : void 0;
|
|
12682
|
+
}
|
|
12592
12683
|
var shortError = (e) => clean$1(e instanceof Error ? e.message : String(e), 160) ?? "Invalid proof";
|
|
12593
12684
|
/**
|
|
12594
12685
|
* A check this side could not finish because of what its own network did: a host it refused to contact, a server
|
|
@@ -12604,6 +12695,7 @@ var IdentityCheckUnavailable = class extends Error {
|
|
|
12604
12695
|
};
|
|
12605
12696
|
/** What the contact is told when the check failed with an IdentityCheckUnavailable. */
|
|
12606
12697
|
var IDENTITY_CHECK_UNAVAILABLE = "Your contact's app could not check it. Try again later.";
|
|
12698
|
+
var TOO_MANY_RECEIVED = "Your contact keeps too many identities from you already";
|
|
12607
12699
|
var peerError = (e) => e instanceof IdentityCheckUnavailable ? IDENTITY_CHECK_UNAVAILABLE : shortError(e);
|
|
12608
12700
|
/**
|
|
12609
12701
|
* The `idp-*` exchange of one conversation. Frames (all JSON, additive, over the paired channel,
|
|
@@ -12828,31 +12920,29 @@ var IdentityExchange = class {
|
|
|
12828
12920
|
});
|
|
12829
12921
|
return;
|
|
12830
12922
|
}
|
|
12831
|
-
case "idp-withdraw":
|
|
12923
|
+
case "idp-withdraw": {
|
|
12832
12924
|
if (!id) return;
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
reason: "withdrawn"
|
|
12849
|
-
}) : next;
|
|
12850
|
-
});
|
|
12925
|
+
const r = this.options.storage.read().received.find((x) => x.id === id);
|
|
12926
|
+
if (r && r.status !== "withdrawn") await this.options.storage.update((l) => this.log({
|
|
12927
|
+
...l,
|
|
12928
|
+
received: l.received.map((x) => x.id === id ? {
|
|
12929
|
+
...x,
|
|
12930
|
+
status: "withdrawn"
|
|
12931
|
+
} : x)
|
|
12932
|
+
}, {
|
|
12933
|
+
type: "stopped",
|
|
12934
|
+
side: "theirs",
|
|
12935
|
+
proof: id,
|
|
12936
|
+
provider: r.binding.provider,
|
|
12937
|
+
subject: r.verified.subject,
|
|
12938
|
+
reason: "withdrawn"
|
|
12939
|
+
}));
|
|
12851
12940
|
this.send({
|
|
12852
12941
|
t: "idp-withdrawn",
|
|
12853
12942
|
id
|
|
12854
12943
|
});
|
|
12855
12944
|
return;
|
|
12945
|
+
}
|
|
12856
12946
|
case "idp-withdrawn": {
|
|
12857
12947
|
const s = id ? this.shared(id) : void 0;
|
|
12858
12948
|
if (s?.status === "withdrawal-pending") await this.setShared({
|
|
@@ -12870,25 +12960,11 @@ var IdentityExchange = class {
|
|
|
12870
12960
|
async onRequest(id, provider) {
|
|
12871
12961
|
if (!id) return;
|
|
12872
12962
|
if (typeof provider !== "string" || !this.options.providers().includes(provider)) {
|
|
12873
|
-
const error = "Your contact's app cannot verify this kind of identity yet";
|
|
12874
|
-
if (typeof provider === "string" && IDENTITY_PROVIDER_ID.test(provider)) await this.options.storage.update((l) => this.log(this.log(l, {
|
|
12875
|
-
type: "shared",
|
|
12876
|
-
side: "theirs",
|
|
12877
|
-
proof: id,
|
|
12878
|
-
provider
|
|
12879
|
-
}), {
|
|
12880
|
-
type: "result",
|
|
12881
|
-
side: "theirs",
|
|
12882
|
-
proof: id,
|
|
12883
|
-
provider,
|
|
12884
|
-
ok: false,
|
|
12885
|
-
error: "This app cannot verify this kind of identity yet"
|
|
12886
|
-
}));
|
|
12887
12963
|
this.send({
|
|
12888
12964
|
t: "idp-result",
|
|
12889
12965
|
id,
|
|
12890
12966
|
ok: false,
|
|
12891
|
-
error
|
|
12967
|
+
error: "Your contact's app cannot verify this kind of identity yet"
|
|
12892
12968
|
});
|
|
12893
12969
|
return;
|
|
12894
12970
|
}
|
|
@@ -12974,6 +13050,8 @@ var IdentityExchange = class {
|
|
|
12974
13050
|
/** The same, as this side's own timeline says it. */
|
|
12975
13051
|
let reason;
|
|
12976
13052
|
try {
|
|
13053
|
+
const mayReplace = (r) => r.binding.provider === binding.provider && (r.binding.subject === binding.subject || r.verified.subject === binding.subject);
|
|
13054
|
+
if (!receivedWithRoom(this.options.storage.read().received, id, mayReplace, now)) throw new Error(TOO_MANY_RECEIVED);
|
|
12977
13055
|
if (JSON.stringify(evidence ?? null).length > 16384) throw new Error("Evidence too large");
|
|
12978
13056
|
if (!verifyIdentityPresentation(binding.key, sig, id, scope, nonce, issuedAt)) throw new Error("The proof key did not sign this conversation's challenge");
|
|
12979
13057
|
if (binding.issuedAt > now + 300) throw new Error("The proof is dated in the future");
|
|
@@ -12989,6 +13067,12 @@ var IdentityExchange = class {
|
|
|
12989
13067
|
const challenge = challengeOf(l);
|
|
12990
13068
|
if (!challenge) throw new Error("Unknown or reused identity challenge");
|
|
12991
13069
|
const challenges = l.challenges.filter((c) => c.nonce !== nonce);
|
|
13070
|
+
const subject = verified?.subject;
|
|
13071
|
+
const received = verified && receivedWithRoom(l.received, id, (r) => r.binding.provider === binding.provider && r.verified.subject === subject, now);
|
|
13072
|
+
if (verified && !received) {
|
|
13073
|
+
verified = void 0;
|
|
13074
|
+
error = reason = TOO_MANY_RECEIVED;
|
|
13075
|
+
}
|
|
12992
13076
|
const logged = this.log(l, {
|
|
12993
13077
|
type: "result",
|
|
12994
13078
|
side: "theirs",
|
|
@@ -12999,7 +13083,7 @@ var IdentityExchange = class {
|
|
|
12999
13083
|
ok: !!verified,
|
|
13000
13084
|
...reason ? { error: reason } : {}
|
|
13001
13085
|
});
|
|
13002
|
-
if (!verified) return {
|
|
13086
|
+
if (!verified || !received) return {
|
|
13003
13087
|
...logged,
|
|
13004
13088
|
challenges
|
|
13005
13089
|
};
|
|
@@ -13015,7 +13099,6 @@ var IdentityExchange = class {
|
|
|
13015
13099
|
checkedAt: now,
|
|
13016
13100
|
status: "verified"
|
|
13017
13101
|
};
|
|
13018
|
-
const received = l.received.filter((r) => r.id !== id && !(r.binding.provider === binding.provider && r.verified.subject === verified.subject));
|
|
13019
13102
|
return {
|
|
13020
13103
|
...logged,
|
|
13021
13104
|
challenges,
|
|
@@ -13107,8 +13190,7 @@ var CapsRefusedError = class extends Error {
|
|
|
13107
13190
|
var IDENT = /^[a-z0-9][a-z0-9._-]*\/[0-9]+$/;
|
|
13108
13191
|
var HEX64$1 = /^[0-9a-f]{64}$/;
|
|
13109
13192
|
var SIG$4 = /^[A-Za-z0-9_-]{86}$/;
|
|
13110
|
-
var
|
|
13111
|
-
var KEY$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
13193
|
+
var KEY = /^[A-Za-z0-9_-]{43}$/;
|
|
13112
13194
|
var hexToKey = (hex) => toBase64Url(Uint8Array.from(hex.match(/../g), (b) => parseInt(b, 16)));
|
|
13113
13195
|
var keyToHex = (key) => Array.from(fromBase64Url(key), (b) => b.toString(16).padStart(2, "0")).join("");
|
|
13114
13196
|
/**
|
|
@@ -13160,14 +13242,14 @@ function parseDescriptors(value) {
|
|
|
13160
13242
|
const out = {};
|
|
13161
13243
|
const iroh = raw["iroh/1"], hyper = raw["hyperdht/1"];
|
|
13162
13244
|
if (iroh !== void 0) {
|
|
13163
|
-
if (!iroh || typeof iroh.id !== "string" || !KEY
|
|
13245
|
+
if (!iroh || typeof iroh.id !== "string" || !KEY.test(iroh.id) || iroh.relay !== void 0 && (typeof iroh.relay !== "string" || !RELAY_URL.test(iroh.relay))) return null;
|
|
13164
13246
|
out["iroh/1"] = {
|
|
13165
13247
|
id: iroh.id,
|
|
13166
13248
|
...iroh.relay !== void 0 ? { relay: iroh.relay } : {}
|
|
13167
13249
|
};
|
|
13168
13250
|
}
|
|
13169
13251
|
if (hyper !== void 0) {
|
|
13170
|
-
if (!hyper || typeof hyper.publicKey !== "string" || !KEY
|
|
13252
|
+
if (!hyper || typeof hyper.publicKey !== "string" || !KEY.test(hyper.publicKey) || hyper.relay !== void 0 && (typeof hyper.relay !== "string" || !RELAY_URL.test(hyper.relay))) return null;
|
|
13171
13253
|
out["hyperdht/1"] = {
|
|
13172
13254
|
publicKey: hyper.publicKey,
|
|
13173
13255
|
...hyper.relay !== void 0 ? { relay: hyper.relay } : {}
|
|
@@ -13311,7 +13393,7 @@ var CapsKeys = class {
|
|
|
13311
13393
|
if (body.length < 10 || body.length > 16) throw new CapsRefusedError("format", "Malformed capability record.");
|
|
13312
13394
|
const [version, rev, issued, author, versions, transports, capabilities, extensions, rawDescriptors, name, choice] = body;
|
|
13313
13395
|
const descriptors = parseDescriptors(rawDescriptors);
|
|
13314
|
-
if (version !== 1 || !Number.isSafeInteger(rev) || rev < 0 || !Number.isSafeInteger(issued) || issued <= 0 ||
|
|
13396
|
+
if (version !== 1 || !Number.isSafeInteger(rev) || rev < 0 || !Number.isSafeInteger(issued) || issued <= 0 || !isZ32Key(author) || !list$2(versions, CAPS_LIMITS.versions, (v) => Number.isSafeInteger(v) && v > 0) || !list$2(transports, CAPS_LIMITS.transports, ident) || transports.includes("dht/1") || !list$2(capabilities, CAPS_LIMITS.capabilities, ident) || !list$2(extensions, CAPS_LIMITS.extensions, ident) || !descriptors || typeof name !== "string" || utf8Encode(name).length > CAPS_LIMITS.nameBytes || choice !== void 0 && (!ident(choice) || choice === "dht/1")) throw new CapsRefusedError("format", "Malformed capability record.");
|
|
13315
13397
|
const signer = options.pinned ?? options.expected;
|
|
13316
13398
|
if (signer && author !== signer) throw new CapsRefusedError("author", "The capability record is signed by another participation key than this contact's.");
|
|
13317
13399
|
try {
|
|
@@ -14267,13 +14349,12 @@ var SESSION_RECEIVE_PENDING = {
|
|
|
14267
14349
|
frames: 1024,
|
|
14268
14350
|
bytes: 64 * SESSION_FRAME_MAX
|
|
14269
14351
|
};
|
|
14270
|
-
var KEY = /^[ybndrfg8ejkmcpqxot1uwisza345h769]{52}$/;
|
|
14271
14352
|
var NONCE$1 = /^[A-Za-z0-9_-]{43}$/;
|
|
14272
14353
|
var SIG$2 = /^[A-Za-z0-9_-]{86}$/;
|
|
14273
14354
|
var FINGERPRINT = /^[a-f0-9]{64}$/;
|
|
14274
14355
|
var isList = (v, maximum = 8) => Array.isArray(v) && v.length > 0 && v.length <= maximum && v.every((x) => typeof x === "string" && /^[a-z0-9/-]{1,40}$/.test(x)) && new Set(v).size === v.length;
|
|
14275
14356
|
function parseOffer(v) {
|
|
14276
|
-
if (!Array.isArray(v.versions) || v.versions.length === 0 || v.versions.length > 8 || !v.versions.every((n) => Number.isSafeInteger(n) && n > 0) || new Set(v.versions).size !== v.versions.length || !isList(v.transports) || !isList(v.capabilities, 32) ||
|
|
14357
|
+
if (!Array.isArray(v.versions) || v.versions.length === 0 || v.versions.length > 8 || !v.versions.every((n) => Number.isSafeInteger(n) && n > 0) || new Set(v.versions).size !== v.versions.length || !isList(v.transports) || !isList(v.capabilities, 32) || !isZ32Key(v.key) || typeof v.nonce !== "string" || !NONCE$1.test(v.nonce)) return null;
|
|
14277
14358
|
const extensions = isList(v.extensions, 32) ? v.extensions : void 0;
|
|
14278
14359
|
return {
|
|
14279
14360
|
t: "pair-offer",
|
|
@@ -14404,7 +14485,7 @@ var PairedSession = class {
|
|
|
14404
14485
|
}
|
|
14405
14486
|
start() {
|
|
14406
14487
|
const binding = this.options.binding;
|
|
14407
|
-
if (!(binding ? (binding.transport === "hyperdht/1" ? /^[a-f0-9]{128}$/.test(binding.context) : FINGERPRINT.test(binding.context)) && binding.identities.length === 2 && binding.identities.every((k) => FINGERPRINT.test(k)) && binding.identities[0] !== binding.identities[1] : this.options.fingerprints?.length === 2 && this.options.fingerprints.every((f) => FINGERPRINT.test(f))) || !this.offer.transports.includes(this.transport) || this.options.rendezvousKeys.some((k) => !
|
|
14488
|
+
if (!(binding ? (binding.transport === "hyperdht/1" ? /^[a-f0-9]{128}$/.test(binding.context) : FINGERPRINT.test(binding.context)) && binding.identities.length === 2 && binding.identities.every((k) => FINGERPRINT.test(k)) && binding.identities[0] !== binding.identities[1] : this.options.fingerprints?.length === 2 && this.options.fingerprints.every((f) => FINGERPRINT.test(f))) || !this.offer.transports.includes(this.transport) || this.options.rendezvousKeys.some((k) => !isZ32Key(k))) return this.fail("Invalid connection binding or unavailable transport");
|
|
14408
14489
|
this.channel.onMessage = (data) => {
|
|
14409
14490
|
if (this.stopped) return;
|
|
14410
14491
|
const size = data.length;
|
|
@@ -17711,7 +17792,7 @@ var CarriedTransport = class {
|
|
|
17711
17792
|
var GROUP_FILE_LIMITS = {
|
|
17712
17793
|
/** The largest file a group takes. */
|
|
17713
17794
|
maxBytes: 104857600,
|
|
17714
|
-
/** A file this size or smaller is fetched without asking
|
|
17795
|
+
/** A file this size or smaller is fetched without asking, a voice message too (one recorded is well inside it). */
|
|
17715
17796
|
autoBytes: 8388608,
|
|
17716
17797
|
/** What a device keeps of a group's files it fetched without asking; past it, every file is asked about. */
|
|
17717
17798
|
autoBytesPerGroup: 268435456,
|
|
@@ -17719,6 +17800,10 @@ var GROUP_FILE_LIMITS = {
|
|
|
17719
17800
|
serveBytesPerDay: 1073741824,
|
|
17720
17801
|
/** Transfers a holder serves at once, all groups together. */
|
|
17721
17802
|
serveAtOnce: 3,
|
|
17803
|
+
/** Bytes a served transfer gets confirmed (or the rest of its file) for it to count as moving in `wantWaitMs`. */
|
|
17804
|
+
serveMoveBytes: 16384,
|
|
17805
|
+
/** How long a served transfer keeps its place while all are taken and another member asks: past it, the place is theirs. */
|
|
17806
|
+
servePlaceMs: 3e5,
|
|
17722
17807
|
/** File announcements a member sends to one group in a minute. */
|
|
17723
17808
|
announcePerMinute: 8,
|
|
17724
17809
|
/** File announcements of one member of a group fetched by themselves in `announceWindowMs`; past it, kept for a Download. */
|
|
@@ -17745,11 +17830,21 @@ var GROUP_FILE_LIMITS = {
|
|
|
17745
17830
|
* left for the next holder too.
|
|
17746
17831
|
*/
|
|
17747
17832
|
wantWaitMs: 3e4,
|
|
17833
|
+
/**
|
|
17834
|
+
* How long a served transfer with all its bytes confirmed waits for the member's word that its check passed once the
|
|
17835
|
+
* member's next want has overtaken it.
|
|
17836
|
+
*/
|
|
17837
|
+
doneWaitMs: 5e3,
|
|
17748
17838
|
/** A file session closes this long after its last transfer ends. */
|
|
17749
17839
|
sessionIdleMs: 6e4,
|
|
17750
17840
|
/** File sessions opening at once, and open at once, all groups together. */
|
|
17751
17841
|
sessionsOpening: 2,
|
|
17752
17842
|
sessionsOpen: 4,
|
|
17843
|
+
/**
|
|
17844
|
+
* What a transfer must bring in `wantWaitMs` (or the rest of its file, when less) to count as moving: a holder that
|
|
17845
|
+
* sends a few bytes at a time is left as one that stalls.
|
|
17846
|
+
*/
|
|
17847
|
+
wantMoveBytes: 16384,
|
|
17753
17848
|
/** The longest file name and type kept from a description. */
|
|
17754
17849
|
nameChars: 255,
|
|
17755
17850
|
mimeChars: 255
|
|
@@ -17836,11 +17931,11 @@ function groupFileFallback(file) {
|
|
|
17836
17931
|
return `${fileMessageText(file)} (${formatFileSize(file.size)}): update Ghostly to get files in groups`;
|
|
17837
17932
|
}
|
|
17838
17933
|
/**
|
|
17839
|
-
* Whether a device fetches a file by itself (WISP 503 § Automatic and asked downloads):
|
|
17840
|
-
*
|
|
17934
|
+
* Whether a device fetches a file by itself (WISP 503 § Automatic and asked downloads): up to `autoBytes` while what
|
|
17935
|
+
* it took that way from the group stays within `autoBytesPerGroup`. A voice message too: one recorded (15 minutes at
|
|
17936
|
+
* most, about 3.6 MB) always fits, and a bigger file the author called a voice message is asked about like any other.
|
|
17841
17937
|
*/
|
|
17842
17938
|
function fetchesByItself(file, keptAutomatically, limits = GROUP_FILE_LIMITS) {
|
|
17843
|
-
if (file.voice) return true;
|
|
17844
17939
|
return file.size <= limits.autoBytes && keptAutomatically + file.size <= limits.autoBytesPerGroup;
|
|
17845
17940
|
}
|
|
17846
17941
|
//#endregion
|
|
@@ -18532,6 +18627,24 @@ var GhostLink = class {
|
|
|
18532
18627
|
/** Edit frames the contact may send per window; the rest go unconfirmed and come again. */
|
|
18533
18628
|
editsReceived = new RateWindow(30, EDIT_RATE_WINDOW_MS);
|
|
18534
18629
|
wakeReceived = new RateWindow(6, 6e4);
|
|
18630
|
+
/**
|
|
18631
|
+
* The contact's name and picture, each saved when it changes: said once a session and when changed, so a handful a
|
|
18632
|
+
* minute each. Past that only the newest waits, read once the window has room again.
|
|
18633
|
+
*/
|
|
18634
|
+
peerSaid = {
|
|
18635
|
+
"paired-nick": {
|
|
18636
|
+
window: new RateWindow(6, 6e4),
|
|
18637
|
+
read: null,
|
|
18638
|
+
timer: null
|
|
18639
|
+
},
|
|
18640
|
+
"paired-avatar": {
|
|
18641
|
+
window: new RateWindow(6, 6e4),
|
|
18642
|
+
read: null,
|
|
18643
|
+
timer: null
|
|
18644
|
+
}
|
|
18645
|
+
};
|
|
18646
|
+
/** Identity-proof frames the contact may send per window; the rest are dropped before they are read. */
|
|
18647
|
+
identityReceived = new RateWindow(40, IDENTITY_FRAME_WINDOW_MS);
|
|
18535
18648
|
livenessTimer = null;
|
|
18536
18649
|
peerAnswersPings = false;
|
|
18537
18650
|
/** When the ping awaiting its pong went, and the round trip last measured on this session. */
|
|
@@ -20000,8 +20113,9 @@ var GhostLink = class {
|
|
|
20000
20113
|
}
|
|
20001
20114
|
/**
|
|
20002
20115
|
* Ends the idle live session on this transport and lets its listener go, for a chat in use that found every one
|
|
20003
|
-
* taken. The contact hears a goodbye
|
|
20004
|
-
*
|
|
20116
|
+
* taken. The contact hears a goodbye that says so (`yield`, `peerYielded`), rather than finding out when its pings go
|
|
20117
|
+
* unanswered, and does not watch for this app as for one that quit; the record then lists the transport undescribed,
|
|
20118
|
+
* so it stops dialling here. The chat goes on over the DHT (or WebRTC),
|
|
20005
20119
|
* and takes a listener again the same way once it is in use. False when the session may not end (see above).
|
|
20006
20120
|
*/
|
|
20007
20121
|
async yieldEndpoint(transport, idleMs) {
|
|
@@ -20013,7 +20127,10 @@ var GhostLink = class {
|
|
|
20013
20127
|
this.yielding = true;
|
|
20014
20128
|
try {
|
|
20015
20129
|
try {
|
|
20016
|
-
this.channel?.send(JSON.stringify({
|
|
20130
|
+
this.channel?.send(JSON.stringify({
|
|
20131
|
+
t: "paired-bye",
|
|
20132
|
+
yield: true
|
|
20133
|
+
}));
|
|
20017
20134
|
} catch {}
|
|
20018
20135
|
await new Promise((resolve) => setTimeout(resolve, YIELD_BYE_MS));
|
|
20019
20136
|
this.disconnect();
|
|
@@ -22063,7 +22180,10 @@ var GhostLink = class {
|
|
|
22063
22180
|
return;
|
|
22064
22181
|
}
|
|
22065
22182
|
if (frame?.t === "paired-bye") {
|
|
22066
|
-
if (paired.state.status === "ready")
|
|
22183
|
+
if (paired.state.status === "ready") {
|
|
22184
|
+
if (frame.yield === true) this.peerYielded(channel);
|
|
22185
|
+
else this.peerDeparted(channel);
|
|
22186
|
+
}
|
|
22067
22187
|
return;
|
|
22068
22188
|
}
|
|
22069
22189
|
if (!frame || typeof frame !== "object") return;
|
|
@@ -22142,25 +22262,15 @@ var GhostLink = class {
|
|
|
22142
22262
|
return;
|
|
22143
22263
|
}
|
|
22144
22264
|
if (typeof frame?.t === "string" && frame.t.startsWith("idp-") && this.identitySupport) {
|
|
22145
|
-
await this.options.events?.onIdentityProof?.(frame);
|
|
22265
|
+
if (this.identityReceived.take()) await this.options.events?.onIdentityProof?.(frame);
|
|
22146
22266
|
return;
|
|
22147
22267
|
}
|
|
22148
22268
|
if (typeof frame?.t === "string" && frame.t.startsWith("proof-") && this.peerProofSupport) {
|
|
22149
22269
|
await this.options.events?.onPeerProof?.(frame);
|
|
22150
22270
|
return;
|
|
22151
22271
|
}
|
|
22152
|
-
if (frame?.t === "paired-avatar") {
|
|
22153
|
-
|
|
22154
|
-
if (avatar !== void 0) this.options.events?.onPeerAvatar?.(avatar);
|
|
22155
|
-
return;
|
|
22156
|
-
}
|
|
22157
|
-
if (frame?.t === "paired-nick") {
|
|
22158
|
-
const nick = sanitizeNick(frame.n);
|
|
22159
|
-
if (typeof frame.n === "string") this.options.events?.onPeerNick?.(nick ?? null);
|
|
22160
|
-
if (nick !== this.peerNickOverride) {
|
|
22161
|
-
this.peerNickOverride = nick ?? null;
|
|
22162
|
-
this.options.events?.onPresence?.(this.presence);
|
|
22163
|
-
}
|
|
22272
|
+
if (frame?.t === "paired-avatar" || frame?.t === "paired-nick") {
|
|
22273
|
+
this.peerSays(channel, frame.t, frame);
|
|
22164
22274
|
return;
|
|
22165
22275
|
}
|
|
22166
22276
|
if (frame?.t === "paired-capabilities") {
|
|
@@ -22517,6 +22627,18 @@ var GhostLink = class {
|
|
|
22517
22627
|
this.peerLost("bye");
|
|
22518
22628
|
}
|
|
22519
22629
|
/**
|
|
22630
|
+
* The contact gave this session's listener up to another chat (`yieldEndpoint`): its app is still there, and its
|
|
22631
|
+
* record now lists the transport undescribed, so there is nothing to dial and no return to watch for. The session
|
|
22632
|
+
* ends now, and the chat reads the contact at its own pace; the contact dials once it takes a listener back. Taken
|
|
22633
|
+
* as a goodbye, it was watched as an app that quit: 89 reads of its key in the 2 minutes after a yield on the
|
|
22634
|
+
* Desktop, against 6 at the background pace (bug hunt, 2026-10-15).
|
|
22635
|
+
*/
|
|
22636
|
+
peerYielded(channel) {
|
|
22637
|
+
if (this.channel !== channel || this.stopped) return;
|
|
22638
|
+
traceLink(this.myPubKeyZ32, "peer-yielded", {});
|
|
22639
|
+
this.disconnect();
|
|
22640
|
+
}
|
|
22641
|
+
/**
|
|
22520
22642
|
* A packet of the contact's not seen before, fresh, while nothing is live, soon after a live session ended: it is back
|
|
22521
22643
|
* (its app restarted), so the wait that the attempts since built up is over, and the next dial goes now. Once per
|
|
22522
22644
|
* loss: a contact that is there but unreachable publishes often, and the wait between attempts is what spares the
|
|
@@ -22611,6 +22733,57 @@ var GhostLink = class {
|
|
|
22611
22733
|
offered.woke = true;
|
|
22612
22734
|
if (!this.dialing) setTimeout(() => this.maybeKnockEarly(offered.epoch), 0);
|
|
22613
22735
|
}
|
|
22736
|
+
/**
|
|
22737
|
+
* A name or picture the contact said, once it is one (reading it costs little; saving it is what counts): past the
|
|
22738
|
+
* window the newest waits for room on this session, so the last word still counts.
|
|
22739
|
+
*/
|
|
22740
|
+
peerSays(channel, kind, frame) {
|
|
22741
|
+
let read;
|
|
22742
|
+
if (kind === "paired-avatar") {
|
|
22743
|
+
const avatar = sanitizeAvatar(frame.a);
|
|
22744
|
+
if (avatar === void 0) return;
|
|
22745
|
+
read = () => this.options.events?.onPeerAvatar?.(avatar);
|
|
22746
|
+
} else {
|
|
22747
|
+
const nick = sanitizeNick(frame.n) ?? null, said = typeof frame.n === "string";
|
|
22748
|
+
read = () => {
|
|
22749
|
+
if (said) this.options.events?.onPeerNick?.(nick);
|
|
22750
|
+
if (nick !== this.peerNickOverride) {
|
|
22751
|
+
this.peerNickOverride = nick;
|
|
22752
|
+
this.options.events?.onPresence?.(this.presence);
|
|
22753
|
+
}
|
|
22754
|
+
};
|
|
22755
|
+
}
|
|
22756
|
+
const held = this.peerSaid[kind];
|
|
22757
|
+
if (!held.timer && held.window.take()) {
|
|
22758
|
+
read();
|
|
22759
|
+
return;
|
|
22760
|
+
}
|
|
22761
|
+
held.read = read;
|
|
22762
|
+
if (held.timer) return;
|
|
22763
|
+
const due = () => {
|
|
22764
|
+
held.timer = null;
|
|
22765
|
+
if (this.channel !== channel || !held.read) {
|
|
22766
|
+
held.read = null;
|
|
22767
|
+
return;
|
|
22768
|
+
}
|
|
22769
|
+
if (!held.window.take()) {
|
|
22770
|
+
held.timer = setTimeout(due, held.window.wait());
|
|
22771
|
+
return;
|
|
22772
|
+
}
|
|
22773
|
+
const next = held.read;
|
|
22774
|
+
held.read = null;
|
|
22775
|
+
next();
|
|
22776
|
+
};
|
|
22777
|
+
held.timer = setTimeout(due, held.window.wait());
|
|
22778
|
+
}
|
|
22779
|
+
/** What the contact said of itself and was still waiting goes with the session: the next one says it again. */
|
|
22780
|
+
dropPeerSaid() {
|
|
22781
|
+
for (const said of Object.values(this.peerSaid)) {
|
|
22782
|
+
if (said.timer) clearTimeout(said.timer);
|
|
22783
|
+
said.timer = null;
|
|
22784
|
+
said.read = null;
|
|
22785
|
+
}
|
|
22786
|
+
}
|
|
22614
22787
|
/** A ping on the session right after a wake, with `PONG_WAIT_MS` for its answer: none, and the session is dead. */
|
|
22615
22788
|
probeAfterWake(channel) {
|
|
22616
22789
|
if (!this.peerAnswersPings || this.paired?.state.status !== "ready") return;
|
|
@@ -22653,6 +22826,7 @@ var GhostLink = class {
|
|
|
22653
22826
|
this.channel = this.httpHost = this.httpClient = this.files = null;
|
|
22654
22827
|
this.peerServicesOverride = null;
|
|
22655
22828
|
this.peerNickOverride = null;
|
|
22829
|
+
this.dropPeerSaid();
|
|
22656
22830
|
this.sessionCapabilities.reset();
|
|
22657
22831
|
this.typingSender.reset();
|
|
22658
22832
|
this.typingReceiver.clear();
|
|
@@ -23172,6 +23346,10 @@ function parsePayParams(body, destination) {
|
|
|
23172
23346
|
if (body.tag !== "payRequest") throw new Error(`${destination.domain} answered with something other than a pay request${typeof body.tag === "string" ? ` (${reason(body.tag)})` : ""}`);
|
|
23173
23347
|
if (typeof body.callback !== "string") throw new Error("The pay request has no callback");
|
|
23174
23348
|
const callback = acceptUrl(body.callback);
|
|
23349
|
+
if (callback.host !== new URL(destination.url).host) {
|
|
23350
|
+
if (callback.protocol !== "https:") throw new Error("Lightning addresses and LNURLs must use HTTPS");
|
|
23351
|
+
if (isLocalHost(callback.hostname)) throw new Error(`${destination.domain} asks for the invoice at a local address`);
|
|
23352
|
+
}
|
|
23175
23353
|
const { minSendable, maxSendable, metadata, commentAllowed } = body;
|
|
23176
23354
|
if (!Number.isSafeInteger(minSendable) || !Number.isSafeInteger(maxSendable) || minSendable <= 0 || maxSendable < minSendable) throw new Error("The pay request has invalid amount limits");
|
|
23177
23355
|
const minSat = Math.ceil(minSendable / 1e3), maxSat = Math.floor(maxSendable / 1e3);
|
|
@@ -23310,10 +23488,14 @@ function decodeSvcbRecords(dnsPacket) {
|
|
|
23310
23488
|
}
|
|
23311
23489
|
return records;
|
|
23312
23490
|
}
|
|
23313
|
-
/**
|
|
23491
|
+
/**
|
|
23492
|
+
* The homeserver a Pubky key's packet names: the z-base-32 key its `_pubky` record points at, or undefined. The target
|
|
23493
|
+
* is read next as a key (`pubkyRecords` checks the homeserver's packet against it), so only a canonical one names a
|
|
23494
|
+
* homeserver; a respelled one is none, not a lookup that fails as "no records".
|
|
23495
|
+
*/
|
|
23314
23496
|
function pubkyHomeserverOf(dnsPacket, userZ32) {
|
|
23315
23497
|
const record = decodeSvcbRecords(dnsPacket).find((r) => r.name === `_pubky.${userZ32}` || r.name === "_pubky");
|
|
23316
|
-
return record &&
|
|
23498
|
+
return record && isZ32Key(record.target) ? record.target : void 0;
|
|
23317
23499
|
}
|
|
23318
23500
|
/**
|
|
23319
23501
|
* The homeserver's web endpoint from its own packet: of the HTTPS/SVCB records at its root, the lowest priority one
|
|
@@ -23641,6 +23823,8 @@ function assertTokenUnits(amount) {
|
|
|
23641
23823
|
function assertWholeSats(amount) {
|
|
23642
23824
|
if (!Number.isSafeInteger(amount) || amount <= 0 || amount > 0x775f05a074000) throw new Error("Enter a positive whole amount in sats");
|
|
23643
23825
|
}
|
|
23826
|
+
/** Arkade and Bark addresses are bech32m with `ark` on Bitcoin and `tark` on the test networks (one case only). */
|
|
23827
|
+
var arkAddressPrefix = (network) => network === "bitcoin" ? "ark1" : "tark1";
|
|
23644
23828
|
function validatePaymentTarget(value, now = Date.now()) {
|
|
23645
23829
|
if (!value || typeof value !== "object") throw new Error("Invalid payment target");
|
|
23646
23830
|
const t = value;
|
|
@@ -23679,6 +23863,7 @@ function validatePaymentTarget(value, now = Date.now()) {
|
|
|
23679
23863
|
"regtest"
|
|
23680
23864
|
].includes(t.network)) throw new Error("Unsupported Bark network");
|
|
23681
23865
|
if (typeof t.address !== "string" || !t.address || t.address.length > 4096 || typeof t.provider !== "string" || t.provider.length > 512) throw new Error("Invalid payment destination");
|
|
23866
|
+
if ((t.method === "arkade" || t.method === "bark") && (t.address !== t.address.toLowerCase() && t.address !== t.address.toUpperCase() || !t.address.toLowerCase().startsWith(arkAddressPrefix(t.network)))) throw new Error(`That is not an Ark address on ${t.network === "bitcoin" ? "Bitcoin" : t.network}`);
|
|
23682
23867
|
if (t.method !== "bitcoin" && t.method !== "fedimint" && t.method !== "spark") {
|
|
23683
23868
|
const url = new URL(t.provider);
|
|
23684
23869
|
if (url.username || url.password || url.search || url.hash || url.protocol !== "https:" && !(url.protocol === "http:" && [
|
|
@@ -25341,7 +25526,7 @@ function shortAtprotoDid(did) {
|
|
|
25341
25526
|
}
|
|
25342
25527
|
/** The record key of a proof: its proof key (z-base-32, already a valid record key), so removal finds it. */
|
|
25343
25528
|
function atprotoProofRkey(proofKey) {
|
|
25344
|
-
if (
|
|
25529
|
+
if (!isZ32Key(proofKey)) throw new Error("Invalid proof key");
|
|
25345
25530
|
return proofKey;
|
|
25346
25531
|
}
|
|
25347
25532
|
var fragment = (id, did, name) => id === `#${name}` || id === `${did}#${name}`;
|
|
@@ -26817,6 +27002,28 @@ var fileAad = (f) => JSON.stringify([
|
|
|
26817
27002
|
f.ts
|
|
26818
27003
|
]);
|
|
26819
27004
|
var isFileBox = isSealedBox(MAX_FILE_BOX);
|
|
27005
|
+
/** The author's name (`MAX_NICK_LENGTH` characters of up to four bytes each), sealed; signed apart from `xs` (`ns`). */
|
|
27006
|
+
var MAX_NICK_BOX = Math.ceil(1088 / 3) + 4;
|
|
27007
|
+
var nickAad = (f) => JSON.stringify([
|
|
27008
|
+
"ghostly-group/1 nick",
|
|
27009
|
+
f.g,
|
|
27010
|
+
f.e,
|
|
27011
|
+
f.s,
|
|
27012
|
+
f.n,
|
|
27013
|
+
f.ts
|
|
27014
|
+
]);
|
|
27015
|
+
var nickSigned = (f, nk) => utf8Encode(JSON.stringify([
|
|
27016
|
+
"ghostly-group/1 nick",
|
|
27017
|
+
f.g,
|
|
27018
|
+
f.e,
|
|
27019
|
+
f.s,
|
|
27020
|
+
f.n,
|
|
27021
|
+
f.ts,
|
|
27022
|
+
nk.n,
|
|
27023
|
+
nk.c
|
|
27024
|
+
]));
|
|
27025
|
+
var isNickBox = isSealedBox(MAX_NICK_BOX);
|
|
27026
|
+
var isSignature = (v) => typeof v === "string" && v.length === 86 && B64$1.test(v);
|
|
26820
27027
|
var B64$1 = /^[A-Za-z0-9_-]*$/;
|
|
26821
27028
|
var secretAad$1 = (g, e, member) => JSON.stringify([
|
|
26822
27029
|
"ghostly-group/1 secret",
|
|
@@ -26956,7 +27163,7 @@ var ownKey = (f) => `${f.e}:${f.n}`;
|
|
|
26956
27163
|
/** What a frame weighs in a log, roughly: its boxes plus the fixed fields around them. */
|
|
26957
27164
|
var frameKey$1 = (f) => `${f.s}:${f.e}:${f.n}`;
|
|
26958
27165
|
/** What a kept frame counts for against `GROUP_LIMITS.relayBytes`. */
|
|
26959
|
-
var frameBytes = (f) => f.c.length + (f.m?.c.length ?? 0) + (f.r?.c.length ?? 0) + (f.sc?.c.length ?? 0) + (f.fl?.c.length ?? 0) + 400;
|
|
27166
|
+
var frameBytes = (f) => f.c.length + (f.m?.c.length ?? 0) + (f.r?.c.length ?? 0) + (f.sc?.c.length ?? 0) + (f.fl?.c.length ?? 0) + (f.nk?.c.length ?? 0) + 400;
|
|
26960
27167
|
/** Only the fields an edit frame has, as `clean` does for a message. */
|
|
26961
27168
|
var cleanEdit = (f) => ({
|
|
26962
27169
|
t: GROUP_EDIT_FRAME,
|
|
@@ -27000,7 +27207,14 @@ function clean(f) {
|
|
|
27000
27207
|
c: f.fl.c
|
|
27001
27208
|
} } : {},
|
|
27002
27209
|
...readFirstPlace(f.o, f.e) ? { o: readFirstPlace(f.o, f.e) } : {},
|
|
27003
|
-
...typeof f.xs === "string" && f.xs.length === 86 && B64$1.test(f.xs) ? { xs: f.xs } : {}
|
|
27210
|
+
...typeof f.xs === "string" && f.xs.length === 86 && B64$1.test(f.xs) ? { xs: f.xs } : {},
|
|
27211
|
+
...isNickBox(f.nk) && isSignature(f.ns) ? {
|
|
27212
|
+
nk: {
|
|
27213
|
+
n: f.nk.n,
|
|
27214
|
+
c: f.nk.c
|
|
27215
|
+
},
|
|
27216
|
+
ns: f.ns
|
|
27217
|
+
} : {}
|
|
27004
27218
|
};
|
|
27005
27219
|
}
|
|
27006
27220
|
/** Whether the member whose sync this is lacks a frame: above what it has from that sender, or one it names as missing. */
|
|
@@ -27070,6 +27284,8 @@ var GroupSession = class {
|
|
|
27070
27284
|
asked = /* @__PURE__ */ new Map();
|
|
27071
27285
|
/** The signed leave of each member I last passed on, kept for an admin that was away (`byesHeld`). In memory only. */
|
|
27072
27286
|
byesPassed = /* @__PURE__ */ new Map();
|
|
27287
|
+
/** Member → when the name I hold for it was said: its message's time, or the moment an edge said it (`heardName`). In memory only. */
|
|
27288
|
+
nickAt = /* @__PURE__ */ new Map();
|
|
27073
27289
|
queue = Promise.resolve();
|
|
27074
27290
|
/** One metadata frame that names a commit or an epoch I do not have yet: tried again when the chain moves. */
|
|
27075
27291
|
pendingMeta;
|
|
@@ -27428,7 +27644,7 @@ var GroupSession = class {
|
|
|
27428
27644
|
rewelcome(memberKey) {
|
|
27429
27645
|
return this.serialize(async () => {
|
|
27430
27646
|
this.requireAdmin();
|
|
27431
|
-
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey) throw new Error("Not a member");
|
|
27647
|
+
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey || !isZ32Key(memberKey)) throw new Error("Not a member");
|
|
27432
27648
|
const chain = this.state.chain;
|
|
27433
27649
|
let admitted = chain.length - 1;
|
|
27434
27650
|
while (admitted >= 0 && !(chain[admitted].k === "add" && chain[admitted].s === memberKey)) admitted--;
|
|
@@ -27510,7 +27726,7 @@ var GroupSession = class {
|
|
|
27510
27726
|
await this.persist();
|
|
27511
27727
|
for (const [key] of previous.m) {
|
|
27512
27728
|
if (key === this.myKey) continue;
|
|
27513
|
-
const member = rosterHas(roster, key);
|
|
27729
|
+
const member = rosterHas(roster, key) && isZ32Key(key);
|
|
27514
27730
|
this.hooks.send(key, {
|
|
27515
27731
|
t: "group-commit",
|
|
27516
27732
|
g: this.id,
|
|
@@ -27688,6 +27904,8 @@ var GroupSession = class {
|
|
|
27688
27904
|
...extra.file ? { fl: encryptText(key, fileAad(header), JSON.stringify(extra.file)) } : {},
|
|
27689
27905
|
...o ? { o } : {}
|
|
27690
27906
|
};
|
|
27907
|
+
const nick = sanitizeNick(this.hooks.nick?.());
|
|
27908
|
+
const nk = nick === void 0 ? void 0 : encryptText(key, nickAad(header), nick);
|
|
27691
27909
|
return {
|
|
27692
27910
|
t: "group-msg",
|
|
27693
27911
|
...unsigned,
|
|
@@ -27696,7 +27914,11 @@ var GroupSession = class {
|
|
|
27696
27914
|
xs: toBase64Url(sign(messageSignedWhole({
|
|
27697
27915
|
...unsigned,
|
|
27698
27916
|
...boxes
|
|
27699
|
-
}), this.identity.seed))
|
|
27917
|
+
}), this.identity.seed)),
|
|
27918
|
+
...nk ? {
|
|
27919
|
+
nk,
|
|
27920
|
+
ns: toBase64Url(sign(nickSigned(header, nk), this.identity.seed))
|
|
27921
|
+
} : {}
|
|
27700
27922
|
};
|
|
27701
27923
|
}
|
|
27702
27924
|
/** Into my bounded log, for members who missed it. */
|
|
@@ -27890,10 +28112,12 @@ var GroupSession = class {
|
|
|
27890
28112
|
setNick(key, nick) {
|
|
27891
28113
|
return this.serialize(async () => {
|
|
27892
28114
|
const clean = sanitizeNick(nick);
|
|
28115
|
+
this.nickAt.set(key, this.clock());
|
|
27893
28116
|
if ((this.state.nicks[key] ?? void 0) === clean) return;
|
|
27894
28117
|
if (clean) this.state.nicks[key] = clean;
|
|
27895
28118
|
else delete this.state.nicks[key];
|
|
27896
|
-
await this.persist();
|
|
28119
|
+
if (key === this.myKey) await this.persist();
|
|
28120
|
+
else this.persistSoon();
|
|
27897
28121
|
this.hooks.changed();
|
|
27898
28122
|
});
|
|
27899
28123
|
}
|
|
@@ -28125,6 +28349,7 @@ var GroupSession = class {
|
|
|
28125
28349
|
const key = epochKeys(secret, this.id, raw.e).message;
|
|
28126
28350
|
const text = decryptText(key, messageAad$1(raw), raw.nn, raw.c);
|
|
28127
28351
|
if (text === null) return;
|
|
28352
|
+
if (this.heardName(key, raw)) this.hooks.changed();
|
|
28128
28353
|
const firstFrame = first && {
|
|
28129
28354
|
...raw,
|
|
28130
28355
|
e: first.e,
|
|
@@ -28238,6 +28463,26 @@ var GroupSession = class {
|
|
|
28238
28463
|
return false;
|
|
28239
28464
|
}
|
|
28240
28465
|
}
|
|
28466
|
+
/**
|
|
28467
|
+
* The author's name in a message (`nk`), when the author's signature over it (`ns`) holds: any copy, handed on or
|
|
28468
|
+
* not, whole or not, since a member handing it on can only drop it. Taken only from a message newer than the one it
|
|
28469
|
+
* last came in, or than the moment an edge last said it (`setNick`), so a catch-up's older pages never bring back a
|
|
28470
|
+
* name the member changed since. Whether the name I hold changed.
|
|
28471
|
+
*/
|
|
28472
|
+
heardName(key, raw) {
|
|
28473
|
+
if (!isNickBox(raw.nk) || !isSignature(raw.ns) || raw.ts <= (this.nickAt.get(raw.s) ?? 0)) return false;
|
|
28474
|
+
try {
|
|
28475
|
+
if (!verify(fromBase64Url(raw.ns), nickSigned(raw, raw.nk), publicKeyFromZ32(raw.s))) return false;
|
|
28476
|
+
} catch {
|
|
28477
|
+
return false;
|
|
28478
|
+
}
|
|
28479
|
+
const nick = sanitizeNick(decryptText(key, nickAad(raw), raw.nk.n, raw.nk.c));
|
|
28480
|
+
if (nick === void 0) return false;
|
|
28481
|
+
this.nickAt.set(raw.s, raw.ts);
|
|
28482
|
+
if (this.state.nicks[raw.s] === nick) return false;
|
|
28483
|
+
this.state.nicks[raw.s] = nick;
|
|
28484
|
+
return true;
|
|
28485
|
+
}
|
|
28241
28486
|
openMentions(key, raw, text, everyone) {
|
|
28242
28487
|
if (!isMentionsBox(raw.m)) return [];
|
|
28243
28488
|
const plain = decryptText(key, mentionsAad(raw), raw.m.n, raw.m.c);
|
|
@@ -28429,7 +28674,7 @@ var GroupSession = class {
|
|
|
28429
28674
|
await this.replayWaiting();
|
|
28430
28675
|
}
|
|
28431
28676
|
async receiveSync(from, frame) {
|
|
28432
|
-
if (!rosterHas(this.roster, from) || !Number.isSafeInteger(frame.e) || frame.e < 0 || typeof frame.h !== "string") return;
|
|
28677
|
+
if (!rosterHas(this.roster, from) || !isZ32Key(from) || !Number.isSafeInteger(frame.e) || frame.e < 0 || typeof frame.h !== "string") return;
|
|
28433
28678
|
let answered = this.syncsAnswered.get(from);
|
|
28434
28679
|
if (!answered) this.syncsAnswered.set(from, answered = new RateWindow(GROUP_LIMITS.syncAnswers, GROUP_LIMITS.syncWindowMs, () => this.hooks.clock?.() ?? Date.now()));
|
|
28435
28680
|
if (!answered.take()) return;
|
|
@@ -29994,7 +30239,7 @@ var CommunitySession = class {
|
|
|
29994
30239
|
commit
|
|
29995
30240
|
});
|
|
29996
30241
|
if (FRESH.has(kind)) {
|
|
29997
|
-
for (const [key] of roster) if (key !== this.myKey) this.hooks.addressed(key, {
|
|
30242
|
+
for (const [key] of roster) if (key !== this.myKey && isZ32Key(key)) this.hooks.addressed(key, {
|
|
29998
30243
|
t: "group-secret",
|
|
29999
30244
|
v: 2,
|
|
30000
30245
|
g: this.id,
|
|
@@ -30041,7 +30286,7 @@ var CommunitySession = class {
|
|
|
30041
30286
|
rewelcome(memberKey) {
|
|
30042
30287
|
return this.serialize(async () => {
|
|
30043
30288
|
this.requireMember();
|
|
30044
|
-
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey) throw new Error("Not a member");
|
|
30289
|
+
if (!rosterHas(this.roster, memberKey) || memberKey === this.myKey || !isZ32Key(memberKey)) throw new Error("Not a member");
|
|
30045
30290
|
for (let i = this.state.chain.length - 1; i >= 0; i--) {
|
|
30046
30291
|
const c = this.state.chain[i];
|
|
30047
30292
|
if (c.k === "add" && c.s === memberKey) return this.welcomeFor(memberKey, communityCommitHash(c));
|
|
@@ -30107,7 +30352,10 @@ var CommunitySession = class {
|
|
|
30107
30352
|
seedB64: entry?.seedB64 ?? ""
|
|
30108
30353
|
};
|
|
30109
30354
|
await this.persist();
|
|
30110
|
-
if (entry) for (const key of this.others)
|
|
30355
|
+
if (entry) for (const key of this.others) {
|
|
30356
|
+
const frame = this.entryFrame(key);
|
|
30357
|
+
if (frame) this.hooks.addressed(key, frame);
|
|
30358
|
+
}
|
|
30111
30359
|
this.hooks.changed();
|
|
30112
30360
|
return this.state.entry.key;
|
|
30113
30361
|
});
|
|
@@ -30723,7 +30971,7 @@ var CommunitySession = class {
|
|
|
30723
30971
|
for (const { from, frame } of ready) await this.receiveMessage(from, frame);
|
|
30724
30972
|
}
|
|
30725
30973
|
async receiveSync(from, frame) {
|
|
30726
|
-
if (!this.isRecentMember(from) || !Number.isSafeInteger(frame.e) || typeof frame.h !== "string") return;
|
|
30974
|
+
if (!this.isRecentMember(from) || !isZ32Key(from) || !Number.isSafeInteger(frame.e) || typeof frame.h !== "string") return;
|
|
30727
30975
|
let answered = this.syncsAnswered.get(from);
|
|
30728
30976
|
if (!answered) this.syncsAnswered.set(from, answered = new RateWindow(COMMUNITY_LIMITS.syncAnswers, COMMUNITY_LIMITS.syncWindowMs, () => this.hooks.clock?.() ?? Date.now()));
|
|
30729
30977
|
if (!answered.take()) return;
|
|
@@ -30838,7 +31086,7 @@ var CommunitySession = class {
|
|
|
30838
31086
|
/** The current entry seed sealed to a member, when I hold it: sealed once per seed, not on every sync answer. */
|
|
30839
31087
|
entryFrame(to) {
|
|
30840
31088
|
const { key, seedB64 } = this.state.entry;
|
|
30841
|
-
if (!key || !seedB64) return null;
|
|
31089
|
+
if (!key || !seedB64 || !isZ32Key(to)) return null;
|
|
30842
31090
|
const sealed = this.sealedEntries.get(to);
|
|
30843
31091
|
if (sealed?.seedB64 === seedB64 && sealed.frame.x === key) return { ...sealed.frame };
|
|
30844
31092
|
const frame = {
|
|
@@ -32061,6 +32309,6 @@ function appStoreDecision(held, read) {
|
|
|
32061
32309
|
return read.digest === held.digest ? "same" : "equivocation";
|
|
32062
32310
|
}
|
|
32063
32311
|
//#endregion
|
|
32064
|
-
export { decodeCommunityLink as $, verifySetUpdate as $_, publishFailure as $a, decodeTxtPacket as $b, WAKE_SESSION_CAPABILITY as $c, EDIT_BUFFER_MAX as $d, ACTIVE_TASK_STATUSES as $f, filePartName as $g, compressSdp as $h, pubkyHomeserverOf as $i, IDENTITY_CLOCK_SKEW as $l, FIRST_PUBLISH_MAX_MS as $m, txHash as $n, readBeaconHead as $o, readCanonicalJson as $p, staticDidDocument as $r, WAKE_SUBJECT as $s, MAX_GROUP_META_BODY as $t, checkedDescriptors as $u, deviceKeyZ32 as $v, turnVerifierMark as $y, isAppLicense as A, readHandoffBusy as A_, GhostLink as Aa, traceLink as Ab, appDataBytes as Ac, PLAYABLE_AUDIO as Ad, REACTION_FRAME as Af, HANDOFF_CANCEL as Ag, PROTOCOL_VERSION as Ah, parsePaymentAmount as Ai, parseDomainTxt as Al, openSecret as Am, sshSignCommand as An, GROUP_VERSION_HUBS as Ao, APP_PREFIXES as Ap, DID_FILE_MAX_BYTES as Ar, typingFrame as As, GROUP_LIMITS as At, emptyProofLedger as Au, INVITE_MAX_LENGTH as Av, toBase64Url as Ax, TURN_SLOTS as Ay, groupTypingEpoch as B, readHandoffTurnFrame as B_, PONG_WAIT_MS as Ba, withRequestOptions as Bb, CALLS_CAPABILITY as Bc, recordingMime as Bd, reactionIsNewer as Bf, HANDOFF_MANIFEST as Bg, RTC_SIGNAL_MAX_AGE_MS as Bh, isBitcoinAddress as Bi, CAPS_PUBLISH_SPACING_MS as Bl, OFFER_HOST_GATHER_MS as Bm, decodeBase64 as Bn, beaconKeys as Bo, isAppRef as Bp, didJwsAlg as Br, parsePinFrame as Bs, GROUP_EDIT_TEXT_BYTES as Bt, validExternalKey as Bu, inviteQrSegments as Bv, sealTurnBody as By, APP_VIEWS as C, handoffVerifiedFrame as C_, CROSSED_FRESH_MS as Ca, TURN_SOURCE_TIMEOUT_MS as Cb, APP_RATE_LIMIT as Cc, readImageMeta as Cd, forwardedAgain as Cf, serviceIdFromName as Cg, sanitizeResponseHeaders as Ch, TEST_USDT_FAUCET_AMOUNT as Ci, dnsProofName as Cl, confirmationTag as Cm, SSH_PUBLIC_KEY_MAX as Cn, SIGNAL_CARRIERS as Co, MESSAGE_CLOCK_SKEW_MS as Cp, parseAtprotoDidKey as Cr, TYPING_TIMEOUT_MS as Cs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ct, applyIdentityEvent as Cu, deviceInviteJoinerKeyZ32 as Cv, bytesEqual as Cx, TURN_LAST_SEQUENCE as Cy, buildAppBundle as D, newHandoffId as D_, DEMOTE_MS as Da, normalizeRelayUrl as Db, APP_VERSION_MAX as Dc, safeBlobType as Dd, GROUP_REACTION_FRAME as Df, HANDOFF_ATTEMPTS as Dg, CHUNK_KIND as Dh, assertWholeSats as Di, isPublicAddress as Dl, epochKeys as Dm, sameSshKey as Dn, SIGNAL_REPLY_MS as Do, receivedTimestamp as Dp, verifyAtprotoRecordProof as Dr, parseTypingFrame as Ds, groupWakes as Dt, PeerProofs as Du, DEVICE_INVITE_VERSION as Dv, fromZ32 as Dx, TURN_REV_LIMIT as Dy, assembleAppBundle as E, isHandoffPartName as E_, DEMOTE_AFTER_FAILURES as Ea, currentRelays as Eb, APP_SEND_LIMIT as Ec, formatFileSize as Ed, COMMUNITY_REACTION_FRAME as Ef, HANDOFF_ACK as Eg, CHUNK_FLAG_END as Eh, assertTokenUnits as Ei, encodeDnsQuery as El, encryptText as Em, parseSshSignature as En, SIGNAL_PROVEN_MS as Eo, heardTime as Ep, unsignedCommitBytes as Er, parseTypingActivity as Es, groupWakeFrame as Et, PROOF_CAPABILITY as Eu, readDeviceInvite as Ev, fromBase64Url as Ex, TURN_NO_ACTIVE as Ey, readAppBundleAsync as F, readHandoffHave as F_, LIVENESS_PING_MS as Fa, RelayBreaker as Fb, isChatAppId as Fc, downsamplePeaks as Fd, parseReactionFrame as Ff, HANDOFF_FILE_REQUEST as Fg, sendBody as Fh, isSparkAddress as Fi, validDomainRecord as Fl, CONNECT_TIMEOUT_MS as Fm, BIP322_REVISION as Fn, meshRendezvous as Fo, appRevocationId as Fp, DID_METHODS as Fr, PIN_CLOCK_SKEW_MS as Fs, chainPieces as Ft, proofHash as Fu, decodeInviteCode as Fv, __esmMin as Fx, firstDeviceSetSecret as Fy, CommunitySession as G, SET_ACK as G_, RESUME_WAIT_MS as Ga, createRelayPayload as Gb, PIN_CAPABILITY as Gc, voicePeaksOf as Gd, PAIRED_REPLY_AUTHORS as Gf, HANDOFF_RELEASE as Gg, CALL_SIGNAL_FUTURE_MS as Gh, newPubkyProofFolder as Gi, DHT_TEXT_CAPABILITY as Gl, DIRECT_PEERS as Gm, decodeAnyBitcoinAddress as Gn, lobbyKeys as Go, readAppSignature as Gp, didWebFileUrl as Gr, pinnedFrame as Gs, parseCommunityEdit as Gt, ringClaims as Gu, DEVICE_CAPABILITIES as Gv, turnKeys as Gy, sealGroupTyping as H, sameDigest as H_, RACE_DIRECT_MS as Ha, PKARR_FUTURE_SKEW_MS as Hb, FILES_BINARY_CAPABILITY as Hc, voiceFileName as Hd, readReaction as Hf, HANDOFF_PAKE as Hg, extractRtcParams as Hh, PUBKY_PROOF_ROOT as Hi, CapsExchange as Hl, STALLED_EVIDENCE_MS as Hm, BitcoinAddressError as Hn, doorHubs as Ho, readAppRevocation as Hp, didWebDocumentUrl as Hr, pinFrame as Hs, communityEditFrame as Ht, verifyPeerProof as Hu, ownInviteRefusal as Hv, signTurnPacket as Hy, sha256Paced as I, readHandoffHello as I_, MAX_PAIRED_MESSAGE_FRAME as Ia, DiscoveryBudgetError as Ib, parseAppFrame as Ic, fileMessageText as Id, queueReaction as If, HANDOFF_HAVE as Ig, wrapDataChannel as Ih, sparkAddressKind as Ii, wellKnownUrl as Il, DATA_SETTLE_MS as Im, MessageRefusal as In, parseHubPolicy as Io, appSignedBytes as Ip, DidError as Ir, PIN_FRAME as Is, frameBytes as It, proofStatement as Iu, encodeGhostlyInvite as Iv, __exportAll as Ix, nextTurnPosition as Iy, communityGroupId as J, readSetUpdate as J_, UNPROVEN_AUTH_MS as Ja, openRelayPayload as Jb, SESSION_CAPABILITIES_FRAME as Jc, formatVideoDuration as Jd, groupReplyAuthor as Jf, HANDOFF_VERIFIED as Jg, RTC_CONFIG as Jh, pubkyProofFile as Ji, emptyCapsState as Jl, symmetricNat as Jm, decodeWitness as Jn, mergeLobby as Jo, verifyAppRevocation as Jp, parseDid as Jr, WAKE_CALL_INTERVAL_MS as Js, MENTION_LIMITS as Jt, verifyRingAuthorization as Ju, ENROLL_CAPABILITY as Jv, turnPayloadSequence as Jy, GROUP_READ_NOTE_COMMUNITY as K, SET_UPDATE as K_, RTC_UNSTARTED_MS as Ka, measureRecords as Kb, REACTIONS_CAPABILITY as Kc, PLAYABLE_VIDEO as Kd, REPLY_ID as Kf, HANDOFF_REQUEST as Kg, CALL_SIGNAL_MAX_AGE_MS as Kh, normalizePubkyKey as Ki, capsDescriptors as Kl, DirectPathWatch as Km, decodeBitcoinAddress as Kn, lobbyRecords as Ko, signAppObject as Kp, didWebHost as Kr, readPin as Ks, validEditText as Kt, ringEvidence as Ku, DEVICE_ECHO_FRAME as Kv, turnName as Ky, yieldThread as L, readHandoffManifest as L_, PAIRED_FRAME_TOO_LARGE as La, budgetRetryMs as Lb, readAppFrame as Lc, formatVoiceDuration as Ld, reactedFrame as Lf, HANDOFF_HELLO as Lg, DATA_CHANNEL_ID as Lh, sparkInvoiceDetails as Li, CAPS_ISSUED_BACK_MS as Ll, DataLink as Lm, bip322MessageHash as Ln, pickMeshHubs as Lo, checkAppRevokeStatement as Lp, checkDidJws as Lr, PIN_LIMITS as Ls, groupMessageId as Lt, storageProof as Lu, encodeInviteCode as Lv, __require as Lx, openTurnValue as Ly, isAppUrl as M, readHandoffData as M_, INVITER_DIAL_GRACE_MS as Ma, BREAKER_BASE_MS as Mb, appOpenFrame as Mc, VOICE_LIMITS as Md, ReactionWindow as Mf, HANDOFF_DATA as Mg, decodeControl as Mh, walletNetworkOf as Mi, recordsFromWellKnown as Ml, sealSecret as Mm, isLegacySignature as Mn, NO_HUB_POLICY as Mo, appFingerprint as Mp, DID_JWS_ALGS as Mr, COMMUNITY_PIN_FRAME as Ms, GROUP_READ_NOTE as Mt, isProofAdapter as Mu, OwnInviteError as Mv, utf8Decode as Mx, TURN_VERSION as My, pacer as N, readHandoffDone as N_, INVITE_TAKEN as Na, BREAKER_MAX_MS as Nb, chatAppId as Nc, VOICE_METER as Nd, nextReactionNumber as Nf, HANDOFF_DONE as Ng, encodeChunk as Nh, SPARK_NETWORKS as Ni, recordsName as Nl, sha256Hex as Nm, legacyMessageHash as Nn, mayBeHub as No, appRef as Np, DID_JWS_MAX_LENGTH as Nr, GROUP_PIN_FRAME as Ns, GroupSession as Nt, nostrProofTemplate as Nu, createChatInvite as Nv, utf8Encode as Nx, TurnRecordError as Ny, checkAppManifest as O, openHandoffPiece as O_, DHT_PIN_GRACE_MS as Oa, readRelayBody as Ob, AppSessions as Oc, sanitizeFileName as Od, QUICK_REACTIONS as Of, HANDOFF_BUSY as Og, LIMITS as Oh, formatPaymentAmount as Oi, nip05RootKey as Ol, newEpochSecret as Om, sshFingerprint as On, groupSignalFrame as Oo, shownTime as Op, verifyAtprotoSignature as Or, sanitizeTypingStatus as Os, mentionedMembers as Ot, STORAGE_LIFETIME as Ou, INVITE_HRP as Ov, randomBytes as Ox, TURN_SEALED_BYTES as Oy, readAppBundle as P, readHandoffFileFrame as P_, LIVENESS_MISSED_PINGS as Pa, BREAKER_THRESHOLD as Pb, isAppVersion as Pc, baseMime as Pd, parseReactedFrame as Pf, HANDOFF_FILE_MISSING as Pg, encodeControl as Ph, SPARK_PROVIDER as Pi, txtValue as Pl, ANSWER_REFUSED_REDIALS as Pm, verifyBitcoinMessage as Pn, meshHubs as Po, appRefPublisher as Pp, DID_MAX_LENGTH as Pr, PINNED_FRAME as Ps, asWritten as Pt, proofCapability as Pu, createLink as Pv, __commonJSMin as Px, encodeTurnFields as Py, communityUntaggedHash as Q, signTombstone as Q_, parsePaymentNetworks as Qa, decodeDnsAnswers as Qb, UPGRADE_CAPABILITY as Qc, EDITED_FRAME as Qd, wireReply as Qf, filePartDigest as Qg, callSignalHeardAt as Qh, homeserverWebEndpoint as Qi, IDENTITY_CHECK_UNAVAILABLE as Ql, EXPECT_PEER_MS as Qm, sha256d as Qn, readBeacon as Qo, canonicalJsonBytes as Qp, signingKeys as Qr, WAKE_INTERVAL_MS as Qs, wireMentions as Qt, automaticTransport as Qu, deviceFrameCapability as Qv, turnStatedVerifier as Qy, GROUP_TYPING_FRAME as R, readHandoffPake as R_, PAIRING_ATTEMPT_MS as Ra, heldBackError as Rb, APPS_CAPABILITY as Rc, isPlayableAudioType as Rd, reactionEmoji as Rf, HANDOFF_LATER_BYTES as Rg, DATA_CHANNEL_LABEL as Rh, sparkNetworkOf as Ri, CAPS_LABEL as Rl, GATHER_ATTEMPTS as Rm, bip322ToSign as Rn, wireHubPolicy as Ro, isAppHash as Rp, checkDidSignature as Rr, mayPin as Rs, COMMUNITY_EDIT_FRAME as Rt, storageProofBody as Ru, inviteLink as Rv, __toCommonJS as Rx, readTurnBody as Ry, APP_SCREENSHOTS_DIR as S, handoffStreamKey as S_, BLOCKED_DIAL_WAIT_MS as Sa, SLOW_MS as Sb, APP_PEER_OPEN_MAX as Sc, parseImageMeta as Sd, FORWARD_LIMITS as Sf, isValidServiceId as Sg, sanitizeRequestHeaders as Sh, SEPOLIA_TEST_USDT_FAUCET as Si, decodeDnsResponse as Sl, confirmationMatches as Sm, SSH_KEY_TYPES as Sn, SIGNALS_PER_MINUTE as So, usageLeft as Sp, parseAtprotoCar as Sr, TYPING_STATUS_MAX as Ss, GROUP_WAKE_GROUP_WINDOW_MS as St, IDENTITY_TIMELINE_MAX as Su, createDeviceInvite as Sv, trimEndOf as Sx, TURN_LABEL as Sy, appViewOf as T, handoffVersions as T_, CROSSED_WAIT_MS as Ta, WRITE_FIRST_MS as Tb, APP_RESUME_GRACE_MS as Tc, PREVIEWABLE_IMAGE as Td, readForwarded as Tf, servicesToWire as Tg, webLocalFetch as Th, WALLET_NETWORKS as Ti, domainWellKnownFile as Tl, edgeParams as Tm, parseSshPublicKey as Tn, SIGNAL_HOLD_MS as To, claimedTime as Tp, readAtprotoCid as Tr, TypingSender as Ts, GroupWakeLimiter as Tt, PROOF_ADAPTERS as Tu, encodeDeviceInvite as Tv, fromBase64 as Tx, TURN_NAME_BYTES as Ty, COMMUNITY_LIMITS as U, sealHandoffPiece as U_, RACE_RELAYED_MS as Ua, PacketTooLargeError as Ub, FILES_CAPABILITY as Uc, voiceLevel as Ud, validReactionNumber as Uf, HANDOFF_PIECE_BYTES as Ug, offerIsFresh as Uh, isPubkyKey as Ui, CapsKeys as Ul, DIRECT_EVIDENCE_MS as Um, ByteReader as Un, freshHubs as Uo, readAppRevocationShape as Up, didWebFile as Ur, pinIsNewer as Us, communityMessageAuthor as Ut, RING_LIFETIME as Uu, readInviteCode as Uv, signTurnRelease as Uy, openGroupTyping as V, readHandoffVerified as V_, RACE_ANSWERED_MS as Va, MAX_DNS_PACKET_BYTES as Vb, EDIT_CAPABILITY as Vc, voiceDownloadName as Vd, readDhtReactions as Vf, HANDOFF_OFFER as Vg, buildDataSdp as Vh, PUBKY_PROOF_MAX_BYTES as Vi, CAPS_REFRESH_MS as Vl, REANSWERS as Vm, verifyBip322 as Vn, beaconRecords as Vo, isAppSignature as Vp, didSignedMessages as Vr, parsePinnedFrame as Vs, carryMentions as Vt, verifyNostrProof as Vu, inviteQrText as Vv, signTurnBody as Vy, COMMUNITY_PROFILE as W, sortParts as W_, REDESCRIBED_GRACE_MS as Wa, RELAY_PAYLOAD_MAX_BYTES as Wb, KNOWN_SESSION_CAPABILITIES as Wc, voiceLevelsOf as Wd, wireReaction as Wf, HANDOFF_PIECE_OVERHEAD as Wg, parseRtcSignal as Wh, isPubkyProofFolder as Wi, CapsRefusedError as Wl, DIRECT_OWN_ATTEMPTS as Wm, compactSize as Wn, hubRank as Wo, readAppRevocations as Wp, didWebFileNames as Wr, pinNumberHolds as Ws, meshMessageRef as Wt, ringAuthorization as Wu, DEVICES_CAPABILITY as Wv, turnInstance as Wy, communityMessageId as X, setUpdateFrame as X_, pairedMessageFits as Xa, readOwnRelayPayload as Xb, SessionCapabilities as Xc, isVideoMime as Xd, readReply as Xf, HANDOFF_WINDOW as Xg, buildSdpFromSignal as Xh, decodeSvcbRecords as Xi, parsePacketTransports as Xl, DEPARTED_READ_MS as Xm, encodeWitness as Xn, pickHubs as Xo, verifyAppStatementBytes as Xp, parseDidJws as Xr, WAKE_CALL_WAIT_MS as Xs, mentionsMember as Xt, RELAY_URL as Xu, deviceEchoFrame as Xv, turnSequence as Xy, communityHasFrame as Y, setAckFrame as Y_, WAKE_LOST_MS as Ya, parseRelayPayload as Yb, STATUS_CARD_CAPABILITY as Yc, isPlayableVideoType as Yd, pairedReplyAuthor as Yf, HANDOFF_VERSION as Yg, answersOffer as Yh, pubkyProofPath as Yi, encodePacketTransports as Yl, AWAITING_PEER_MS as Ym, encodeTx as Yn, newerHead as Yo, verifyAppSignature as Yp, parseDidDocument as Yr, WAKE_CALL_TTL_SECONDS as Ys, mentionsBytes as Yt, verifyRingEvidence as Yu, HANDOFF_CAPABILITY as Yv, turnReleaseMessage as Yy, communityRoster as Z, setUpdateMessage as Z_, pairedMessageFrame as Za, signRelayPayload as Zb, TYPING_CAPABILITY as Zc, parseVideoMeta as Zd, replySnippet as Zf, NO_ATTEMPTS as Zg, callRtcConfig as Zh, encodeSvcbPacket as Zi, IDENTITY_CHALLENGE_WINDOW as Zl, DHT_POLL_INTERVALS as Zm, hash160 as Zn, rankHubs as Zo, canonicalJson as Zp, parseDidSignaturePaste as Zr, WAKE_FRAME as Zs, validMentions as Zt, TRANSPORTS as Zu, deviceEchoNonce as Zv, turnSignedMessage as Zy, APP_CLIENTS as _, handoffOfferFrame as __, isFederationId as _a, REQUESTS_PER_MINUTE as _b, pushRequest as _c, dhtFileId as _d, linkEnd as _f, LEGACY_SERVICES as _g, HttpHost as _h, ETHEREUM_USDT as _i, DOMAIN_MAX_RECORDS as _l, sortRoster as _m, signGroupMeta as _n, readGroupWantNo as _o, readStatusCard as _p, atprotoCidFor as _r, TYPING_KINDS as _s, knockRecords as _t, newIdentityBinding as _u, readEnrollHello as _v, MAX_NICK_LENGTH as _x, keptAtEqualSequence as _y, checkAppBeforeRun as a, handoffCancelFrame as a_, parseInvoiceCallback as aa, DEFAULT_RELAYS as ab, readWake as ac, ACTIVE_DHT_POLL_MS as ad, MAX_EDITS_PER_MESSAGE as af, pickCallCandidates as ag, OFFER_STEP_MAX as ah, DidDhtError as ai, SESSION_RECEIVE_PENDING as al, MAX_GROUP_CHAIN as am, groupMetaBody as an, PairingTracker as ao, ROUTINE_STATES as ap, ATPROTO_PROOF_COLLECTION as ar, PairedCalls as as, shortHash as at, IDENTITY_REVOCATION_LABEL as au, ENROLL_HELLO as av, publicKeyFromZ32 as ax, devicePingFrame as ay, APP_ICON_PATH as b, handoffRequestFrame as b_, ANSWERS_REFUSED_PAUSES as ba, SIGNALING_WINDOW_MS as bb, APP_DATA_MAX_BYTES as bc, imageSize as bd, previewImageSize as bf, decodeServices as bg, relativizeLocation as bh, PaymentPreflightError as bi, NIP05_PATH as bl, verifyCommitSignature as bm, SSHSIG_MAX_ARMOR as bn, GROUP_SIGNAL_FRAME as bo, statusCardText as bp, encodeDagCbor as br, TYPING_REFRESH_MS as bs, GROUP_WAKE_FRAME as bt, signIdentityPresentation as bu, DEVICE_INVITE_LIFETIME_S as bv, sanitizeNick as bx, TOMBSTONE_TURN as by, APP_STORE_LIMITS as c, handoffDataFrame as c_, requestLnurlInvoice as ca, GROUP_BURST_MS as cb, wakeFrame as cc, DHT_MESSAGE_TTL as cd, editFrame as cf, waitForIceGathering as cg, RELAY_POLL_INTERVALS as ch, didDhtFromPublicKey as ci, HOLD_LIMITS as cl, OWN_FRAME_LIMIT as cm, groupMetaPicture as cn, GROUP_VERSION_FILES as co, TASK_STATUSES as cp, atprotoProofRecord as cr, FILE_DATA_KIND as cs, verifyCommunityCommit as ct, IdentityCheckUnavailable as cu, enrollCancelReason as cv, decrypt as cx, unsignedDeviceTransports as cy, readAppListing as d, handoffEphemeral as d_, decodeBolt11 as da, GROUP_RATION_WINDOW_MS as db, PUSH_SERVICE_HOSTS as dc, DhtDelivery as dd, parseEditedFrame as df, RECORD_TTL as dg, UNUSED_INVITE_WAIT_MAX_MS as dh, encodeDidDhtDeactivated as di, isHoldUrl as dl, commitUntaggedHash as dm, nextGroupMetaRevision as dn, fetchesByItself as do, cardEditNumber as dp, isAtprotoDid as dr, decodeFileData as ds, MAX_KNOCKS as dt, emptyIdentityLedger as du, enrollGrantFrame as dv, sealedLength as dx, webCryptoSigner as dy, handoffAckFrame as e_, LIGHTNING_DESTINATION_PATTERN as ea, BACKGROUND_REQUESTS_PER_MINUTE as eb, WAKE_TTL_SECONDS as ec, irohDescriptor as ed, EDIT_BUFFER_MS as ef, decompressSdp as eg, IDLE_THRESHOLD as eh, strictBase64Url as ei, parseSessionCapabilities as el, GROUP_ADMIN_OFF_ERROR as em, MAX_GROUP_NAME_BYTES as en, ENGINE_ERRORS as eo, BUTTON_ID as ep, u32$2 as er, readLobby as es, derivedSecret as et, IDENTITY_MAX_EVIDENCE as eu, DEVICE_KINDS as ev, encodeTxtPacket as ex, deviceLinkPairing as ey, readAppStore as f, handoffFileMissingFrame as f_, findBolt11 as fa, GROUP_SIGNALING_ALLOWANCE_SHARE as fb, WebPushError as fc, LIVE_POLL_MS as fd, validEditMessage as ff, buildLinkRecords as fg, WATCH_PEER_MS as fh, encodeDidDhtPacket as fi, newMailbox as fl, expectedRoster as fm, openGroupMeta as fn, groupFileFallback as fo, cardLine as fp, normalizeAtprotoHandle as fr, encodeFileData as fs, decodeGroupEntryLink as ft, identityPresentationBytes as fu, enrollHelloFrame as fv, tryDecrypt as fx, TURN_PUT_WINDOW_MS as fy, APP_BUNDLE_MAGIC as g, handoffManifestFrames as g_, findEndpoint as ga, RELAY_REQUESTS_PER_MINUTE as gb, generateVapidKeys as gc, dhtFileElements as gd, canonicalUrl as gf, HTTP_SERVICE_PROTO as gg, HttpClient as gh, signDidDhtPacket as gi, DOMAIN_FILE_MAX_BYTES as gl, signCommit as gm, parseGroupMetaTag as gn, readGroupWant as go, checkStatusCard as gp, AtprotoProofError as gr, TYPING_FRAME as gs, knockIdentity as gt, isIdentityBinding as gu, readEnrollGrant as gv, sanitizeAvatar as gx, classifyTurnRead as gy, APP_BUNDLE_LIMITS as h, handoffHelloFrame as h_, fedimintRequestPayload as ha, PREVIOUS_DEFAULT_RELAYS as hb, encryptPushPayload as hc, DHT_FILE_CAPABILITY as hd, LINK_PREVIEW_LIMITS as hf, parseLinkRecords as hg, GhostlyHttpError as hh, resolveDidDht as hi, DNS_TYPE as hl, rosterHas as hm, parseGroupMetaStatement as hn, readGroupHave as ho, cardUrl as hp, AtprotoCid as hr, transferStalled as hs, groupEntryUrl as ht, identityStatementText as hu, formatEnrollDigits as hv, jpegSize$1 as hx, TURN_VISIBLE_MS as hy, appUpdateDecision as i, handoffBusyFrame as i_, invoiceCallbackUrl as ia, CHAT_RESERVE_PER_CHAT as ib, parseWakeFrame as ic, transportOrder as id, EDIT_SEND_LIMIT as if, parseCallSignal as ig, OFFER_LOOK_MS as ih, DID_DHT_VERSION as ii, SESSION_FRAME_MAX as il, LEGACY_GROUP_MEMBERS as im, groupDisplayName as in, parseEngineError as io, PR_STATES as ip, ATPROTO_FULL_SCOPE as ir, PAIRED_CALL_FRAME as is, rosterHash as it, IDENTITY_PROVIDER_ID as iu, ENROLL_GRANT as iv, identityFromSeedB64 as ix, deviceLinkSecret as iy, isAppPath as j, readHandoffCancel as j_, HANDLED_WAIT_MS as ja, BREAKER_ALL_DOWN_PROBE_MS as jb, appDataFrame as jc, RECORDING_TYPES as jd, REACTION_LIMITS as jf, HANDOFF_CANCEL_REASONS as jg, decodeChunk as jh, validatePaymentTarget as ji, recordsFromTxt as jl, sealPair as jm, verifySshSignature as jn, MESH_HUBS as jo, APP_STATEMENT_LIMITS as jp, DID_GHOSTLY_SERVICE as jr, typingKindOf as js, GROUP_REACTED_FRAME as jt, importedProof as ju, INVITE_VERSION as jv, toZ32 as jx, TURN_TTL as jy, findAppForbiddenKey as k, readHandoffAck as k_, EARLY_DIAL_JOIN_MS as ka, setLinkTraceSink as kb, appCloseFrame as kc, sanitizeMime as kd, REACTED_FRAME as kf, HANDOFF_BUSY_REASONS as kg, MAX_CHUNK_PAYLOAD_BYTES as kh, isWalletNetwork as ki, normalizeDomain as kl, openPair as km, sshKeyDigestHex as kn, readGroupSignal as ko, APP_NAME as kp, DID_DOCUMENT_MAX_BYTES as kr, typingActivity as ks, parseGroupWakeFrame as kt, STORAGE_ROOT as ku, INVITE_LINK_ORIGIN as kv, toBase64 as kx, TURN_SIGNED_BYTES as ky, checkAppListing as l, handoffDigest as l_, resolveLightningDestination as la, GROUP_BURST_ONE_LINK as lb, wakePayload as lc, DHT_TEXT_BYTES as ld, editedFrame as lf, LABEL$1 as lg, STALLED_LOOK_MS as lh, didDhtKey as li, HoldKeys as ll, SAID_AGAIN as lm, groupMetaTag as ln, GROUP_WANT_FRAME as lo, appCardId as lp, atprotoProofRkey as lr, FILE_FRAMES as ls, GROUP_ENTRY_PROFILE as lt, IdentityExchange as lu, enrollDigits as lv, encrypt as lx, verifyDeviceTransports as ly, signAppStore as m, handoffHaveFrames as m_, cashuRequestPayload as ma, HEDGE_MS as mb, decryptPushPayload as mc, peekDhtMailbox as md, LINK_MAX_CHARS as mf, isEmptyLinkPacket as mg, unusedInviteWait as mh, openDidDhtPayload as mi, DNS_LABEL as ml, rosterAdmin as mm, parseGroupMetaFrame as mn, readGroupFileMeta as mo, cardTimeUtc as mp, shortAtprotoDid as mr, transferEnded as ms, entryParams as mt, identityStatement as mu, enrollProofFrame as mv, MAX_AVATAR_SIDE as mx, TURN_SETTLE_MS as my, appRevocationFor as n, handoffAttemptFailed as n_, fetchLnurlJson as na, CHAT_RESERVE as nb, deviceWakeRequest as nc, rankTransports as nd, EDIT_RATE_WINDOW_MS as nf, heardCallSignal as ng, MAX_DHT_TEXT_BYTES as nh, DID_DHT_PREFIX as ni, PAIRED_PROFILE as nl, GROUP_MEMBER_CAP as nm, MAX_GROUP_PICTURE_LENGTH as nn, engineError as no, ITEM_STATES as np, varBytes as nr, validHead as ns, leaveStatement as nt, IDENTITY_MAX_VALIDITY as nu, ENROLL_CANCEL_REASONS as nv, createIdentity as nx, deviceLinkRendezvousSeed as ny, planAppUpdate as o, handoffContext as o_, parseLightningDestination as oa, DEPARTED_READS as ob, readWakePayload as oc, DHT_FILE_REFUSED as od, RateWindow as of, sdpHasCandidates as og, PRESENCE_HEARTBEAT as oh, decodeDidDhtPacket as oi, HOLD_CAPABILITY as ol, MAX_GROUP_MEMBERS as om, groupMetaChange as on, GROUP_FILE_LIMITS as oo, RUN_RESULTS as op, ATPROTO_PROOF_SCOPE as or, parsePairedCallFrame as os, signCommunity as ot, IDENTITY_STATEMENT_PREFIX as ou, ENROLL_PROOF as ov, sign as ox, newDeviceSetSecret as oy, readAppStoreSteps as p, handoffFileRequestFrame as p_, ENDPOINT as pa, HEDGE_MISSING_MS as pb, checkPushEndpoint as pc, emptyDhtDeliveryState as pd, validEditNumber as pf, emptyLinkRecords as pg, presenceSeenAt as ph, jwkThumbprint as pi, readManifest as pl, rememberAlone as pm, parseGroupMetaBody as pn, isGroupMessageId as po, cardLinkHost as pp, parseAtprotoDidDocument as pr, refusalText as ps, encodeGroupEntryLink as pt, identityRevocationValue as pu, enrollMessage as pv, MAX_AVATAR_LENGTH as px, TURN_RAISE_READ_TIMEOUT_MS as py, communityCommitHash as q, encodeSetSlots as q_, SWITCH_RETIRE_MS as qa, newerPacket as qb, SERVICES_CAPABILITY as qc, VIDEO_LIMITS as qd, REPLY_LIMITS as qf, HANDOFF_TIMINGS as qg, PAIRED_CALL_CANDIDATES as qh, pubkyProofCapability as qi, dialDescriptors as ql, directBlocked as qm, decodeTx as qn, mergeBeacon as qo, signAppRevocation as qp, normalizeDid as qr, DEVICE_WAKE_TTL_SECONDS as qs, MENTION_EVERYONE as qt, validRingKey as qu, DEVICE_PING_FRAME as qv, turnPacket as qy, appStoreDecision as r, handoffAttemptSucceeded as r_, findLightningDestination as ra, CHAT_RESERVE_MOST_SHARE as rb, newWakeToken as rc, relayedTransports as rd, EDIT_RECEIVE_LIMIT as rf, isGlobalIpv4Host as rg, OFFER_FAST_MS as rh, DID_DHT_TTL as ri, PairedSession as rl, GROUP_VERSION_LARGE as rm, encodeGroupMetaBody as rn, engineText as ro, PR_CHECKS as rp, ATPROTO_DECLARED_SCOPE as rr, MAX_PAIRED_CALL_SIGNAL as rs, leftStatement as rt, IDENTITY_PROOF_CAPABILITY as ru, ENROLL_DONE as rv, identityFromSeed as rx, deviceLinkSealKey as ry, APP_STORE_KINDS as s, handoffContextProof as s_, parsePayParams as sa, FRESH_READ_MS as sb, relayRequest as sc, DHT_FILE_TOO_LARGE as sd, dhtEditId as sf, signalHasVideo as sg, PRESENCE_WINDOW as sh, didDhtDocument as si, HOLD_DATED_BACK_MS as sl, MEMBER_KEY as sm, groupMetaNewer as sn, GROUP_HAVE_FRAME as so, STATUS_CARD_LIMITS as sp, atprotoDidMethod as sr, ChatFiles as ss, verifyCommunityChain as st, IDENTITY_SUBJECT as su, enrollCancelFrame as sv, verify as sx, signDeviceTransports as sy, addedAppPermissions as t, handoffAttemptAllowed as t_, LNURL_LIMITS as ta, BACKGROUND_WHILE_SIGNALING as tb, WakeLimiter as tc, irohRelayUrl as td, EDIT_FRAME as tf, extractParamsFromSdp as tg, LinkSession as th, DID_DHT_MAX_PAYLOAD as ti, sessionCapabilitiesFrame as tl, GROUP_ID as tm, MAX_GROUP_NAME_LENGTH as tn, EngineError as to, BUTTON_STYLES as tp, u64 as tr, shouldBeHub as ts, encodeCommunityLink as tt, IDENTITY_MAX_FRAME as tu, ENROLL_CANCEL as tv, readDnsName as tx, deviceLinkParams as ty, checkAppStoreIndex as u, handoffDoneFrame as u_, BOLT11_PATTERN as ua, GROUP_OVER_PACE_MS as ub, wakeRequest as uc, DHT_TEXT_REFUSED as ud, parseEditFrame as uf, MAX_MSGS_PAYLOAD_B64 as ug, TRANSPORTS_GONE_MS as uh, didDhtRecords as ui, HoldRefusedError as ul, commitHash as um, groupName as un, GROUP_WANT_NO_FRAME as uo, buttonLabelClash as up, checkAtprotoProofRecord as ur, FILE_LIMITS as us, KNOCK_TTL_MS as ut, boundVerifiedIdentity as uu, enrollDoneFrame as uv, generateEncryptionKey as ux, seedSigner as uy, APP_CLIENT_NAME as v, handoffPakeFrame as v_, parseCashuRequestPayload as va, RelayTransport as vb, vapidAuthorization as vc, readDhtFile as vd, linksIn as vf, MAX_SERVICES as vg, formatLocalTarget as vh, EVM_TEST_CHAINS as vi, DOMAIN_METHODS as vl, verifyChain as vm, verifyGroupMetaSignature as vn, CARRIED_DEFER_MS as vo, sameButtonText as vp, decodeAtprotoCommit as vr, TYPING_RATE_LIMIT as vs, mergeKnocks as vt, receivedIdentityStatus as vu, verifyEnrollProof as vv, hasVisible as vx, turnPutSummary as vy, appDigest as w, handoffVerifiedMessage as w_, CROSSED_PROBE_MS as wa, WATCH_SHARE as wb, APP_RATE_WINDOW_MS as wc, FileTransfers as wd, forwardedMany as wf, servicesFromWire as wg, viewerResponseHeaders as wh, USDT_PUBLIC_RPC as wi, domainTxtRecord as wl, decryptText as wm, SshSigError as wn, SIGNAL_FRESH_MS as wo, arrivalKey as wp, parseAtprotoVerificationKey as wr, TypingReceiver as ws, GROUP_WAKE_RECEIVE_LIMIT as wt, lastSharedWithMe as wu, deviceInviteJoinerParams as wv, concatBytes as wx, TURN_MAX as wy, APP_PERMISSIONS as x, handoffRetryAfter as x_, ANSWERS_REFUSED_PAUSE_MS as xa, SLOW_DEMOTE_MS as xb, APP_FRAME as xc, isImageMime as xd, sanitizePreviewImage as xf, encodeServices as xg, resolveTargetUrl as xh, SEPOLIA_TEST_USDT as xi, WELL_KNOWN_PATH as xl, GROUP_PROFILE as xm, SSHSIG_NAMESPACE as xn, GROUP_VERSION_SIGNALS as xo, taskProgress as xp, findInMst as xr, TYPING_SEND_LIMIT as xs, GROUP_WAKE_GROUP_LIMIT as xt, verifyIdentityPresentation as xu, DEVICE_INVITE_OWN_DEVICE as xv, stripHidden as xx, TURN_BODY_BYTES as xy, APP_FORBIDDEN_KEYS as y, handoffReleaseFrame as y_, parseFedimintRequestPayload as ya, SIGNALING_ALLOWANCE_SHARE as yb, vapidKeysMatch as yc, IMAGE_LIMITS as yd, parseLinkPreview as yf, SERVICES_VERSION as yg, parseLocalTarget as yh, ONCHAIN_PROVIDER as yi, DOMAIN_TXT_MAX_BYTES as yl, verifyCommit as ym, wrapGroupMeta as yn, CarriedTransport as yo, statusCardBytes as yp, decodeDagCbor as yr, TYPING_RATE_WINDOW_MS as ys, readKnocks as yt, revokesIdentity as yu, DEVICE_INVITE_BYTES as yv, sanitizeDisplayText as yx, TOMBSTONE_SEQUENCE as yy, GroupTypingBoard as z, readHandoffRelease as z_, PAIRING_RETRY_MS as za, isDiscoveryBudgetError as zb, BUTTONS_CAPABILITY as zc, parseVoiceMeta as zd, reactionFrame as zf, HANDOFF_LIST_PER_FRAME as zg, RTC_SIGNAL_FUTURE_MS as zh, BITCOIN_NETWORKS as zi, CAPS_LIMITS as zl, GATHER_STALL_MS as zm, bip322ToSpend as zn, COMMUNITY_TOPOLOGY as zo, isAppKey as zp, didGhostlyServiceEntry as zr, nextPinNumber as zs, GROUP_EDIT_FRAME as zt, storageProofPath as zu, inviteOwnership as zv, readTurnPacket as zy };
|
|
32312
|
+
export { decodeCommunityLink as $, SET_ACK as $_, parsePaymentNetworks as $a, createRelayPayload as $b, UPGRADE_CAPABILITY as $c, isImageMime as $d, groupReplyAuthor as $f, HANDOFF_RELEASE as $g, PAIRED_CALL_CANDIDATES as $h, homeserverWebEndpoint as $i, IDENTITY_CHECK_UNAVAILABLE as $l, directBlocked as $m, txHash as $n, readBeacon as $o, verifyAppRevocation as $p, staticDidDocument as $r, WAKE_INTERVAL_MS as $s, MAX_GROUP_META_BODY as $t, verifyRingEvidence as $u, DEVICE_CAPABILITIES as $v, turnKeys as $y, isAppLicense as A, handoffStreamKey as A_, EARLY_DIAL_JOIN_MS as Aa, SLOW_MS as Ab, appCloseFrame as Ac, RECORDING_TYPES as Ad, readForwarded as Af, serviceIdFromName as Ag, viewerResponseHeaders as Ah, isWalletNetwork as Ai, normalizeDomain as Al, decryptText as Am, sshSignCommand as An, readGroupSignal as Ao, claimedTime as Ap, DID_FILE_MAX_BYTES as Ar, typingActivity as As, GROUP_LIMITS as At, PROOF_CAPABILITY as Au, createDeviceInvite as Av, stripHidden as Ax, TURN_LABEL as Ay, groupTypingEpoch as B, readHandoffData as B_, PAIRING_RETRY_MS as Ba, BREAKER_BASE_MS as Bb, BUTTONS_CAPABILITY as Bc, voiceDownloadName as Bd, parseReactionFrame as Bf, HANDOFF_DATA as Bg, encodeControl as Bh, BITCOIN_NETWORKS as Bi, CAPS_LIMITS as Bl, ANSWER_REFUSED_REDIALS as Bm, decodeBase64 as Bn, COMMUNITY_TOPOLOGY as Bo, appRevocationId as Bp, didJwsAlg as Br, nextPinNumber as Bs, GROUP_EDIT_TEXT_BYTES as Bt, proofStatement as Bu, OwnInviteError as Bv, toBase64Url as Bx, TURN_VERSION as By, APP_VIEWS as C, handoffHelloFrame as C_, BLOCKED_DIAL_WAIT_MS as Ca, PREVIOUS_DEFAULT_RELAYS as Cb, APP_PEER_OPEN_MAX as Cc, FileTransfers as Cd, linksIn as Cf, LEGACY_SERVICES as Cg, HttpHost as Ch, TEST_USDT_FAUCET_AMOUNT as Ci, decodeDnsResponse as Cl, sortRoster as Cm, SSH_PUBLIC_KEY_MAX as Cn, SIGNALS_PER_MINUTE as Co, sameButtonText as Cp, parseAtprotoDidKey as Cr, TYPING_STATUS_MAX as Cs, GROUP_WAKE_MEMBER_INTERVAL_MS as Ct, revokesIdentity as Cu, formatEnrollDigits as Cv, MAX_AVATAR_SIDE as Cx, TURN_VISIBLE_MS as Cy, buildAppBundle as D, handoffReleaseFrame as D_, DEMOTE_AFTER_FAILURES as Da, SIGNALING_ALLOWANCE_SHARE as Db, APP_SEND_LIMIT as Dc, sanitizeFileName as Dd, FORWARD_LIMITS as Df, encodeServices as Dg, resolveTargetUrl as Dh, assertTokenUnits as Di, encodeDnsQuery as Dl, GROUP_PROFILE as Dm, sameSshKey as Dn, SIGNAL_PROVEN_MS as Do, usageLeft as Dp, verifyAtprotoRecordProof as Dr, parseTypingActivity as Ds, groupWakes as Dt, applyIdentityEvent as Du, DEVICE_INVITE_BYTES as Dv, hasVisible as Dx, TOMBSTONE_SEQUENCE as Dy, assembleAppBundle as E, handoffPakeFrame as E_, CROSSED_WAIT_MS as Ea, RelayTransport as Eb, APP_RESUME_GRACE_MS as Ec, safeBlobType as Ed, sanitizePreviewImage as Ef, decodeServices as Eg, relativizeLocation as Eh, arkAddressPrefix as Ei, domainWellKnownFile as El, verifyCommitSignature as Em, parseSshSignature as En, SIGNAL_HOLD_MS as Eo, taskProgress as Ep, unsignedCommitBytes as Er, TypingSender as Es, groupWakeFrame as Et, IDENTITY_TIMELINE_MAX as Eu, verifyEnrollProof as Ev, MAX_NICK_LENGTH as Ex, turnPutSummary as Ey, readAppBundleAsync as F, newHandoffId as F_, LIVENESS_MISSED_PINGS as Fa, normalizeRelayUrl as Fb, isAppVersion as Fc, fileMessageText as Fd, REACTION_FRAME as Ff, HANDOFF_ATTEMPTS as Fg, MAX_CHUNK_PAYLOAD_BYTES as Fh, SPARK_PROVIDER as Fi, txtValue as Fl, openPair as Fm, BIP322_REVISION as Fn, meshHubs as Fo, APP_PREFIXES as Fp, DID_METHODS as Fr, PINNED_FRAME as Fs, chainPieces as Ft, importedProof as Fu, DEVICE_INVITE_VERSION as Fv, fromBase64Url as Fx, TURN_REV_LIMIT as Fy, CommunitySession as G, readHandoffManifest as G_, REDESCRIBED_GRACE_MS as Ga, budgetRetryMs as Gb, KNOWN_SESSION_CAPABILITIES as Gc, PLAYABLE_VIDEO as Gd, reactionIsNewer as Gf, HANDOFF_HELLO as Gg, RTC_SIGNAL_FUTURE_MS as Gh, isPubkyProofFolder as Gi, CapsRefusedError as Gl, GATHER_STALL_MS as Gm, decodeAnyBitcoinAddress as Gn, hubRank as Go, isAppRef as Gp, didWebFileUrl as Gr, pinNumberHolds as Gs, parseCommunityEdit as Gt, verifyNostrProof as Gu, encodeInviteCode as Gv, __esmMin as Gx, openTurnValue as Gy, sealGroupTyping as H, readHandoffFileFrame as H_, RACE_ANSWERED_MS as Ha, BREAKER_THRESHOLD as Hb, EDIT_CAPABILITY as Hc, voiceLevel as Hd, reactedFrame as Hf, HANDOFF_FILE_MISSING as Hg, wrapDataChannel as Hh, PUBKY_PROOF_MAX_BYTES as Hi, CAPS_REFRESH_MS as Hl, DATA_SETTLE_MS as Hm, BitcoinAddressError as Hn, beaconRecords as Ho, checkAppRevokeStatement as Hp, didWebDocumentUrl as Hr, parsePinnedFrame as Hs, communityEditFrame as Ht, storageProofBody as Hu, createLink as Hv, utf8Decode as Hx, encodeTurnFields as Hy, sha256Paced as I, openHandoffPiece as I_, LIVENESS_PING_MS as Ia, readRelayBody as Ib, isChatAppId as Ic, formatVoiceDuration as Id, REACTION_LIMITS as If, HANDOFF_BUSY as Ig, PROTOCOL_VERSION as Ih, isSparkAddress as Ii, validDomainRecord as Il, openSecret as Im, MessageRefusal as In, meshRendezvous as Io, APP_STATEMENT_LIMITS as Ip, DidError as Ir, PIN_CLOCK_SKEW_MS as Is, frameBytes as It, isProofAdapter as Iu, INVITE_HRP as Iv, fromZ32 as Ix, TURN_SEALED_BYTES as Iy, communityGroupId as J, readHandoffTurnFrame as J_, SWITCH_RETIRE_MS as Ja, withRequestOptions as Jb, SERVICES_CAPABILITY as Jc, isPlayableVideoType as Jd, validReactionNumber as Jf, HANDOFF_MANIFEST as Jg, extractRtcParams as Jh, pubkyProofCapability as Ji, dialDescriptors as Jl, STALLED_EVIDENCE_MS as Jm, decodeWitness as Jn, mergeBeacon as Jo, readAppRevocationShape as Jp, parseDid as Jr, DEVICE_WAKE_TTL_SECONDS as Js, MENTION_LIMITS as Jt, ringAuthorization as Ju, inviteQrSegments as Jv, __toCommonJS as Jx, sealTurnBody as Jy, GROUP_READ_NOTE_COMMUNITY as K, readHandoffPake as K_, RESUME_WAIT_MS as Ka, heldBackError as Kb, PIN_CAPABILITY as Kc, VIDEO_LIMITS as Kd, readDhtReactions as Kf, HANDOFF_LATER_BYTES as Kg, RTC_SIGNAL_MAX_AGE_MS as Kh, newPubkyProofFolder as Ki, DHT_TEXT_CAPABILITY as Kl, OFFER_HOST_GATHER_MS as Km, decodeBitcoinAddress as Kn, lobbyKeys as Ko, isAppSignature as Kp, didWebHost as Kr, pinnedFrame as Ks, validEditText as Kt, verifyPeerProof as Ku, inviteLink as Kv, __exportAll as Kx, readTurnBody as Ky, yieldThread as L, readHandoffAck as L_, MAX_PAIRED_MESSAGE_FRAME as La, setLinkTraceSink as Lb, parseAppFrame as Lc, isPlayableAudioType as Ld, ReactionWindow as Lf, HANDOFF_BUSY_REASONS as Lg, decodeChunk as Lh, sparkAddressKind as Li, wellKnownUrl as Ll, sealPair as Lm, bip322MessageHash as Ln, parseHubPolicy as Lo, appFingerprint as Lp, checkDidJws as Lr, PIN_FRAME as Ls, groupMessageId as Lt, nostrProofTemplate as Lu, INVITE_LINK_ORIGIN as Lv, isZ32Key as Lx, TURN_SIGNED_BYTES as Ly, isAppUrl as M, handoffVerifiedMessage as M_, HANDLED_WAIT_MS as Ma, WATCH_SHARE as Mb, appDataFrame as Mc, VOICE_METER as Md, GROUP_REACTION_FRAME as Mf, servicesToWire as Mg, CHUNK_FLAG_END as Mh, validatePaymentTarget as Mi, recordsFromTxt as Ml, encryptText as Mm, isLegacySignature as Mn, MESH_HUBS as Mo, receivedTimestamp as Mp, DID_JWS_ALGS as Mr, typingKindOf as Ms, GROUP_READ_NOTE as Mt, STORAGE_LIFETIME as Mu, deviceInviteJoinerParams as Mv, bytesEqual as Mx, TURN_MAX as My, pacer as N, handoffVersions as N_, INVITER_DIAL_GRACE_MS as Na, WRITE_FIRST_MS as Nb, appOpenFrame as Nc, baseMime as Nd, QUICK_REACTIONS as Nf, viewerTag as Ng, CHUNK_KIND as Nh, walletNetworkOf as Ni, recordsFromWellKnown as Nl, epochKeys as Nm, legacyMessageHash as Nn, NO_HUB_POLICY as No, shownTime as Np, DID_JWS_MAX_LENGTH as Nr, COMMUNITY_PIN_FRAME as Ns, GroupSession as Nt, STORAGE_ROOT as Nu, encodeDeviceInvite as Nv, concatBytes as Nx, TURN_NAME_BYTES as Ny, checkAppManifest as O, handoffRequestFrame as O_, DEMOTE_MS as Oa, SIGNALING_WINDOW_MS as Ob, APP_VERSION_MAX as Oc, sanitizeMime as Od, forwardedAgain as Of, isValidServiceId as Og, sanitizeRequestHeaders as Oh, assertWholeSats as Oi, isPublicAddress as Ol, confirmationMatches as Om, sshFingerprint as On, SIGNAL_REPLY_MS as Oo, MESSAGE_CLOCK_SKEW_MS as Op, verifyAtprotoSignature as Or, parseTypingFrame as Os, mentionedMembers as Ot, lastSharedWithMe as Ou, DEVICE_INVITE_LIFETIME_S as Ov, sanitizeDisplayText as Ox, TOMBSTONE_TURN as Oy, readAppBundle as P, isHandoffPartName as P_, INVITE_TAKEN as Pa, currentRelays as Pb, chatAppId as Pc, downsamplePeaks as Pd, REACTED_FRAME as Pf, HANDOFF_ACK as Pg, LIMITS as Ph, SPARK_NETWORKS as Pi, recordsName as Pl, newEpochSecret as Pm, verifyBitcoinMessage as Pn, mayBeHub as Po, APP_NAME as Pp, DID_MAX_LENGTH as Pr, GROUP_PIN_FRAME as Ps, asWritten as Pt, emptyProofLedger as Pu, readDeviceInvite as Pv, fromBase64 as Px, TURN_NO_ACTIVE as Py, communityUntaggedHash as Q, sortParts as Q_, pairedMessageFrame as Qa, RELAY_PAYLOAD_MAX_BYTES as Qb, TYPING_CAPABILITY as Qc, imageSize as Qd, REPLY_LIMITS as Qf, HANDOFF_PIECE_OVERHEAD as Qg, CALL_SIGNAL_MAX_AGE_MS as Qh, encodeSvcbPacket as Qi, IDENTITY_CHALLENGE_WINDOW as Ql, DirectPathWatch as Qm, sha256d as Qn, rankHubs as Qo, signAppRevocation as Qp, signingKeys as Qr, WAKE_FRAME as Qs, wireMentions as Qt, verifyRingAuthorization as Qu, DEVICES_CAPABILITY as Qv, turnInstance as Qy, GROUP_TYPING_FRAME as R, readHandoffBusy as R_, PAIRED_FRAME_TOO_LARGE as Ra, traceLink as Rb, readAppFrame as Rc, parseVoiceMeta as Rd, nextReactionNumber as Rf, HANDOFF_CANCEL as Rg, decodeControl as Rh, sparkInvoiceDetails as Ri, CAPS_ISSUED_BACK_MS as Rl, sealSecret as Rm, bip322ToSign as Rn, pickMeshHubs as Ro, appRef as Rp, checkDidSignature as Rr, PIN_LIMITS as Rs, COMMUNITY_EDIT_FRAME as Rt, proofCapability as Ru, INVITE_MAX_LENGTH as Rv, randomBytes as Rx, TURN_SLOTS as Ry, APP_SCREENSHOTS_DIR as S, handoffHaveFrames as S_, ANSWERS_REFUSED_PAUSE_MS as Sa, HEDGE_MS as Sb, APP_FRAME as Sc, readDhtFile as Sd, linkEnd as Sf, HTTP_SERVICE_PROTO as Sg, HttpClient as Sh, SEPOLIA_TEST_USDT_FAUCET as Si, WELL_KNOWN_PATH as Sl, signCommit as Sm, SSH_KEY_TYPES as Sn, GROUP_VERSION_SIGNALS as So, readStatusCard as Sp, parseAtprotoCar as Sr, TYPING_SEND_LIMIT as Ss, GROUP_WAKE_GROUP_WINDOW_MS as St, receivedIdentityStatus as Su, enrollProofFrame as Sv, MAX_AVATAR_LENGTH as Sx, TURN_SETTLE_MS as Sy, appViewOf as T, handoffOfferFrame as T_, CROSSED_PROBE_MS as Ta, REQUESTS_PER_MINUTE as Tb, APP_RATE_WINDOW_MS as Tc, formatFileSize as Td, previewImageSize as Tf, SERVICES_VERSION as Tg, parseLocalTarget as Th, WALLET_NETWORKS as Ti, domainTxtRecord as Tl, verifyCommit as Tm, parseSshPublicKey as Tn, SIGNAL_FRESH_MS as To, statusCardText as Tp, readAtprotoCid as Tr, TypingReceiver as Ts, GroupWakeLimiter as Tt, verifyIdentityPresentation as Tu, readEnrollHello as Tv, sanitizeAvatar as Tx, keptAtEqualSequence as Ty, COMMUNITY_LIMITS as U, readHandoffHave as U_, RACE_DIRECT_MS as Ua, RelayBreaker as Ub, FILES_BINARY_CAPABILITY as Uc, voiceLevelsOf as Ud, reactionEmoji as Uf, HANDOFF_FILE_REQUEST as Ug, DATA_CHANNEL_ID as Uh, PUBKY_PROOF_ROOT as Ui, CapsExchange as Ul, DataLink as Um, ByteReader as Un, doorHubs as Uo, isAppHash as Up, didWebFile as Ur, pinFrame as Us, communityMessageAuthor as Ut, storageProofPath as Uu, decodeInviteCode as Uv, utf8Encode as Ux, firstDeviceSetSecret as Uy, openGroupTyping as V, readHandoffDone as V_, PONG_WAIT_MS as Va, BREAKER_MAX_MS as Vb, CALLS_CAPABILITY as Vc, voiceFileName as Vd, queueReaction as Vf, HANDOFF_DONE as Vg, sendBody as Vh, isBitcoinAddress as Vi, CAPS_PUBLISH_SPACING_MS as Vl, CONNECT_TIMEOUT_MS as Vm, verifyBip322 as Vn, beaconKeys as Vo, appSignedBytes as Vp, didSignedMessages as Vr, parsePinFrame as Vs, carryMentions as Vt, storageProof as Vu, createChatInvite as Vv, toZ32 as Vx, TurnRecordError as Vy, COMMUNITY_PROFILE as W, readHandoffHello as W_, RACE_RELAYED_MS as Wa, DiscoveryBudgetError as Wb, FILES_CAPABILITY as Wc, voicePeaksOf as Wd, reactionFrame as Wf, HANDOFF_HAVE as Wg, DATA_CHANNEL_LABEL as Wh, isPubkyKey as Wi, CapsKeys as Wl, GATHER_ATTEMPTS as Wm, compactSize as Wn, freshHubs as Wo, isAppKey as Wp, didWebFileNames as Wr, pinIsNewer as Ws, meshMessageRef as Wt, validExternalKey as Wu, encodeGhostlyInvite as Wv, __commonJSMin as Wx, nextTurnPosition as Wy, communityMessageId as X, sameDigest as X_, WAKE_LOST_MS as Xa, PKARR_FUTURE_SKEW_MS as Xb, STATUS_CARD_CAPABILITY as Xc, parseVideoMeta as Xd, PAIRED_REPLY_AUTHORS as Xf, HANDOFF_PAKE as Xg, parseRtcSignal as Xh, pubkyProofPath as Xi, encodePacketTransports as Xl, DIRECT_OWN_ATTEMPTS as Xm, encodeWitness as Xn, newerHead as Xo, readAppSignature as Xp, parseDidJws as Xr, WAKE_CALL_TTL_SECONDS as Xs, mentionsMember as Xt, ringEvidence as Xu, ownInviteRefusal as Xv, signTurnPacket as Xy, communityHasFrame as Y, readHandoffVerified as Y_, UNPROVEN_AUTH_MS as Ya, MAX_DNS_PACKET_BYTES as Yb, SESSION_CAPABILITIES_FRAME as Yc, isVideoMime as Yd, wireReaction as Yf, HANDOFF_OFFER as Yg, offerIsFresh as Yh, pubkyProofFile as Yi, emptyCapsState as Yl, DIRECT_EVIDENCE_MS as Ym, encodeTx as Yn, mergeLobby as Yo, readAppRevocations as Yp, parseDidDocument as Yr, WAKE_CALL_INTERVAL_MS as Ys, mentionsBytes as Yt, ringClaims as Yu, inviteQrText as Yv, signTurnBody as Yy, communityRoster as Z, sealHandoffPiece as Z_, pairedMessageFits as Za, PacketTooLargeError as Zb, SessionCapabilities as Zc, IMAGE_LIMITS as Zd, REPLY_ID as Zf, HANDOFF_PIECE_BYTES as Zg, CALL_SIGNAL_FUTURE_MS as Zh, decodeSvcbRecords as Zi, parsePacketTransports as Zl, DIRECT_PEERS as Zm, hash160 as Zn, pickHubs as Zo, signAppObject as Zp, parseDidSignaturePaste as Zr, WAKE_CALL_WAIT_MS as Zs, validMentions as Zt, validRingKey as Zu, readInviteCode as Zv, signTurnRelease as Zy, APP_CLIENTS as _, handoffDigest as __, findEndpoint as _a, GROUP_BURST_ONE_LINK as _b, generateVapidKeys as _c, emptyDhtDeliveryState as _d, validEditMessage as _f, RECORD_TTL as _g, UNUSED_INVITE_WAIT_MAX_MS as _h, ETHEREUM_USDT as _i, DOMAIN_FILE_MAX_BYTES as _l, expectedRoster as _m, signGroupMeta as _n, readGroupWant as _o, cardLine as _p, atprotoCidFor as _r, TYPING_FRAME as _s, knockRecords as _t, identityRevocationValue as _u, enrollDigits as _v, decrypt as _x, verifyDeviceTransports as _y, checkAppBeforeRun as a, NO_ATTEMPTS as a_, invoiceCallbackUrl as aa, turnSignedMessage as ab, parseWakeFrame as ac, irohRelayUrl as ad, EDIT_BUFFER_MS as af, compressSdp as ag, FIRST_PUBLISH_MAX_MS as ah, DidDhtError as ai, SESSION_FRAME_MAX as al, GROUP_ADMIN_OFF_ERROR as am, groupMetaBody as an, parseEngineError as ao, BUTTON_ID as ap, ATPROTO_PROOF_COLLECTION as ar, PAIRED_CALL_FRAME as as, shortHash as at, IDENTITY_MAX_RECEIVED as au, setUpdateMessage as av, signRelayPayload as ax, deviceEchoNonce as ay, APP_ICON_PATH as b, handoffFileMissingFrame as b_, parseFedimintRequestPayload as ba, GROUP_SIGNALING_ALLOWANCE_SHARE as bb, vapidKeysMatch as bc, dhtFileElements as bd, LINK_PREVIEW_LIMITS as bf, isEmptyLinkPacket as bg, unusedInviteWait as bh, PaymentPreflightError as bi, DOMAIN_TXT_MAX_BYTES as bl, rosterAdmin as bm, SSHSIG_MAX_ARMOR as bn, CarriedTransport as bo, cardUrl as bp, encodeDagCbor as br, TYPING_RATE_WINDOW_MS as bs, GROUP_WAKE_FRAME as bt, isIdentityBinding as bu, enrollHelloFrame as bv, sealedLength as bx, TURN_PUT_WINDOW_MS as by, APP_STORE_LIMITS as c, handoffAckFrame as c_, parsePayParams as ca, BACKGROUND_REQUESTS_PER_MINUTE as cb, relayRequest as cc, transportOrder as cd, EDIT_RECEIVE_LIMIT as cf, heardCallSignal as cg, MAX_DHT_TEXT_BYTES as ch, didDhtFromPublicKey as ci, HOLD_DATED_BACK_MS as cl, GROUP_VERSION_LARGE as cm, groupMetaPicture as cn, GROUP_HAVE_FRAME as co, PR_CHECKS as cp, atprotoProofRecord as cr, ChatFiles as cs, verifyCommunityCommit as ct, IDENTITY_PROVIDER_ID as cu, DEVICE_KINDS as cv, encodeTxtPacket as cx, deviceLinkPairing as cy, readAppListing as d, handoffAttemptSucceeded as d_, BOLT11_PATTERN as da, CHAT_RESERVE_MOST_SHARE as db, wakeRequest as dc, DHT_FILE_TOO_LARGE as dd, RateWindow as df, pickCallCandidates as dg, OFFER_STEP_MAX as dh, encodeDidDhtDeactivated as di, HoldRefusedError as dl, MAX_GROUP_MEMBERS as dm, nextGroupMetaRevision as dn, GROUP_WANT_NO_FRAME as do, RUN_RESULTS as dp, isAtprotoDid as dr, FILE_LIMITS as ds, MAX_KNOCKS as dt, IDENTITY_SUBJECT as du, ENROLL_DONE as dv, createIdentity as dx, deviceLinkSealKey as dy, HANDOFF_REQUEST as e_, pubkyHomeserverOf as ea, turnName as eb, WAKE_SUBJECT as ec, RELAY_URL as ed, parseImageMeta as ef, RTC_CONFIG as eg, symmetricNat as eh, strictBase64Url as ei, WAKE_SESSION_CAPABILITY as el, verifyAppSignature as em, MAX_GROUP_NAME_BYTES as en, publishFailure as eo, pairedReplyAuthor as ep, u32$2 as er, readBeaconHead as es, derivedSecret as et, IDENTITY_CLOCK_SKEW as eu, SET_UPDATE as ev, measureRecords as ex, DEVICE_ECHO_FRAME as ey, readAppStore as f, handoffBusyFrame as f_, decodeBolt11 as fa, CHAT_RESERVE_PER_CHAT as fb, PUSH_SERVICE_HOSTS as fc, DHT_MESSAGE_TTL as fd, dhtEditId as ff, sdpHasCandidates as fg, PRESENCE_HEARTBEAT as fh, encodeDidDhtPacket as fi, isHoldUrl as fl, MEMBER_KEY as fm, openGroupMeta as fn, fetchesByItself as fo, STATUS_CARD_LIMITS as fp, normalizeAtprotoHandle as fr, decodeFileData as fs, decodeGroupEntryLink as ft, IdentityCheckUnavailable as fu, ENROLL_GRANT as fv, identityFromSeed as fx, deviceLinkSecret as fy, APP_BUNDLE_MAGIC as g, handoffDataFrame as g_, fedimintRequestPayload as ga, GROUP_BURST_MS as gb, encryptPushPayload as gc, LIVE_POLL_MS as gd, parseEditedFrame as gf, MAX_MSGS_PAYLOAD_B64 as gg, TRANSPORTS_GONE_MS as gh, signDidDhtPacket as gi, DNS_TYPE as gl, commitUntaggedHash as gm, parseGroupMetaTag as gn, readGroupHave as go, cardEditNumber as gp, AtprotoProofError as gr, transferStalled as gs, knockIdentity as gt, identityPresentationBytes as gu, enrollCancelReason as gv, verify as gx, unsignedDeviceTransports as gy, APP_BUNDLE_LIMITS as h, handoffContextProof as h_, cashuRequestPayload as ha, FRESH_READ_MS as hb, decryptPushPayload as hc, DhtDelivery as hd, parseEditFrame as hf, LABEL$1 as hg, STALLED_LOOK_MS as hh, resolveDidDht as hi, DNS_LABEL as hl, commitHash as hm, parseGroupMetaStatement as hn, readGroupFileMeta as ho, buttonLabelClash as hp, AtprotoCid as hr, transferEnded as hs, groupEntryUrl as ht, emptyIdentityLedger as hu, enrollCancelFrame as hv, sign as hx, signDeviceTransports as hy, appUpdateDecision as i, HANDOFF_WINDOW as i_, findLightningDestination as ia, turnSequence as ib, newWakeToken as ic, irohDescriptor as id, EDIT_BUFFER_MAX as if, callSignalHeardAt as ig, EXPECT_PEER_MS as ih, DID_DHT_VERSION as ii, PairedSession as il, readCanonicalJson as im, groupDisplayName as in, engineText as io, ACTIVE_TASK_STATUSES as ip, ATPROTO_FULL_SCOPE as ir, MAX_PAIRED_CALL_SIGNAL as is, rosterHash as it, IDENTITY_MAX_FRAME as iu, setUpdateFrame as iv, readOwnRelayPayload as ix, deviceEchoFrame as iy, isAppPath as j, handoffVerifiedFrame as j_, GhostLink as ja, TURN_SOURCE_TIMEOUT_MS as jb, appDataBytes as jc, VOICE_LIMITS as jd, COMMUNITY_REACTION_FRAME as jf, servicesFromWire as jg, webLocalFetch as jh, parsePaymentAmount as ji, parseDomainTxt as jl, edgeParams as jm, verifySshSignature as jn, GROUP_VERSION_HUBS as jo, heardTime as jp, DID_GHOSTLY_SERVICE as jr, typingFrame as js, GROUP_REACTED_FRAME as jt, PeerProofs as ju, deviceInviteJoinerKeyZ32 as jv, trimEndOf as jx, TURN_LAST_SEQUENCE as jy, findAppForbiddenKey as k, handoffRetryAfter as k_, DHT_PIN_GRACE_MS as ka, SLOW_DEMOTE_MS as kb, AppSessions as kc, PLAYABLE_AUDIO as kd, forwardedMany as kf, isViewerTag as kg, sanitizeResponseHeaders as kh, formatPaymentAmount as ki, nip05RootKey as kl, confirmationTag as km, sshKeyDigestHex as kn, groupSignalFrame as ko, arrivalKey as kp, DID_DOCUMENT_MAX_BYTES as kr, sanitizeTypingStatus as ks, parseGroupWakeFrame as kt, PROOF_ADAPTERS as ku, DEVICE_INVITE_OWN_DEVICE as kv, sanitizeNick as kx, TURN_BODY_BYTES as ky, checkAppListing as l, handoffAttemptAllowed as l_, requestLnurlInvoice as la, BACKGROUND_WHILE_SIGNALING as lb, wakeFrame as lc, ACTIVE_DHT_POLL_MS as ld, EDIT_SEND_LIMIT as lf, isGlobalIpv4Host as lg, OFFER_FAST_MS as lh, didDhtKey as li, HOLD_LIMITS as ll, LEGACY_GROUP_MEMBERS as lm, groupMetaTag as ln, GROUP_VERSION_FILES as lo, PR_STATES as lp, atprotoProofRkey as lr, FILE_DATA_KIND as ls, GROUP_ENTRY_PROFILE as lt, IDENTITY_REVOCATION_LABEL as lu, ENROLL_CANCEL as lv, readDnsName as lx, deviceLinkParams as ly, signAppStore as m, handoffContext as m_, ENDPOINT as ma, DEPARTED_READS as mb, checkPushEndpoint as mc, DHT_TEXT_REFUSED as md, editedFrame as mf, waitForIceGathering as mg, RELAY_POLL_INTERVALS as mh, openDidDhtPayload as mi, readManifest as ml, SAID_AGAIN as mm, parseGroupMetaFrame as mn, isGroupMessageId as mo, appCardId as mp, shortAtprotoDid as mr, refusalText as ms, entryParams as mt, boundVerifiedIdentity as mu, ENROLL_PROOF as mv, publicKeyFromZ32 as mx, newDeviceSetSecret as my, appRevocationFor as n, HANDOFF_VERIFIED as n_, LNURL_LIMITS as na, turnPayloadSequence as nb, WakeLimiter as nc, automaticTransport as nd, readImageMeta as nf, buildSdpFromSignal as ng, DEPARTED_READ_MS as nh, DID_DHT_PREFIX as ni, sessionCapabilitiesFrame as nl, canonicalJson as nm, MAX_GROUP_PICTURE_LENGTH as nn, EngineError as no, replySnippet as np, varBytes as nr, shouldBeHub as ns, leaveStatement as nt, IDENTITY_FRAME_WINDOW_MS as nu, readSetUpdate as nv, openRelayPayload as nx, ENROLL_CAPABILITY as ny, planAppUpdate as o, filePartDigest as o_, parseInvoiceCallback as oa, turnStatedVerifier as ob, readWake as oc, rankTransports as od, EDIT_FRAME as of, decompressSdp as og, IDLE_THRESHOLD as oh, decodeDidDhtPacket as oi, SESSION_RECEIVE_PENDING as ol, GROUP_ID as om, groupMetaChange as on, PairingTracker as oo, BUTTON_STYLES as op, ATPROTO_PROOF_SCOPE as or, PairedCalls as os, signCommunity as ot, IDENTITY_MAX_VALIDITY as ou, signTombstone as ov, decodeDnsAnswers as ox, deviceFrameCapability as oy, readAppStoreSteps as p, handoffCancelFrame as p_, findBolt11 as pa, DEFAULT_RELAYS as pb, WebPushError as pc, DHT_TEXT_BYTES as pd, editFrame as pf, signalHasVideo as pg, PRESENCE_WINDOW as ph, jwkThumbprint as pi, newMailbox as pl, OWN_FRAME_LIMIT as pm, parseGroupMetaBody as pn, groupFileFallback as po, TASK_STATUSES as pp, parseAtprotoDidDocument as pr, encodeFileData as ps, encodeGroupEntryLink as pt, IdentityExchange as pu, ENROLL_HELLO as pv, identityFromSeedB64 as px, devicePingFrame as py, communityCommitHash as q, readHandoffRelease as q_, RTC_UNSTARTED_MS as qa, isDiscoveryBudgetError as qb, REACTIONS_CAPABILITY as qc, formatVideoDuration as qd, readReaction as qf, HANDOFF_LIST_PER_FRAME as qg, buildDataSdp as qh, normalizePubkyKey as qi, capsDescriptors as ql, REANSWERS as qm, decodeTx as qn, lobbyRecords as qo, readAppRevocation as qp, normalizeDid as qr, readPin as qs, MENTION_EVERYONE as qt, RING_LIFETIME as qu, inviteOwnership as qv, __require as qx, readTurnPacket as qy, appStoreDecision as r, HANDOFF_VERSION as r_, fetchLnurlJson as ra, turnReleaseMessage as rb, deviceWakeRequest as rc, checkedDescriptors as rd, EDITED_FRAME as rf, callRtcConfig as rg, DHT_POLL_INTERVALS as rh, DID_DHT_TTL as ri, PAIRED_PROFILE as rl, canonicalJsonBytes as rm, encodeGroupMetaBody as rn, engineError as ro, wireReply as rp, ATPROTO_DECLARED_SCOPE as rr, validHead as rs, leftStatement as rt, IDENTITY_MAX_EVIDENCE as ru, setAckFrame as rv, parseRelayPayload as rx, HANDOFF_CAPABILITY as ry, APP_STORE_KINDS as s, filePartName as s_, parseLightningDestination as sa, turnVerifierMark as sb, readWakePayload as sc, relayedTransports as sd, EDIT_RATE_WINDOW_MS as sf, extractParamsFromSdp as sg, LinkSession as sh, didDhtDocument as si, HOLD_CAPABILITY as sl, GROUP_MEMBER_CAP as sm, groupMetaNewer as sn, GROUP_FILE_LIMITS as so, ITEM_STATES as sp, atprotoDidMethod as sr, parsePairedCallFrame as ss, verifyCommunityChain as st, IDENTITY_PROOF_CAPABILITY as su, verifySetUpdate as sv, decodeTxtPacket as sx, deviceKeyZ32 as sy, addedAppPermissions as t, HANDOFF_TIMINGS as t_, LIGHTNING_DESTINATION_PATTERN as ta, turnPacket as tb, WAKE_TTL_SECONDS as tc, TRANSPORTS as td, previewable as tf, answersOffer as tg, AWAITING_PEER_MS as th, DID_DHT_MAX_PAYLOAD as ti, parseSessionCapabilities as tl, verifyAppStatementBytes as tm, MAX_GROUP_NAME_LENGTH as tn, ENGINE_ERRORS as to, readReply as tp, u64 as tr, readLobby as ts, encodeCommunityLink as tt, IDENTITY_FRAME_LIMIT as tu, encodeSetSlots as tv, newerPacket as tx, DEVICE_PING_FRAME as ty, checkAppStoreIndex as u, handoffAttemptFailed as u_, resolveLightningDestination as ua, CHAT_RESERVE as ub, wakePayload as uc, DHT_FILE_REFUSED as ud, MAX_EDITS_PER_MESSAGE as uf, parseCallSignal as ug, OFFER_LOOK_MS as uh, didDhtRecords as ui, HoldKeys as ul, MAX_GROUP_CHAIN as um, groupName as un, GROUP_WANT_FRAME as uo, ROUTINE_STATES as up, checkAtprotoProofRecord as ur, FILE_FRAMES as us, KNOCK_TTL_MS as ut, IDENTITY_STATEMENT_PREFIX as uu, ENROLL_CANCEL_REASONS as uv, IDENTITY_MEMO_SIZE as ux, deviceLinkRendezvousSeed as uy, APP_CLIENT_NAME as v, handoffDoneFrame as v_, isFederationId as va, GROUP_OVER_PACE_MS as vb, pushRequest as vc, peekDhtMailbox as vd, validEditNumber as vf, buildLinkRecords as vg, WATCH_PEER_MS as vh, EVM_TEST_CHAINS as vi, DOMAIN_MAX_RECORDS as vl, parseGroupCommit as vm, verifyGroupMetaSignature as vn, readGroupWantNo as vo, cardLinkHost as vp, decodeAtprotoCommit as vr, TYPING_KINDS as vs, mergeKnocks as vt, identityStatement as vu, enrollDoneFrame as vv, encrypt as vx, seedSigner as vy, appDigest as w, handoffManifestFrames as w_, CROSSED_FRESH_MS as wa, RELAY_REQUESTS_PER_MINUTE as wb, APP_RATE_LIMIT as wc, PREVIEWABLE_IMAGE as wd, parseLinkPreview as wf, MAX_SERVICES as wg, formatLocalTarget as wh, USDT_PUBLIC_RPC as wi, dnsProofName as wl, verifyChain as wm, SshSigError as wn, SIGNAL_CARRIERS as wo, statusCardBytes as wp, parseAtprotoVerificationKey as wr, TYPING_TIMEOUT_MS as ws, GROUP_WAKE_RECEIVE_LIMIT as wt, signIdentityPresentation as wu, readEnrollGrant as wv, jpegSize$1 as wx, classifyTurnRead as wy, APP_PERMISSIONS as x, handoffFileRequestFrame as x_, ANSWERS_REFUSED_PAUSES as xa, HEDGE_MISSING_MS as xb, APP_DATA_MAX_BYTES as xc, dhtFileId as xd, canonicalUrl as xf, parseLinkRecords as xg, GhostlyHttpError as xh, SEPOLIA_TEST_USDT as xi, NIP05_PATH as xl, rosterHas as xm, SSHSIG_NAMESPACE as xn, GROUP_SIGNAL_FRAME as xo, checkStatusCard as xp, findInMst as xr, TYPING_REFRESH_MS as xs, GROUP_WAKE_GROUP_LIMIT as xt, newIdentityBinding as xu, enrollMessage as xv, tryDecrypt as xx, TURN_RAISE_READ_TIMEOUT_MS as xy, APP_FORBIDDEN_KEYS as y, handoffEphemeral as y_, parseCashuRequestPayload as ya, GROUP_RATION_WINDOW_MS as yb, vapidAuthorization as yc, DHT_FILE_CAPABILITY as yd, LINK_MAX_CHARS as yf, emptyLinkRecords as yg, presenceSeenAt as yh, ONCHAIN_PROVIDER as yi, DOMAIN_METHODS as yl, rememberAlone as ym, wrapGroupMeta as yn, CARRIED_DEFER_MS as yo, cardTimeUtc as yp, decodeDagCbor as yr, TYPING_RATE_LIMIT as ys, readKnocks as yt, identityStatementText as yu, enrollGrantFrame as yv, generateEncryptionKey as yx, webCryptoSigner as yy, GroupTypingBoard as z, readHandoffCancel as z_, PAIRING_ATTEMPT_MS as za, BREAKER_ALL_DOWN_PROBE_MS as zb, APPS_CAPABILITY as zc, recordingMime as zd, parseReactedFrame as zf, HANDOFF_CANCEL_REASONS as zg, encodeChunk as zh, sparkNetworkOf as zi, CAPS_LABEL as zl, sha256Hex as zm, bip322ToSpend as zn, wireHubPolicy as zo, appRefPublisher as zp, didGhostlyServiceEntry as zr, mayPin as zs, GROUP_EDIT_FRAME as zt, proofHash as zu, INVITE_VERSION as zv, toBase64 as zx, TURN_TTL as zy };
|
|
32065
32313
|
|
|
32066
|
-
//# sourceMappingURL=src-
|
|
32314
|
+
//# sourceMappingURL=src-DhOMxijH.js.map
|