@ocap/mpc-hsm 1.33.6 → 1.33.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/esm/bip39-english-wordlist.d.mts +11 -0
  2. package/esm/bip39-english-wordlist.mjs +31 -0
  3. package/esm/constants.d.mts +66 -2
  4. package/esm/constants.mjs +65 -1
  5. package/esm/dkg.mjs +2 -2
  6. package/esm/index.d.mts +11 -3
  7. package/esm/index.mjs +11 -3
  8. package/esm/ocap-clear-signing.d.mts +125 -0
  9. package/esm/ocap-clear-signing.mjs +1170 -0
  10. package/esm/offline-ceremony.d.mts +127 -0
  11. package/esm/offline-ceremony.mjs +481 -0
  12. package/esm/ot.d.mts +7 -1
  13. package/esm/ot.mjs +149 -16
  14. package/esm/personal-vault.d.mts +1292 -0
  15. package/esm/personal-vault.mjs +3615 -0
  16. package/esm/personal.d.mts +10 -0
  17. package/esm/personal.mjs +11 -0
  18. package/esm/presign.mjs +1 -1
  19. package/esm/rlp-eip1559.d.mts +75 -0
  20. package/esm/rlp-eip1559.mjs +293 -0
  21. package/esm/secp256k1-scalar.d.mts +1 -1
  22. package/esm/secp256k1-scalar.mjs +14 -5
  23. package/esm/steel-mnemonic.d.mts +55 -0
  24. package/esm/steel-mnemonic.mjs +247 -0
  25. package/esm/ves-backup.d.mts +296 -0
  26. package/esm/ves-backup.mjs +1025 -0
  27. package/esm/x402-agent-guard.d.mts +111 -0
  28. package/esm/x402-agent-guard.mjs +780 -0
  29. package/lib/bip39-english-wordlist.cjs +33 -0
  30. package/lib/bip39-english-wordlist.d.cts +11 -0
  31. package/lib/constants.cjs +128 -0
  32. package/lib/constants.d.cts +66 -2
  33. package/lib/dkg.cjs +2 -2
  34. package/lib/index.cjs +249 -0
  35. package/lib/index.d.cts +11 -3
  36. package/lib/ocap-clear-signing.cjs +1176 -0
  37. package/lib/ocap-clear-signing.d.cts +125 -0
  38. package/lib/offline-ceremony.cjs +487 -0
  39. package/lib/offline-ceremony.d.cts +127 -0
  40. package/lib/ot.cjs +150 -15
  41. package/lib/ot.d.cts +7 -1
  42. package/lib/personal-vault.cjs +3725 -0
  43. package/lib/personal-vault.d.cts +1292 -0
  44. package/lib/personal.cjs +338 -0
  45. package/lib/personal.d.cts +10 -0
  46. package/lib/presign.cjs +1 -1
  47. package/lib/rlp-eip1559.cjs +303 -0
  48. package/lib/rlp-eip1559.d.cts +75 -0
  49. package/lib/secp256k1-scalar.cjs +14 -5
  50. package/lib/steel-mnemonic.cjs +253 -0
  51. package/lib/steel-mnemonic.d.cts +55 -0
  52. package/lib/ves-backup.cjs +1053 -0
  53. package/lib/ves-backup.d.cts +296 -0
  54. package/lib/x402-agent-guard.cjs +788 -0
  55. package/lib/x402-agent-guard.d.cts +111 -0
  56. package/package.json +6 -1
@@ -0,0 +1,11 @@
1
+ //#region src/bip39-english-wordlist.d.ts
2
+ /**
3
+ * Canonical 2048-word English BIP-39 wordlist (`bip-0039/english.txt`).
4
+ * Verified at module load against the official reference SHA-256 digest:
5
+ * `sha256(words.join('\n') + '\n') === 2f5eed53a4727b4bf8880d8f3f199efc90e58503646d9ff8eff3a2ed3b24dbda`.
6
+ */
7
+ declare const CANONICAL_BIP39_ENGLISH_SHA256_HEX: "2f5eed53a4727b4bf8880d8f3f199efc90e58503646d9ff8eff3a2ed3b24dbda";
8
+ declare const BIP39_ENGLISH_WORDLIST: ReadonlyArray<string>;
9
+ declare const BIP39_ENGLISH_WORD_TO_INDEX: ReadonlyMap<string, number>;
10
+ //#endregion
11
+ export { BIP39_ENGLISH_WORDLIST, BIP39_ENGLISH_WORD_TO_INDEX, CANONICAL_BIP39_ENGLISH_SHA256_HEX };
@@ -0,0 +1,31 @@
1
+ import { MpcProtocolError } from "./constants.mjs";
2
+ import { utf8Bytes } from "./secp256k1-scalar.mjs";
3
+ import { sha256 } from "@noble/hashes/sha2.js";
4
+ import { bytesToHex } from "@noble/hashes/utils.js";
5
+
6
+ //#region src/bip39-english-wordlist.ts
7
+ /**
8
+ * Canonical 2048-word English BIP-39 wordlist (`bip-0039/english.txt`).
9
+ * Verified at module load against the official reference SHA-256 digest:
10
+ * `sha256(words.join('\n') + '\n') === 2f5eed53a4727b4bf8880d8f3f199efc90e58503646d9ff8eff3a2ed3b24dbda`.
11
+ */
12
+ const CANONICAL_BIP39_ENGLISH_SHA256_HEX = "2f5eed53a4727b4bf8880d8f3f199efc90e58503646d9ff8eff3a2ed3b24dbda";
13
+ const RAW_BIP39_ENGLISH_WORDS = "abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt add addict address adjust admit adult advance advice aerobic affair afford afraid again age agent agree ahead aim air airport aisle alarm album alcohol alert alien all alley allow almost alone alpha already also alter always amateur amazing among amount amused analyst anchor ancient anger angle angry animal ankle announce annual another answer antenna antique anxiety any apart apology appear apple approve april arch arctic area arena argue arm armed armor army around arrange arrest arrive arrow art artefact artist artwork ask aspect assault asset assist assume asthma athlete atom attack attend attitude attract auction audit august aunt author auto autumn average avocado avoid awake aware away awesome awful awkward axis baby bachelor bacon badge bag balance balcony ball bamboo banana banner bar barely bargain barrel base basic basket battle beach bean beauty because become beef before begin behave behind believe below belt bench benefit best betray better between beyond bicycle bid bike bind biology bird birth bitter black blade blame blanket blast bleak bless blind blood blossom blouse blue blur blush board boat body boil bomb bone bonus book boost border boring borrow boss bottom bounce box boy bracket brain brand brass brave bread breeze brick bridge brief bright bring brisk broccoli broken bronze broom brother brown brush bubble buddy budget buffalo build bulb bulk bullet bundle bunker burden burger burst bus business busy butter buyer buzz cabbage cabin cable cactus cage cake call calm camera camp can canal cancel candy cannon canoe canvas canyon capable capital captain car carbon card cargo carpet carry cart case cash casino castle casual cat catalog catch category cattle caught cause caution cave ceiling celery cement census century cereal certain chair chalk champion change chaos chapter charge chase chat cheap check cheese chef cherry chest chicken chief child chimney choice choose chronic chuckle chunk churn cigar cinnamon circle citizen city civil claim clap clarify claw clay clean clerk clever click client cliff climb clinic clip clock clog close cloth cloud clown club clump cluster clutch coach coast coconut code coffee coil coin collect color column combine come comfort comic common company concert conduct confirm congress connect consider control convince cook cool copper copy coral core corn correct cost cotton couch country couple course cousin cover coyote crack cradle craft cram crane crash crater crawl crazy cream credit creek crew cricket crime crisp critic crop cross crouch crowd crucial cruel cruise crumble crunch crush cry crystal cube culture cup cupboard curious current curtain curve cushion custom cute cycle dad damage damp dance danger daring dash daughter dawn day deal debate debris decade december decide decline decorate decrease deer defense define defy degree delay deliver demand demise denial dentist deny depart depend deposit depth deputy derive describe desert design desk despair destroy detail detect develop device devote diagram dial diamond diary dice diesel diet differ digital dignity dilemma dinner dinosaur direct dirt disagree discover disease dish dismiss disorder display distance divert divide divorce dizzy doctor document dog doll dolphin domain donate donkey donor door dose double dove draft dragon drama drastic draw dream dress drift drill drink drip drive drop drum dry duck dumb dune during dust dutch duty dwarf dynamic eager eagle early earn earth easily east easy echo ecology economy edge edit educate effort egg eight either elbow elder electric elegant element elephant elevator elite else embark embody embrace emerge emotion employ empower empty enable enact end endless endorse enemy energy enforce engage engine enhance enjoy enlist enough enrich enroll ensure enter entire entry envelope episode equal equip era erase erode erosion error erupt escape essay essence estate eternal ethics evidence evil evoke evolve exact example excess exchange excite exclude excuse execute exercise exhaust exhibit exile exist exit exotic expand expect expire explain expose express extend extra eye eyebrow fabric face faculty fade faint faith fall false fame family famous fan fancy fantasy farm fashion fat fatal father fatigue fault favorite feature february federal fee feed feel female fence festival fetch fever few fiber fiction field figure file film filter final find fine finger finish fire firm first fiscal fish fit fitness fix flag flame flash flat flavor flee flight flip float flock floor flower fluid flush fly foam focus fog foil fold follow food foot force forest forget fork fortune forum forward fossil foster found fox fragile frame frequent fresh friend fringe frog front frost frown frozen fruit fuel fun funny furnace fury future gadget gain galaxy gallery game gap garage garbage garden garlic garment gas gasp gate gather gauge gaze general genius genre gentle genuine gesture ghost giant gift giggle ginger giraffe girl give glad glance glare glass glide glimpse globe gloom glory glove glow glue goat goddess gold good goose gorilla gospel gossip govern gown grab grace grain grant grape grass gravity great green grid grief grit grocery group grow grunt guard guess guide guilt guitar gun gym habit hair half hammer hamster hand happy harbor hard harsh harvest hat have hawk hazard head health heart heavy hedgehog height hello helmet help hen hero hidden high hill hint hip hire history hobby hockey hold hole holiday hollow home honey hood hope horn horror horse hospital host hotel hour hover hub huge human humble humor hundred hungry hunt hurdle hurry hurt husband hybrid ice icon idea identify idle ignore ill illegal illness image imitate immense immune impact impose improve impulse inch include income increase index indicate indoor industry infant inflict inform inhale inherit initial inject injury inmate inner innocent input inquiry insane insect inside inspire install intact interest into invest invite involve iron island isolate issue item ivory jacket jaguar jar jazz jealous jeans jelly jewel job join joke journey joy judge juice jump jungle junior junk just kangaroo keen keep ketchup key kick kid kidney kind kingdom kiss kit kitchen kite kitten kiwi knee knife knock know lab label labor ladder lady lake lamp language laptop large later latin laugh laundry lava law lawn lawsuit layer lazy leader leaf learn leave lecture left leg legal legend leisure lemon lend length lens leopard lesson letter level liar liberty library license life lift light like limb limit link lion liquid list little live lizard load loan lobster local lock logic lonely long loop lottery loud lounge love loyal lucky luggage lumber lunar lunch luxury lyrics machine mad magic magnet maid mail main major make mammal man manage mandate mango mansion manual maple marble march margin marine market marriage mask mass master match material math matrix matter maximum maze meadow mean measure meat mechanic medal media melody melt member memory mention menu mercy merge merit merry mesh message metal method middle midnight milk million mimic mind minimum minor minute miracle mirror misery miss mistake mix mixed mixture mobile model modify mom moment monitor monkey monster month moon moral more morning mosquito mother motion motor mountain mouse move movie much muffin mule multiply muscle museum mushroom music must mutual myself mystery myth naive name napkin narrow nasty nation nature near neck need negative neglect neither nephew nerve nest net network neutral never news next nice night noble noise nominee noodle normal north nose notable note nothing notice novel now nuclear number nurse nut oak obey object oblige obscure observe obtain obvious occur ocean october odor off offer office often oil okay old olive olympic omit once one onion online only open opera opinion oppose option orange orbit orchard order ordinary organ orient original orphan ostrich other outdoor outer output outside oval oven over own owner oxygen oyster ozone pact paddle page pair palace palm panda panel panic panther paper parade parent park parrot party pass patch path patient patrol pattern pause pave payment peace peanut pear peasant pelican pen penalty pencil people pepper perfect permit person pet phone photo phrase physical piano picnic picture piece pig pigeon pill pilot pink pioneer pipe pistol pitch pizza place planet plastic plate play please pledge pluck plug plunge poem poet point polar pole police pond pony pool popular portion position possible post potato pottery poverty powder power practice praise predict prefer prepare present pretty prevent price pride primary print priority prison private prize problem process produce profit program project promote proof property prosper protect proud provide public pudding pull pulp pulse pumpkin punch pupil puppy purchase purity purpose purse push put puzzle pyramid quality quantum quarter question quick quit quiz quote rabbit raccoon race rack radar radio rail rain raise rally ramp ranch random range rapid rare rate rather raven raw razor ready real reason rebel rebuild recall receive recipe record recycle reduce reflect reform refuse region regret regular reject relax release relief rely remain remember remind remove render renew rent reopen repair repeat replace report require rescue resemble resist resource response result retire retreat return reunion reveal review reward rhythm rib ribbon rice rich ride ridge rifle right rigid ring riot ripple risk ritual rival river road roast robot robust rocket romance roof rookie room rose rotate rough round route royal rubber rude rug rule run runway rural sad saddle sadness safe sail salad salmon salon salt salute same sample sand satisfy satoshi sauce sausage save say scale scan scare scatter scene scheme school science scissors scorpion scout scrap screen script scrub sea search season seat second secret section security seed seek segment select sell seminar senior sense sentence series service session settle setup seven shadow shaft shallow share shed shell sheriff shield shift shine ship shiver shock shoe shoot shop short shoulder shove shrimp shrug shuffle shy sibling sick side siege sight sign silent silk silly silver similar simple since sing siren sister situate six size skate sketch ski skill skin skirt skull slab slam sleep slender slice slide slight slim slogan slot slow slush small smart smile smoke smooth snack snake snap sniff snow soap soccer social sock soda soft solar soldier solid solution solve someone song soon sorry sort soul sound soup source south space spare spatial spawn speak special speed spell spend sphere spice spider spike spin spirit split spoil sponsor spoon sport spot spray spread spring spy square squeeze squirrel stable stadium staff stage stairs stamp stand start state stay steak steel stem step stereo stick still sting stock stomach stone stool story stove strategy street strike strong struggle student stuff stumble style subject submit subway success such sudden suffer sugar suggest suit summer sun sunny sunset super supply supreme sure surface surge surprise surround survey suspect sustain swallow swamp swap swarm swear sweet swift swim swing switch sword symbol symptom syrup system table tackle tag tail talent talk tank tape target task taste tattoo taxi teach team tell ten tenant tennis tent term test text thank that theme then theory there they thing this thought three thrive throw thumb thunder ticket tide tiger tilt timber time tiny tip tired tissue title toast tobacco today toddler toe together toilet token tomato tomorrow tone tongue tonight tool tooth top topic topple torch tornado tortoise toss total tourist toward tower town toy track trade traffic tragic train transfer trap trash travel tray treat tree trend trial tribe trick trigger trim trip trophy trouble truck true truly trumpet trust truth try tube tuition tumble tuna tunnel turkey turn turtle twelve twenty twice twin twist two type typical ugly umbrella unable unaware uncle uncover under undo unfair unfold unhappy uniform unique unit universe unknown unlock until unusual unveil update upgrade uphold upon upper upset urban urge usage use used useful useless usual utility vacant vacuum vague valid valley valve van vanish vapor various vast vault vehicle velvet vendor venture venue verb verify version very vessel veteran viable vibrant vicious victory video view village vintage violin virtual virus visa visit visual vital vivid vocal voice void volcano volume vote voyage wage wagon wait walk wall walnut want warfare warm warrior wash wasp waste water wave way wealth weapon wear weasel weather web wedding weekend weird welcome west wet whale what wheat wheel when where whip whisper wide width wife wild will win window wine wing wink winner winter wire wisdom wise wish witness wolf woman wonder wood wool word work world worry worth wrap wreck wrestle wrist write wrong yard year yellow you young youth zebra zero zone zoo";
14
+ function initVerifiedBip39EnglishWordlist() {
15
+ const words = RAW_BIP39_ENGLISH_WORDS.split(" ");
16
+ if (words.length !== 2048) throw new MpcProtocolError("BIP39_INVALID_MNEMONIC", `Corrupted embedded BIP-39 English wordlist length: expected 2048, got ${words.length}`);
17
+ const digestHex = bytesToHex(sha256(utf8Bytes(`${words.join("\n")}\n`)));
18
+ if (digestHex !== CANONICAL_BIP39_ENGLISH_SHA256_HEX) throw new MpcProtocolError("BIP39_INVALID_MNEMONIC", `Embedded BIP-39 English wordlist SHA-256 mismatch: expected ${CANONICAL_BIP39_ENGLISH_SHA256_HEX}, got ${digestHex}`);
19
+ const wordToIndex = /* @__PURE__ */ new Map();
20
+ for (let i = 0; i < words.length; i++) wordToIndex.set(words[i], i);
21
+ return {
22
+ words,
23
+ wordToIndex
24
+ };
25
+ }
26
+ const VERIFIED_BIP39 = initVerifiedBip39EnglishWordlist();
27
+ const BIP39_ENGLISH_WORDLIST = VERIFIED_BIP39.words;
28
+ const BIP39_ENGLISH_WORD_TO_INDEX = VERIFIED_BIP39.wordToIndex;
29
+
30
+ //#endregion
31
+ export { BIP39_ENGLISH_WORDLIST, BIP39_ENGLISH_WORD_TO_INDEX, CANONICAL_BIP39_ENGLISH_SHA256_HEX };
@@ -30,6 +30,23 @@ declare const MAX_RULE_YAML_BYTES: 16384;
30
30
  declare const MAX_RULE_DAG_NODES: 128;
31
31
  declare const MAX_ON_DEMAND_SILENCE_SECONDS: 604800;
32
32
  declare const ESCAPE_DRILL_MAX_AGE_SECONDS: 2592000;
33
+ declare const HSM_SEALED_BLOB_BYTES: 4096;
34
+ declare const CLOUD_SYNC_SEALED_BLOB_BYTES: 4140;
35
+ declare const BLIND_SLOT_RECORD_BYTES: 48;
36
+ declare const MAX_PERSONAL_TX_DATA_BYTES: 4096;
37
+ declare const MAX_TRAVEL_SESSION_TTL_SECONDS: 900;
38
+ declare const PERSONAL_PRESIG_TTL_SECONDS: 90;
39
+ declare const MAX_PERSONAL_CALL_DEPTH: 1;
40
+ declare const MAX_PERSONAL_HTTP_BODY_BYTES: 131072;
41
+ declare const MAX_PERSONAL_JSON_DEPTH: 16;
42
+ declare const MAX_BLIND_RECORDS: 262144;
43
+ declare const MAX_ACTIVE_PRESIGN_SESSIONS: 1024;
44
+ declare const MAX_PERSONAL_OCAP_TX_BYTES: 16384;
45
+ declare const MAX_PERSONAL_OCAP_CBOR_DEPTH: 64;
46
+ declare const MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS: 86400;
47
+ declare const MAX_PERSONAL_JWT_UNSIGNED_BYTES: 8192;
48
+ declare const MAX_PERSONAL_JWT_TTL_SECONDS: 3600;
49
+ declare const MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS: 300;
33
50
  declare const SECP256K1_P = 115792089237316195423570985008687907853269984665640564039457584007908834671663n;
34
51
  declare const SECP256K1_N = 115792089237316195423570985008687907852837564279074904382605163141518161494337n;
35
52
  declare const SECP256K1_HALF_N = 57896044618658097711785492504343953926418782139537452191302581570759080747168n;
@@ -64,13 +81,60 @@ declare const DST_PRESIG_ZETA_V1: "ARC-MPC-PRESIG-ZETA-V1";
64
81
  declare const DST_PRESIG_PI_LIN_K_V1: "ARC-MPC-PRESIG-PI-LIN-K-V1";
65
82
  declare const DST_PRESIG_PI_POK_Z_V1: "ARC-MPC-PRESIG-PI-POK-Z-V1";
66
83
  declare const DST_PRESIG_RERAND_V1: "ARC-MPC-PRESIG-RERAND-V1";
84
+ declare const DST_VES_BIT_OR_V1: "ARC-MPC-VES-BIT-OR-V1";
85
+ declare const DST_VES_CHUNK_LIN_V1: "ARC-MPC-VES-CHUNK-LIN-V1";
86
+ declare const DST_CANARY_CHALLENGE_V1: "ARC-MPC-CANARY-CHALLENGE-V1";
87
+ declare const DST_CANARY_SHARD_POK_V1: "ARC-MPC-CANARY-SHARD-POK-V1";
88
+ declare const DST_EMERGENCY_SWEEP_NONCE_V1: "ARC-MPC-EMERGENCY-SWEEP-NONCE-V1";
89
+ declare const DST_PERSONAL_BLOB_MAGIC: "ARCHSMP1";
90
+ declare const DST_PERSONAL_POLICY_V1: "ARC-PERSONAL-POLICY-V1";
91
+ declare const DST_PERSONAL_BLOB_AAD_V1: "ARC-PERSONAL-BLOB-AAD-V1";
92
+ declare const DST_PERSONAL_SEAL_SALT_V1: "ARC-HSM-SEAL-SALT-V1";
93
+ declare const DST_PERSONAL_SEAL_KEY_V1: "ARC-HSM-PERSONAL-SEAL-KEY-V1";
94
+ declare const DST_PERSONAL_CLUSTER_HDKG_V1: "ARC-PERSONAL-CLUSTER-HDKG-V1";
95
+ declare const DST_PERSONAL_BASEOT_CTX_V1: "ARC-PERSONAL-BASEOT-CTX-V1";
96
+ declare const DST_PERSONAL_COLD_MANIFEST_V1: "ARC-PERSONAL-COLD-MANIFEST-V1";
97
+ declare const DST_PERSONAL_PWD_CLIENT_HKDF_V1: "ARC-PERSONAL-PWD-CLIENT-HKDF-V1";
98
+ declare const DST_PERSONAL_PWD_HSM_HKDF_V1: "ARC-PERSONAL-PWD-HSM-HKDF-V1";
99
+ declare const DST_PERSONAL_DEVICE_ENV_V1: "ARC-PERSONAL-DEVICE-ENV-V1";
100
+ declare const DST_PERSONAL_DEVICE_AAD_V1: "ARC-PERSONAL-DEVICE-AAD-V1";
101
+ declare const DST_PERSONAL_CLOUD_SYNC_V1: "ARC-PERSONAL-CLOUD-SYNC-V1";
102
+ declare const DST_PERSONAL_CLOUD_BLOB_V1: "ARC-PERSONAL-CLOUD-BLOB-V1";
103
+ declare const DST_PERSONAL_TRANSPORT_BOX_V1: "ARC-PERSONAL-TRANSPORT-BOX-V1";
104
+ declare const DST_PERSONAL_TRANSPORT_AAD_V1: "ARC-PERSONAL-TRANSPORT-AAD-V1";
105
+ declare const DST_PERSONAL_PAIR_POP_V1: "ARC-PERSONAL-PAIR-POP-V1";
106
+ declare const DST_PERSONAL_PAIR_SHARE_BOX_V1: "ARC-PERSONAL-PAIR-SHARE-BOX-V1";
107
+ declare const DST_PERSONAL_PAIR_SHARE_AAD_V1: "ARC-PERSONAL-PAIR-SHARE-AAD-V1";
108
+ declare const DST_PERSONAL_CHALLENGE_SIGN_V1: "ARC-PERSONAL-CHALLENGE-SIGN-V1";
109
+ declare const DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1: "ARC-PERSONAL-CHALLENGE-PRESIGN-INIT-V1";
110
+ declare const DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1: "ARC-PERSONAL-CHALLENGE-SEAL-ENROLL-V1";
111
+ declare const DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1: "ARC-PERSONAL-SEAL-ENROLL-ACTOR-POK-V1";
112
+ declare const DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1: "ARC-PERSONAL-CHALLENGE-PAIR-RESPLIT-V1";
113
+ declare const DST_PERSONAL_CHALLENGE_ANNOUNCE_V1: "ARC-PERSONAL-CHALLENGE-ANNOUNCE-V1";
114
+ declare const DST_PERSONAL_CHALLENGE_VETO_V1: "ARC-PERSONAL-CHALLENGE-VETO-V1";
115
+ declare const DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1: "ARC-PERSONAL-CHALLENGE-REVOKE-SLOT-V1";
116
+ declare const DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1: "ARC-PERSONAL-CHALLENGE-SESSION-OPEN-V1";
117
+ declare const DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1: "ARC-PERSONAL-CHALLENGE-SESSION-LOCK-V1";
118
+ declare const DST_PERSONAL_CHALLENGE_RESEAL_KID_V1: "ARC-PERSONAL-CHALLENGE-RESEAL-KID-V1";
119
+ declare const DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1: "ARC-PERSONAL-CHALLENGE-ENTITLEMENT-APPLY-V1";
120
+ declare const DST_PERSONAL_ROLE_QUORUM_V1: "ARC-PERSONAL-ROLE-QUORUM-V1";
121
+ declare const DST_PERSONAL_GUARDIAN_QUORUM_V1: "ARC-PERSONAL-GUARDIAN-QUORUM-V1";
122
+ declare const DST_PERSONAL_ANNOUNCE_TICKET_V1: "ARC-PERSONAL-ANNOUNCE-TICKET-V1";
123
+ declare const DST_PERSONAL_ENTITLEMENT_TICKET_V1: "ARC-PERSONAL-ENTITLEMENT-TICKET-V1";
124
+ declare const DST_PERSONAL_CLEAR_PREVIEW_V1: "ARC-PERSONAL-CLEAR-PREVIEW-V1";
125
+ declare const DST_PERSONAL_BLIND_VAULT_TAG_V1: "ARC-PERSONAL-BLIND-VAULT-TAG-V1";
126
+ declare const DST_PERSONAL_BLIND_SLOT_TAG_V1: "ARC-PERSONAL-BLIND-SLOT-TAG-V1";
127
+ declare const DST_PERSONAL_BLIND_VELOCITY_TAG_V1: "ARC-PERSONAL-BLIND-VELOCITY-TAG-V1";
128
+ declare const DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1: "ARC-PERSONAL-BLIND-OCAP-VELOCITY-TAG-V1";
129
+ declare const DST_PERSONAL_FIREWALL_ATTESTATION_V1: "ARC-PERSONAL-FIREWALL-ATTESTATION-V1";
130
+ declare const DST_PERSONAL_SIMULATED_DELTA_V1: "ARC-PERSONAL-SIMULATED-DELTA-V1";
67
131
  declare const FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY: "escape-canary";
68
132
  type MpcRootLifecycleState = 'INITIALIZING' | 'PROVISIONED_UNDRILLED' | 'ACTIVE' | 'FROZEN_PANIC';
69
- type MpcErrorCode = 'INVALID_SCALAR' | 'INVALID_POINT' | 'INVALID_PARAMETER' | 'INVALID_ETH_ADDRESS' | 'FORBIDDEN_ONLINE_ROLE' | 'DEGENERATE_TWEAK' | 'DKG_INVALID_CONFIG' | 'DKG_COMMITMENT_MISMATCH' | 'DKG_POK_INVALID' | 'DKG_SHARE_DECRYPT_FAILED' | 'DKG_FELDMAN_VERIFY_FAILED' | 'DKG_DEGENERATE_KEY' | 'DKG_COLD_PLUGIN_FAILED' | 'DKG_ECHO_LOCK_CONFLICT' | 'DKG_ECHO_INVALID' | 'DKG_SELFTEST_FAILED' | 'BASE_OT_INVALID_PROOF' | 'BASE_OT_INVALID_POINT' | 'OT_STATE_INVALIDATED' | 'OT_NONCE_REUSE' | 'KOS15_CORRELATION_CHECK_FAILED' | 'MTA_COMMITMENT_MISMATCH' | 'MTA_CONSISTENCY_CHECK_FAILED' | 'PRESIG_INVALID_SUBSET' | 'PRESIG_COMMITMENT_MISMATCH' | 'PRESIG_POK_INVALID' | 'PRESIG_ROUND3_E_MISMATCH' | 'PRESIG_DEGENERATE_NONCE' | 'PRESIG_PI_LIN_K_INVALID' | 'PRESIG_PI_POK_Z_INVALID' | 'PRESIG_GLOBAL_SUM_MISMATCH' | 'PRESIG_STATE_VIOLATION' | 'PRESIG_ALREADY_CONSUMED' | 'PRESIG_SUBSET_MISMATCH' | 'PRESIG_RERAND_BURN_RETRY' | 'SIGN_SHARE_VERIFICATION_FAILED' | 'SIGN_AGGREGATION_FAILED';
133
+ type MpcErrorCode = 'INVALID_SCALAR' | 'INVALID_POINT' | 'INVALID_PARAMETER' | 'INVALID_ETH_ADDRESS' | 'FORBIDDEN_ONLINE_ROLE' | 'DEGENERATE_TWEAK' | 'DKG_INVALID_CONFIG' | 'DKG_COMMITMENT_MISMATCH' | 'DKG_POK_INVALID' | 'DKG_SHARE_DECRYPT_FAILED' | 'DKG_FELDMAN_VERIFY_FAILED' | 'DKG_DEGENERATE_KEY' | 'DKG_COLD_PLUGIN_FAILED' | 'DKG_ECHO_LOCK_CONFLICT' | 'DKG_ECHO_INVALID' | 'DKG_SELFTEST_FAILED' | 'BASE_OT_INVALID_PROOF' | 'BASE_OT_INVALID_POINT' | 'OT_STATE_INVALIDATED' | 'OT_NONCE_REUSE' | 'KOS15_CORRELATION_CHECK_FAILED' | 'MTA_COMMITMENT_MISMATCH' | 'MTA_CONSISTENCY_CHECK_FAILED' | 'PRESIG_INVALID_SUBSET' | 'PRESIG_COMMITMENT_MISMATCH' | 'PRESIG_POK_INVALID' | 'PRESIG_ROUND3_E_MISMATCH' | 'PRESIG_DEGENERATE_NONCE' | 'PRESIG_PI_LIN_K_INVALID' | 'PRESIG_PI_POK_Z_INVALID' | 'PRESIG_GLOBAL_SUM_MISMATCH' | 'PRESIG_STATE_VIOLATION' | 'PRESIG_ALREADY_CONSUMED' | 'PRESIG_SUBSET_MISMATCH' | 'PRESIG_RERAND_BURN_RETRY' | 'SIGN_SHARE_VERIFICATION_FAILED' | 'SIGN_AGGREGATION_FAILED' | 'VES_INVALID_PAYLOAD' | 'VES_BIT_PROOF_INVALID' | 'VES_LINEAR_PROOF_INVALID' | 'VES_PACKAGE_INVALID' | 'VES_BSGS_DECODE_FAILED' | 'VES_SHARE_MISMATCH' | 'BIP39_INVALID_MNEMONIC' | 'BIP39_CHECKSUM_MISMATCH' | 'COLD_SHARE_UNKNOWN_INDEX' | 'CANARY_CERT_INVALID' | 'SINGLE_CUSTODIAN_SESSION_VIOLATION' | 'SWEEP_DESTINATION_MISMATCH' | 'SWEEP_INVALID_QUORUM' | 'RLP_INVALID_TRANSACTION' | 'PERSONAL_BLOB_MALFORMED' | 'PERSONAL_BLOB_TAMPERED' | 'PERSONAL_EIP7702_FORBIDDEN' | 'PERSONAL_BLIND_DIGEST_FORBIDDEN' | 'PERSONAL_UNLIMITED_APPROVE_FORBIDDEN' | 'PERSONAL_POLICY_VIOLATION' | 'PERSONAL_POST_CONDITION_VIOLATED' | 'PERSONAL_PROOF_INVALID' | 'PERSONAL_ACTOR_SIGNATURE_INVALID' | 'PERSONAL_ENVELOPE_AUTH_FAILED' | 'PERSONAL_DEGENERATE_RESPLIT' | 'PERSONAL_SLOT_EXPIRED' | 'PERSONAL_SLOT_REVOKED' | 'PERSONAL_SLOT_QUARANTINED' | 'PERSONAL_VAULT_FROZEN' | 'PERSONAL_ENTITLEMENT_REQUIRED' | 'PERSONAL_AMOUNT_OVERFLOW' | 'PERSONAL_FIREWALL_ATTESTATION_REQUIRED' | 'PERSONAL_FIREWALL_ATTESTATION_INVALID';
70
134
  declare class MpcProtocolError extends Error {
71
135
  readonly code: MpcErrorCode;
72
136
  readonly culpritSlot?: number;
73
137
  constructor(code: MpcErrorCode, message: string, culpritSlot?: number);
74
138
  }
75
139
  //#endregion
76
- export { BSGS_M, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MPC_PROTOCOL_VERSION, MpcErrorCode, MpcProtocolError, MpcRootLifecycleState, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P };
140
+ export { BLIND_SLOT_RECORD_BYTES, BSGS_M, CLOUD_SYNC_SEALED_BLOB_BYTES, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CANARY_CHALLENGE_V1, DST_CANARY_SHARD_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_EMERGENCY_SWEEP_NONCE_V1, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PERSONAL_ANNOUNCE_TICKET_V1, DST_PERSONAL_BASEOT_CTX_V1, DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1, DST_PERSONAL_BLIND_SLOT_TAG_V1, DST_PERSONAL_BLIND_VAULT_TAG_V1, DST_PERSONAL_BLIND_VELOCITY_TAG_V1, DST_PERSONAL_BLOB_AAD_V1, DST_PERSONAL_BLOB_MAGIC, DST_PERSONAL_CHALLENGE_ANNOUNCE_V1, DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1, DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1, DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1, DST_PERSONAL_CHALLENGE_RESEAL_KID_V1, DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1, DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1, DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1, DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1, DST_PERSONAL_CHALLENGE_SIGN_V1, DST_PERSONAL_CHALLENGE_VETO_V1, DST_PERSONAL_CLEAR_PREVIEW_V1, DST_PERSONAL_CLOUD_BLOB_V1, DST_PERSONAL_CLOUD_SYNC_V1, DST_PERSONAL_CLUSTER_HDKG_V1, DST_PERSONAL_COLD_MANIFEST_V1, DST_PERSONAL_DEVICE_AAD_V1, DST_PERSONAL_DEVICE_ENV_V1, DST_PERSONAL_ENTITLEMENT_TICKET_V1, DST_PERSONAL_FIREWALL_ATTESTATION_V1, DST_PERSONAL_GUARDIAN_QUORUM_V1, DST_PERSONAL_PAIR_POP_V1, DST_PERSONAL_PAIR_SHARE_AAD_V1, DST_PERSONAL_PAIR_SHARE_BOX_V1, DST_PERSONAL_POLICY_V1, DST_PERSONAL_PWD_CLIENT_HKDF_V1, DST_PERSONAL_PWD_HSM_HKDF_V1, DST_PERSONAL_ROLE_QUORUM_V1, DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1, DST_PERSONAL_SEAL_KEY_V1, DST_PERSONAL_SEAL_SALT_V1, DST_PERSONAL_SIMULATED_DELTA_V1, DST_PERSONAL_TRANSPORT_AAD_V1, DST_PERSONAL_TRANSPORT_BOX_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DST_VES_BIT_OR_V1, DST_VES_CHUNK_LIN_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, HSM_SEALED_BLOB_BYTES, MAX_ACTIVE_PRESIGN_SESSIONS, MAX_BLIND_RECORDS, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_PERSONAL_CALL_DEPTH, MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS, MAX_PERSONAL_HTTP_BODY_BYTES, MAX_PERSONAL_JSON_DEPTH, MAX_PERSONAL_JWT_TTL_SECONDS, MAX_PERSONAL_JWT_UNSIGNED_BYTES, MAX_PERSONAL_OCAP_CBOR_DEPTH, MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS, MAX_PERSONAL_OCAP_TX_BYTES, MAX_PERSONAL_TX_DATA_BYTES, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MAX_TRAVEL_SESSION_TTL_SECONDS, MPC_PROTOCOL_VERSION, MpcErrorCode, MpcProtocolError, MpcRootLifecycleState, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PERSONAL_PRESIG_TTL_SECONDS, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P };
package/esm/constants.mjs CHANGED
@@ -30,6 +30,23 @@ const MAX_RULE_YAML_BYTES = 16384;
30
30
  const MAX_RULE_DAG_NODES = 128;
31
31
  const MAX_ON_DEMAND_SILENCE_SECONDS = 604800;
32
32
  const ESCAPE_DRILL_MAX_AGE_SECONDS = 2592e3;
33
+ const HSM_SEALED_BLOB_BYTES = 4096;
34
+ const CLOUD_SYNC_SEALED_BLOB_BYTES = 4140;
35
+ const BLIND_SLOT_RECORD_BYTES = 48;
36
+ const MAX_PERSONAL_TX_DATA_BYTES = 4096;
37
+ const MAX_TRAVEL_SESSION_TTL_SECONDS = 900;
38
+ const PERSONAL_PRESIG_TTL_SECONDS = 90;
39
+ const MAX_PERSONAL_CALL_DEPTH = 1;
40
+ const MAX_PERSONAL_HTTP_BODY_BYTES = 131072;
41
+ const MAX_PERSONAL_JSON_DEPTH = 16;
42
+ const MAX_BLIND_RECORDS = 262144;
43
+ const MAX_ACTIVE_PRESIGN_SESSIONS = 1024;
44
+ const MAX_PERSONAL_OCAP_TX_BYTES = 16384;
45
+ const MAX_PERSONAL_OCAP_CBOR_DEPTH = 64;
46
+ const MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS = 86400;
47
+ const MAX_PERSONAL_JWT_UNSIGNED_BYTES = 8192;
48
+ const MAX_PERSONAL_JWT_TTL_SECONDS = 3600;
49
+ const MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS = 300;
33
50
  const SECP256K1_P = 115792089237316195423570985008687907853269984665640564039457584007908834671663n;
34
51
  const SECP256K1_N = 115792089237316195423570985008687907852837564279074904382605163141518161494337n;
35
52
  const SECP256K1_HALF_N = 57896044618658097711785492504343953926418782139537452191302581570759080747168n;
@@ -64,6 +81,53 @@ const DST_PRESIG_ZETA_V1 = "ARC-MPC-PRESIG-ZETA-V1";
64
81
  const DST_PRESIG_PI_LIN_K_V1 = "ARC-MPC-PRESIG-PI-LIN-K-V1";
65
82
  const DST_PRESIG_PI_POK_Z_V1 = "ARC-MPC-PRESIG-PI-POK-Z-V1";
66
83
  const DST_PRESIG_RERAND_V1 = "ARC-MPC-PRESIG-RERAND-V1";
84
+ const DST_VES_BIT_OR_V1 = "ARC-MPC-VES-BIT-OR-V1";
85
+ const DST_VES_CHUNK_LIN_V1 = "ARC-MPC-VES-CHUNK-LIN-V1";
86
+ const DST_CANARY_CHALLENGE_V1 = "ARC-MPC-CANARY-CHALLENGE-V1";
87
+ const DST_CANARY_SHARD_POK_V1 = "ARC-MPC-CANARY-SHARD-POK-V1";
88
+ const DST_EMERGENCY_SWEEP_NONCE_V1 = "ARC-MPC-EMERGENCY-SWEEP-NONCE-V1";
89
+ const DST_PERSONAL_BLOB_MAGIC = "ARCHSMP1";
90
+ const DST_PERSONAL_POLICY_V1 = "ARC-PERSONAL-POLICY-V1";
91
+ const DST_PERSONAL_BLOB_AAD_V1 = "ARC-PERSONAL-BLOB-AAD-V1";
92
+ const DST_PERSONAL_SEAL_SALT_V1 = "ARC-HSM-SEAL-SALT-V1";
93
+ const DST_PERSONAL_SEAL_KEY_V1 = "ARC-HSM-PERSONAL-SEAL-KEY-V1";
94
+ const DST_PERSONAL_CLUSTER_HDKG_V1 = "ARC-PERSONAL-CLUSTER-HDKG-V1";
95
+ const DST_PERSONAL_BASEOT_CTX_V1 = "ARC-PERSONAL-BASEOT-CTX-V1";
96
+ const DST_PERSONAL_COLD_MANIFEST_V1 = "ARC-PERSONAL-COLD-MANIFEST-V1";
97
+ const DST_PERSONAL_PWD_CLIENT_HKDF_V1 = "ARC-PERSONAL-PWD-CLIENT-HKDF-V1";
98
+ const DST_PERSONAL_PWD_HSM_HKDF_V1 = "ARC-PERSONAL-PWD-HSM-HKDF-V1";
99
+ const DST_PERSONAL_DEVICE_ENV_V1 = "ARC-PERSONAL-DEVICE-ENV-V1";
100
+ const DST_PERSONAL_DEVICE_AAD_V1 = "ARC-PERSONAL-DEVICE-AAD-V1";
101
+ const DST_PERSONAL_CLOUD_SYNC_V1 = "ARC-PERSONAL-CLOUD-SYNC-V1";
102
+ const DST_PERSONAL_CLOUD_BLOB_V1 = "ARC-PERSONAL-CLOUD-BLOB-V1";
103
+ const DST_PERSONAL_TRANSPORT_BOX_V1 = "ARC-PERSONAL-TRANSPORT-BOX-V1";
104
+ const DST_PERSONAL_TRANSPORT_AAD_V1 = "ARC-PERSONAL-TRANSPORT-AAD-V1";
105
+ const DST_PERSONAL_PAIR_POP_V1 = "ARC-PERSONAL-PAIR-POP-V1";
106
+ const DST_PERSONAL_PAIR_SHARE_BOX_V1 = "ARC-PERSONAL-PAIR-SHARE-BOX-V1";
107
+ const DST_PERSONAL_PAIR_SHARE_AAD_V1 = "ARC-PERSONAL-PAIR-SHARE-AAD-V1";
108
+ const DST_PERSONAL_CHALLENGE_SIGN_V1 = "ARC-PERSONAL-CHALLENGE-SIGN-V1";
109
+ const DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1 = "ARC-PERSONAL-CHALLENGE-PRESIGN-INIT-V1";
110
+ const DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1 = "ARC-PERSONAL-CHALLENGE-SEAL-ENROLL-V1";
111
+ const DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1 = "ARC-PERSONAL-SEAL-ENROLL-ACTOR-POK-V1";
112
+ const DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1 = "ARC-PERSONAL-CHALLENGE-PAIR-RESPLIT-V1";
113
+ const DST_PERSONAL_CHALLENGE_ANNOUNCE_V1 = "ARC-PERSONAL-CHALLENGE-ANNOUNCE-V1";
114
+ const DST_PERSONAL_CHALLENGE_VETO_V1 = "ARC-PERSONAL-CHALLENGE-VETO-V1";
115
+ const DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1 = "ARC-PERSONAL-CHALLENGE-REVOKE-SLOT-V1";
116
+ const DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1 = "ARC-PERSONAL-CHALLENGE-SESSION-OPEN-V1";
117
+ const DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1 = "ARC-PERSONAL-CHALLENGE-SESSION-LOCK-V1";
118
+ const DST_PERSONAL_CHALLENGE_RESEAL_KID_V1 = "ARC-PERSONAL-CHALLENGE-RESEAL-KID-V1";
119
+ const DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1 = "ARC-PERSONAL-CHALLENGE-ENTITLEMENT-APPLY-V1";
120
+ const DST_PERSONAL_ROLE_QUORUM_V1 = "ARC-PERSONAL-ROLE-QUORUM-V1";
121
+ const DST_PERSONAL_GUARDIAN_QUORUM_V1 = "ARC-PERSONAL-GUARDIAN-QUORUM-V1";
122
+ const DST_PERSONAL_ANNOUNCE_TICKET_V1 = "ARC-PERSONAL-ANNOUNCE-TICKET-V1";
123
+ const DST_PERSONAL_ENTITLEMENT_TICKET_V1 = "ARC-PERSONAL-ENTITLEMENT-TICKET-V1";
124
+ const DST_PERSONAL_CLEAR_PREVIEW_V1 = "ARC-PERSONAL-CLEAR-PREVIEW-V1";
125
+ const DST_PERSONAL_BLIND_VAULT_TAG_V1 = "ARC-PERSONAL-BLIND-VAULT-TAG-V1";
126
+ const DST_PERSONAL_BLIND_SLOT_TAG_V1 = "ARC-PERSONAL-BLIND-SLOT-TAG-V1";
127
+ const DST_PERSONAL_BLIND_VELOCITY_TAG_V1 = "ARC-PERSONAL-BLIND-VELOCITY-TAG-V1";
128
+ const DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1 = "ARC-PERSONAL-BLIND-OCAP-VELOCITY-TAG-V1";
129
+ const DST_PERSONAL_FIREWALL_ATTESTATION_V1 = "ARC-PERSONAL-FIREWALL-ATTESTATION-V1";
130
+ const DST_PERSONAL_SIMULATED_DELTA_V1 = "ARC-PERSONAL-SIMULATED-DELTA-V1";
67
131
  const FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY = "escape-canary";
68
132
  var MpcProtocolError = class extends Error {
69
133
  constructor(code, message, culpritSlot) {
@@ -75,4 +139,4 @@ var MpcProtocolError = class extends Error {
75
139
  };
76
140
 
77
141
  //#endregion
78
- export { BSGS_M, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MPC_PROTOCOL_VERSION, MpcProtocolError, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P };
142
+ export { BLIND_SLOT_RECORD_BYTES, BSGS_M, CLOUD_SYNC_SEALED_BLOB_BYTES, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CANARY_CHALLENGE_V1, DST_CANARY_SHARD_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_EMERGENCY_SWEEP_NONCE_V1, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PERSONAL_ANNOUNCE_TICKET_V1, DST_PERSONAL_BASEOT_CTX_V1, DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1, DST_PERSONAL_BLIND_SLOT_TAG_V1, DST_PERSONAL_BLIND_VAULT_TAG_V1, DST_PERSONAL_BLIND_VELOCITY_TAG_V1, DST_PERSONAL_BLOB_AAD_V1, DST_PERSONAL_BLOB_MAGIC, DST_PERSONAL_CHALLENGE_ANNOUNCE_V1, DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1, DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1, DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1, DST_PERSONAL_CHALLENGE_RESEAL_KID_V1, DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1, DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1, DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1, DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1, DST_PERSONAL_CHALLENGE_SIGN_V1, DST_PERSONAL_CHALLENGE_VETO_V1, DST_PERSONAL_CLEAR_PREVIEW_V1, DST_PERSONAL_CLOUD_BLOB_V1, DST_PERSONAL_CLOUD_SYNC_V1, DST_PERSONAL_CLUSTER_HDKG_V1, DST_PERSONAL_COLD_MANIFEST_V1, DST_PERSONAL_DEVICE_AAD_V1, DST_PERSONAL_DEVICE_ENV_V1, DST_PERSONAL_ENTITLEMENT_TICKET_V1, DST_PERSONAL_FIREWALL_ATTESTATION_V1, DST_PERSONAL_GUARDIAN_QUORUM_V1, DST_PERSONAL_PAIR_POP_V1, DST_PERSONAL_PAIR_SHARE_AAD_V1, DST_PERSONAL_PAIR_SHARE_BOX_V1, DST_PERSONAL_POLICY_V1, DST_PERSONAL_PWD_CLIENT_HKDF_V1, DST_PERSONAL_PWD_HSM_HKDF_V1, DST_PERSONAL_ROLE_QUORUM_V1, DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1, DST_PERSONAL_SEAL_KEY_V1, DST_PERSONAL_SEAL_SALT_V1, DST_PERSONAL_SIMULATED_DELTA_V1, DST_PERSONAL_TRANSPORT_AAD_V1, DST_PERSONAL_TRANSPORT_BOX_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DST_VES_BIT_OR_V1, DST_VES_CHUNK_LIN_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, HSM_SEALED_BLOB_BYTES, MAX_ACTIVE_PRESIGN_SESSIONS, MAX_BLIND_RECORDS, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_PERSONAL_CALL_DEPTH, MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS, MAX_PERSONAL_HTTP_BODY_BYTES, MAX_PERSONAL_JSON_DEPTH, MAX_PERSONAL_JWT_TTL_SECONDS, MAX_PERSONAL_JWT_UNSIGNED_BYTES, MAX_PERSONAL_OCAP_CBOR_DEPTH, MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS, MAX_PERSONAL_OCAP_TX_BYTES, MAX_PERSONAL_TX_DATA_BYTES, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MAX_TRAVEL_SESSION_TTL_SECONDS, MPC_PROTOCOL_VERSION, MpcProtocolError, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PERSONAL_PRESIG_TTL_SECONDS, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P };
package/esm/dkg.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, MAX_MPC_CLUSTER_NODES, MAX_RECOVERY_PACKAGE_BYTES, MPC_PROTOCOL_VERSION, MpcProtocolError, SECP256K1_HALF_N, SECP256K1_N } from "./constants.mjs";
2
2
  import { SECP256K1_G, SECP256K1_ZERO, addModN, assertValidX25519PublicKey, bytes32ToScalarNonZero, bytesToBigIntBE, bytesToHex, computeX25519SharedSecret, concatBytes, constantTimeEqual, createSchnorrPokInBase, decodePointCompressed, defaultRandomBytes, encodePointCompressed, enumerateCombinations, evaluateFeldmanCommitments, evaluatePolynomialModN, hashTranscriptSha256, lengthPrefixedEncode, mulBaseG, normalizeHexBytes, normalizeSortedSubset, sampleScalarNonZero, scalarToBytes32, sortedSubsetBytes, u16be, u32be, u64be, u8, utf8Bytes, verifySchnorrPokInBase, zeroizeBytes } from "./secp256k1-scalar.mjs";
3
3
  import { ecrecoverEthAddress, parseStrictEthAddress, pointToEthAddress } from "./tweak.mjs";
4
+ import { sha256 } from "@noble/hashes/sha2.js";
5
+ import { x25519 } from "@noble/curves/ed25519.js";
4
6
  import { createCipheriv, createDecipheriv } from "node:crypto";
5
7
  import { closeSync, existsSync, fsyncSync, openSync, readFileSync, renameSync, unlinkSync, writeSync } from "node:fs";
6
8
  import { dirname } from "node:path";
7
- import { x25519 } from "@noble/curves/ed25519.js";
8
9
  import { hkdf } from "@noble/hashes/hkdf.js";
9
- import { sha256 } from "@noble/hashes/sha2.js";
10
10
 
11
11
  //#region src/dkg.ts
12
12
  const VALID_CEREMONY_ID_RE = /^[A-Za-z0-9:._-]{1,128}$/;
package/esm/index.d.mts CHANGED
@@ -1,9 +1,17 @@
1
- import { BSGS_M, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MPC_PROTOCOL_VERSION, MpcErrorCode, MpcProtocolError, MpcRootLifecycleState, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P } from "./constants.mjs";
1
+ import { BIP39_ENGLISH_WORDLIST, BIP39_ENGLISH_WORD_TO_INDEX, CANONICAL_BIP39_ENGLISH_SHA256_HEX } from "./bip39-english-wordlist.mjs";
2
+ import { BLIND_SLOT_RECORD_BYTES, BSGS_M, CLOUD_SYNC_SEALED_BLOB_BYTES, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CANARY_CHALLENGE_V1, DST_CANARY_SHARD_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_EMERGENCY_SWEEP_NONCE_V1, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PERSONAL_ANNOUNCE_TICKET_V1, DST_PERSONAL_BASEOT_CTX_V1, DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1, DST_PERSONAL_BLIND_SLOT_TAG_V1, DST_PERSONAL_BLIND_VAULT_TAG_V1, DST_PERSONAL_BLIND_VELOCITY_TAG_V1, DST_PERSONAL_BLOB_AAD_V1, DST_PERSONAL_BLOB_MAGIC, DST_PERSONAL_CHALLENGE_ANNOUNCE_V1, DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1, DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1, DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1, DST_PERSONAL_CHALLENGE_RESEAL_KID_V1, DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1, DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1, DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1, DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1, DST_PERSONAL_CHALLENGE_SIGN_V1, DST_PERSONAL_CHALLENGE_VETO_V1, DST_PERSONAL_CLEAR_PREVIEW_V1, DST_PERSONAL_CLOUD_BLOB_V1, DST_PERSONAL_CLOUD_SYNC_V1, DST_PERSONAL_CLUSTER_HDKG_V1, DST_PERSONAL_COLD_MANIFEST_V1, DST_PERSONAL_DEVICE_AAD_V1, DST_PERSONAL_DEVICE_ENV_V1, DST_PERSONAL_ENTITLEMENT_TICKET_V1, DST_PERSONAL_FIREWALL_ATTESTATION_V1, DST_PERSONAL_GUARDIAN_QUORUM_V1, DST_PERSONAL_PAIR_POP_V1, DST_PERSONAL_PAIR_SHARE_AAD_V1, DST_PERSONAL_PAIR_SHARE_BOX_V1, DST_PERSONAL_POLICY_V1, DST_PERSONAL_PWD_CLIENT_HKDF_V1, DST_PERSONAL_PWD_HSM_HKDF_V1, DST_PERSONAL_ROLE_QUORUM_V1, DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1, DST_PERSONAL_SEAL_KEY_V1, DST_PERSONAL_SEAL_SALT_V1, DST_PERSONAL_SIMULATED_DELTA_V1, DST_PERSONAL_TRANSPORT_AAD_V1, DST_PERSONAL_TRANSPORT_BOX_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DST_VES_BIT_OR_V1, DST_VES_CHUNK_LIN_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, HSM_SEALED_BLOB_BYTES, MAX_ACTIVE_PRESIGN_SESSIONS, MAX_BLIND_RECORDS, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_PERSONAL_CALL_DEPTH, MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS, MAX_PERSONAL_HTTP_BODY_BYTES, MAX_PERSONAL_JSON_DEPTH, MAX_PERSONAL_JWT_TTL_SECONDS, MAX_PERSONAL_JWT_UNSIGNED_BYTES, MAX_PERSONAL_OCAP_CBOR_DEPTH, MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS, MAX_PERSONAL_OCAP_TX_BYTES, MAX_PERSONAL_TX_DATA_BYTES, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MAX_TRAVEL_SESSION_TTL_SECONDS, MPC_PROTOCOL_VERSION, MpcErrorCode, MpcProtocolError, MpcRootLifecycleState, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PERSONAL_PRESIG_TTL_SECONDS, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P } from "./constants.mjs";
2
3
  import { Fn, H_scalar, LinearPedersenDleqProof, PEDERSEN_H, PEDERSEN_H_COMP33, PedersenPokProof, RandomBytesFn, SECP256K1_G, SECP256K1_ZERO, SchnorrPokProof, Secp256k1Point, addModN, assertScalarInField, assertScalarNonZero, assertValidX25519PublicKey, bytes32ToScalarNonZero, bytes32ToScalarStrict, bytesToBigIntBE, bytesToHex, computeX25519SharedSecret, concatBytes, constantTimeEqual, createLinearPedersenDleqProof, createPedersenPok, createSchnorrPokInBase, decodePointCompressed, defaultRandomBytes, encodePointCompressed, enumerateCombinations, evaluateFeldmanCommitments, evaluatePolynomialModN, hashTranscriptSha256, hexToBytes, invModN, lagrangeCoefficientAtZero, lengthPrefixedEncode, modN, mulBaseG, mulModN, mulPoint, negModN, normalizeHexBytes, normalizeSortedSubset, pedersenCommit, sampleScalarNonZero, scalarToBytes32, secp256k1, sortedSubsetBytes, subModN, subsetsEqual, u16be, u32be, u64be, u8, utf8Bytes, verifyLinearPedersenDleqProof, verifyPedersenPok, verifySchnorrPokInBase, zeroizeBytes } from "./secp256k1-scalar.mjs";
3
4
  import { AppendOnlyDkgEchoLock, ColdBackupDealerInput, ColdBackupPlugin, DkgCeremonyConfig, DkgEchoLock, DkgEncryptedShareEnvelope, DkgParticipantSession, DkgRosterEntry, DkgRound1CommitMessage, DkgRound2RevealPayload, DkgRound3EchoMessage, DkgSubsetSelfTestSignature, MpcNodeProvisionedKeyRecord, OcapConsensusAnchor, assertSafeCeremonyId, computeDkgContextHash32, computeDkgSubsetSelfTestDigest32, promoteNodeRecordAfterSelfTests, validateAndComputeDkgContext } from "./dkg.mjs";
4
5
  import { DerivedChildKey, MpcChildDerivationSpec, MpcTweakMode, applyAdditiveTweak, assertAllowedOnlineRole, deriveRoleBoundChild, deriveRuleBoundChild, deriveUntweakedChild, ecrecoverEthAddress, parseStrictEthAddress, pointToEthAddress, toEip55ChecksumAddress } from "./tweak.mjs";
5
- import { BaseOtReceiverState, BaseOtSenderPendingSession, BaseOtSenderState, BaseOtStep1Message, BaseOtStep2Message, OtExtReceiverPendingState, OtExtSenderPendingState, OtExtStep1Message, OtExtStep2Message, OtExtStep3Message, VerifiedCotReceiverRows, VerifiedCotSenderRows, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bytes16ToU128LE, eklundhTranspose128x1024, expandKos15ChiWeights, gf128Mul, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, u128ToBytes16LE, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows } from "./ot.mjs";
6
+ import { BaseOtReceiverState, BaseOtSenderPendingSession, BaseOtSenderState, BaseOtStep1Message, BaseOtStep2Message, OtExtReceiverPendingState, OtExtSenderPendingState, OtExtStep1Message, OtExtStep2Message, OtExtStep3Message, VerifiedCotReceiverRows, VerifiedCotSenderRows, aes256EncryptBlock, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bytes16ToU128LE, eklundhTranspose128x1024, expandColumnPrgAes256Ctr, expandKos15ChiWeights, gf128Mul, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, u128ToBytes16LE, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows } from "./ot.mjs";
6
7
  import { GadgetMtaPayload, decomposeScalarWithLhlGadget, deriveDualPadFromCotRow, gadgetMtaReceiverVerifyAndFinish, gadgetMtaSenderCreateMessage, getGadgetVector768, recombineGadgetBitsModN } from "./mta.mjs";
7
8
  import { MpcPartyBaseOtChannels, MpcPublicClusterInfo, MtaInstanceKind, PresignMtaOtStep1Bundle, PresignMtaOtStep2Bundle, PresignMtaOtStep3Bundle, PresignMtaStep4PayloadBundle, PresignPartySession, PresignRound1CommitmentMsg, PresignRound1RevealMsg, PresignRound3BroadcastMsg, PresignRound4BroadcastMsg, PresignaturePublicVerification, PresignatureShareRecord, VolatilePresignaturePool, computeSubsetBoundPresigId } from "./presign.mjs";
8
9
  import { MpcAggregatedSignature, MpcOnlineSignRequest, MpcOnlineSignShare, RerandomizedNonceResult, aggregateOnlineSignature, computeRerandomizedNoncePoint, createOnlineSignShare, deriveGrothShoupRerandScalar, evaluateConsumedPresigShareWithRerand, verifyAndDeriveRequestChildKey, verifyOnlineSignShare } from "./sign.mjs";
9
- export { AppendOnlyDkgEchoLock, BSGS_M, BaseOtReceiverState, BaseOtSenderPendingSession, BaseOtSenderState, BaseOtStep1Message, BaseOtStep2Message, ColdBackupDealerInput, ColdBackupPlugin, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DerivedChildKey, DkgCeremonyConfig, DkgEchoLock, DkgEncryptedShareEnvelope, DkgParticipantSession, DkgRosterEntry, DkgRound1CommitMessage, DkgRound2RevealPayload, DkgRound3EchoMessage, DkgSubsetSelfTestSignature, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, Fn, GadgetMtaPayload, H_scalar, LinearPedersenDleqProof, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MPC_PROTOCOL_VERSION, type MpcAggregatedSignature, MpcChildDerivationSpec, MpcErrorCode, MpcNodeProvisionedKeyRecord, type MpcOnlineSignRequest, type MpcOnlineSignShare, MpcPartyBaseOtChannels, MpcProtocolError, MpcPublicClusterInfo, MpcRootLifecycleState, MpcTweakMode, MtaInstanceKind, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, OcapConsensusAnchor, OtExtReceiverPendingState, OtExtSenderPendingState, OtExtStep1Message, OtExtStep2Message, OtExtStep3Message, PEDERSEN_H, PEDERSEN_H_COMP33, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PedersenPokProof, PresignMtaOtStep1Bundle, PresignMtaOtStep2Bundle, PresignMtaOtStep3Bundle, PresignMtaStep4PayloadBundle, PresignPartySession, PresignRound1CommitmentMsg, PresignRound1RevealMsg, PresignRound3BroadcastMsg, PresignRound4BroadcastMsg, PresignaturePublicVerification, PresignatureShareRecord, RandomBytesFn, type RerandomizedNonceResult, SECP256K1_G, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P, SECP256K1_ZERO, SchnorrPokProof, Secp256k1Point, VerifiedCotReceiverRows, VerifiedCotSenderRows, VolatilePresignaturePool, addModN, aggregateOnlineSignature, applyAdditiveTweak, assertAllowedOnlineRole, assertSafeCeremonyId, assertScalarInField, assertScalarNonZero, assertValidX25519PublicKey, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bytes16ToU128LE, bytes32ToScalarNonZero, bytes32ToScalarStrict, bytesToBigIntBE, bytesToHex, computeDkgContextHash32, computeDkgSubsetSelfTestDigest32, computeRerandomizedNoncePoint, computeSubsetBoundPresigId, computeX25519SharedSecret, concatBytes, constantTimeEqual, createLinearPedersenDleqProof, createOnlineSignShare, createPedersenPok, createSchnorrPokInBase, decodePointCompressed, decomposeScalarWithLhlGadget, defaultRandomBytes, deriveDualPadFromCotRow, deriveGrothShoupRerandScalar, deriveRoleBoundChild, deriveRuleBoundChild, deriveUntweakedChild, ecrecoverEthAddress, eklundhTranspose128x1024, encodePointCompressed, enumerateCombinations, evaluateConsumedPresigShareWithRerand, evaluateFeldmanCommitments, evaluatePolynomialModN, expandKos15ChiWeights, gadgetMtaReceiverVerifyAndFinish, gadgetMtaSenderCreateMessage, getGadgetVector768, gf128Mul, hashTranscriptSha256, hexToBytes, invModN, lagrangeCoefficientAtZero, lengthPrefixedEncode, modN, mulBaseG, mulModN, mulPoint, negModN, normalizeHexBytes, normalizeSortedSubset, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, parseStrictEthAddress, pedersenCommit, pointToEthAddress, promoteNodeRecordAfterSelfTests, recombineGadgetBitsModN, sampleScalarNonZero, scalarToBytes32, secp256k1, sortedSubsetBytes, subModN, subsetsEqual, toEip55ChecksumAddress, u128ToBytes16LE, u16be, u32be, u64be, u8, utf8Bytes, validateAndComputeDkgContext, verifyAndDeriveRequestChildKey, verifyLinearPedersenDleqProof, verifyOnlineSignShare, verifyPedersenPok, verifySchnorrPokInBase, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows, zeroizeBytes };
10
+ import { BIP44_ETH_STANDARD_PATH, Bip39TwentyFourthSiblingEntry, IdentifiedColdShare, decodeBip39Words24ToColdShare, deriveBip44EthAddressFromWords24, encodeColdShareToBip39Words24, enumerateValid24thBip39Siblings, guardianIndexToPlateLabel, identifyColdShareIndexViaFeldman } from "./steel-mnemonic.mjs";
11
+ import { CanaryActivationCert, CanaryChallengeBundle, CanaryChallengePeerApproval, ColdShardSchnorrPok, DecryptedGuardianColdShare, DirectBitElGamalVesPlugin, ParsedVesRecoveryPackage, PrintableManifestCard, VES_BITS_PER_CHUNK, VES_BITS_PER_SHARE, VES_BIT_RECORD_BYTES, VES_CHUNKS_PER_SHARE, VES_GUARDIAN_BUNDLE_BYTES, VES_LINEAR_DLEQ_BYTES, VES_MAX_LIMB_VALUE, VES_MAX_SUMMED_LIMB, aggregateRecoveryPackage, assembleCanaryActivationCert, assertChallengeBundleMatchesManifest, computeCanaryChallengeDigest32, createColdShardSchnorrPok, createNodeColdVesContribution, decryptGuardianColdShareBsgs, exportPrintableManifestCard, parseRecoveryPackageBytes, signCanaryChallengeApproval, solveDiscreteLogBsgs, validatePrintableManifestCard, verifyCanaryActivationCert, verifyCanaryChallengeBundle, verifyColdShardSchnorrPok, verifyManifestAgainstDkgConfig, verifyManifestAgainstRecoveryPackage, verifyNodeColdVesContribution, verifyRecoveryPackage } from "./ves-backup.mjs";
12
+ import { DecodedSignedEip1559Tx, EIP1559_TX_TYPE_BYTE, ERC20_TRANSFER_SELECTOR_HEX, Eip1559AccessListItem, Eip1559UnsignedTxFields, RlpInput, bigintToMinimalBytesBE, decodeAndRecoverSignedEip1559Tx, decodeErc20TransferCalldata, encodeErc20TransferCalldata, encodeSignedEip1559Tx, encodeUnsignedEip1559Tx, rlpDecode, rlpEncode } from "./rlp-eip1559.mjs";
13
+ import { ACTOR_KIND_AND_ALG_BYTE, ActorKindAndAlg, ActorSlotPairingBootstrapPackage, CanonicalPersonalOcapChainGasConfig, CanonicalPersonalVaultPolicy, DeviceShareEnvelope, ENTITLEMENT_TIER_CODE, ERC20_APPROVE_SELECTOR_HEX, EncryptedTargetActorShareBox, FirewallCommercialTier, FirewallRiskVerdict, GuardianQuorumProof, HARD_BANNED_PERSONAL_EVM_SELECTORS, HSM_SEALED_BLOB_CIPHERTEXT_BYTES, HSM_SEALED_BLOB_CIPHERTEXT_OFFSET, HSM_SEALED_BLOB_HEADER_BYTES, HSM_SEALED_BLOB_HEADER_MAC_OFFSET, HSM_SEALED_BLOB_HEADER_WITH_MAC_BYTES, HSM_SEALED_BLOB_IV_OFFSET, HSM_SEALED_BLOB_MAX_POLICY_UTF8_BYTES, HSM_SEALED_BLOB_TAG_OFFSET, HSM_SEALED_BLOB_VERSION, HsmSealedBlobHeaderFields, MAX_ANNOUNCE_VALIDITY_WINDOW_SEC, MIN_ANNOUNCE_VALIDITY_WINDOW_SEC, OfflineSweepItemSpec, PERSONAL_MAX_VELOCITY_UINT128, ParsedHsmSealedBlob, PersonalActorChallengeAction, PersonalActorSignature, PersonalAllowedContractRule, PersonalAssetTierLimits, PersonalBlobAadInput, PersonalChildDerivationInput, PersonalClearSigningPreview, PersonalColdRecoveryKitManifest, PersonalColdRecoveryPlatePublicInfo, PersonalCosignerResponderSession, PersonalCosignerTransport, PersonalEvmCallKind, PersonalMpcEoaSigner, PersonalOcapAssetTierLimits, PersonalOcapChainGasConfig, PersonalOnlineSignCosignerRequest, PersonalPolicyProofBundle, PersonalPolicyTier, PersonalPostConditions, PersonalPresignInitRequest, PersonalPresignInitResponse, PersonalPresignStepRequest, PersonalPresignStepResponse, PersonalPreviewCallKind, PersonalRoleRoster, PersonalSealEnrollActorPok, PersonalSignPayloadKind, PersonalSignTxOptions, PersonalSignedEip1559Result, PersonalVaultPolicy, PersonalWakePasswordKdfOptions, QuorumApproverAlg, QuorumApproverMember, QuorumMemberSignatureEntry, RoleQuorumProof, SignedAnnounceTicket, SignedFirewallAttestation, SignedOfflineSweepTx, SimulatedBalanceDelta, UNLIMITED_APPROVE_THRESHOLD, VaultEntitlementTicket, VaultEntitlementTier, VerifiedPersonalEip1559Tx, WebAuthnVerifyExpectedPolicy, actorKindAndAlgToByte, additiveToShamirSlot1Share, additiveToShamirSlot2Share, aes256GcmDecryptDetached, aes256GcmEncryptDetached, applyHsmSlotResplitDelta, assertNoEip7702Bytes, assertPersonalSlotNotExpired, base64UrlDecodeBytes, base64UrlEncodeBytes, bootstrapPersonalVaultClient, buildPersonalAnnounceChallengeDigest32, buildPersonalClearSigningPreview, buildPersonalEntitlementApplyChallengeDigest32, buildPersonalPairResplitChallengeDigest32, buildPersonalPresignInitChallengeDigest32, buildPersonalResealKidChallengeDigest32, buildPersonalRevokeSlotChallengeDigest32, buildPersonalSealEnrollChallengeDigest32, buildPersonalSessionLockChallengeDigest32, buildPersonalSessionOpenChallengeDigest32, buildPersonalSignChallengeDigest32, buildPersonalVaultClusterInfo, buildPersonalVetoChallengeDigest32, byteToActorKindAndAlg, canonicalizePersonalBlobAadBytes, canonicalizePersonalVaultPolicy, completeActorSlotPairingOnTarget, computeHsmSealedBlobHeaderMac32, computeNonDegenerateActorResplitShare, computePersonalActorChallengeDigest32, computePersonalClearSigningPreviewHash32, computePersonalPolicyHash32, computeSimulatedDeltaCommitment32, computeVaultEntitlementTicketDigest32, createActorSlotPairingBootstrap, createPersonalMpcEoaSigner, createPersonalSealEnrollActorPok, decodeAndVerifyPersonalEip1559Tx, decodeErc20ApproveCalldata, decodeHsmSealedBlobHeader319, decodeHsmSealedBlobInnerPlaintext3717, deriveBlindOcapVelocityTag32, deriveBlindSlotTag32, deriveBlindVaultTag32, deriveBlindVelocityTag32, deriveHsmPersonalSealKey32, derivePersonalVaultChildKey, derivePersonalWakePasswordKeys, encodeErc20ApproveCalldata, encodeHsmSealedBlobHeader319, encodeHsmSealedBlobInnerPlaintext3717, initiateActorSlotResplit, isAgentActorKind, normalizeActorPublicKeyToPadded65, normalizeCanonicalOcapTokenKey, normalizeMaxTokenOutflowsCaps, normalizeOcapAddressOrEth, openHsmInboundTransportBox, parseHsmSealedBlobHeader, recoverPersonalVaultRootOffline, resolveRequiredPolicyTier, runPersonalClientPresignWithTransport, sealDeviceShareEnvelope, sealHsmInboundTransportBox, signAnnounceTicket, signGuardianQuorumApproval, signPersonalActorChallenge, signPersonalFirewallAttestation, signPersonalVaultRecoverySweepOffline, signRoleQuorumApproval, signVaultEntitlementTicket, unsealDeviceShareEnvelope, unwrapSealedBlobFromCloudSync, validateActorPublicKeyPadded65, verifyActorSlotPairingBootstrap, verifyGuardianQuorumProof, verifyPersonalActorSignature, verifyPersonalAdditiveSplitMatchesRoot, verifyPersonalColdRecoveryKitManifest, verifyPersonalFirewallAttestation, verifyPersonalPolicyProofBundle, verifyPersonalSealEnrollActorPok, verifyPersonalSimulationBalanceDelta, verifyRoleQuorumProof, verifySignedAnnounceTicket, verifyVaultEntitlementTicket, wrapSealedBlobForCloudSync } from "./personal-vault.mjs";
14
+ import { CborTagValue, VerifiedPersonalArcblockJwt, VerifiedPersonalOcapTx, decodeAndVerifyPersonalArcblockJwt, decodeAndVerifyPersonalOcapTx, deriveOcapIdentitiesFromChildPoint, estimateOcapExecutionCostUpperBound, resolveRequiredOcapPolicyTier } from "./ocap-clear-signing.mjs";
15
+ import { DecryptToSteelResult, EmergencySweepSignedTx, GuardianKeypair, SweepChildSpec, decryptGuardianColdShareToSteelWords24, enforceSingleCustodianDecryptPerSession, generateGuardianKeypair, proveColdShardFromSteelWords24, sweepErc20Transfer, sweepEth } from "./offline-ceremony.mjs";
16
+ import { MAX_X402_ACCEPTS_ENTRIES, MAX_X402_CHALLENGE_BYTES, MAX_X402_RETRIES, ParsedX402PaymentChallenge, PolicyProofBundle, X402AgentPaymentFetchOptions, X402EscalationContext, X402EscalationKind, X402HeaderMap, X402PaymentProofPayload, X402PaymentRequirement, X402SyncResponseSnapshot, X402TxExecutionParams, X402_EXACT_EVM_TX_SCHEME, X402_PROTOCOL_VERSION, createX402AgentPaymentFetch, decodeX402PaymentHeader, encodeX402PaymentHeader, parseX402PaymentChallenge } from "./x402-agent-guard.mjs";
17
+ export { ACTOR_KIND_AND_ALG_BYTE, ActorKindAndAlg, ActorSlotPairingBootstrapPackage, AppendOnlyDkgEchoLock, BIP39_ENGLISH_WORDLIST, BIP39_ENGLISH_WORD_TO_INDEX, BIP44_ETH_STANDARD_PATH, BLIND_SLOT_RECORD_BYTES, BSGS_M, BaseOtReceiverState, BaseOtSenderPendingSession, BaseOtSenderState, BaseOtStep1Message, BaseOtStep2Message, Bip39TwentyFourthSiblingEntry, CANONICAL_BIP39_ENGLISH_SHA256_HEX, CLOUD_SYNC_SEALED_BLOB_BYTES, CanaryActivationCert, CanaryChallengeBundle, CanaryChallengePeerApproval, CanonicalPersonalOcapChainGasConfig, CanonicalPersonalVaultPolicy, CborTagValue, ColdBackupDealerInput, ColdBackupPlugin, ColdShardSchnorrPok, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CANARY_CHALLENGE_V1, DST_CANARY_SHARD_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_EMERGENCY_SWEEP_NONCE_V1, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PERSONAL_ANNOUNCE_TICKET_V1, DST_PERSONAL_BASEOT_CTX_V1, DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1, DST_PERSONAL_BLIND_SLOT_TAG_V1, DST_PERSONAL_BLIND_VAULT_TAG_V1, DST_PERSONAL_BLIND_VELOCITY_TAG_V1, DST_PERSONAL_BLOB_AAD_V1, DST_PERSONAL_BLOB_MAGIC, DST_PERSONAL_CHALLENGE_ANNOUNCE_V1, DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1, DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1, DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1, DST_PERSONAL_CHALLENGE_RESEAL_KID_V1, DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1, DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1, DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1, DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1, DST_PERSONAL_CHALLENGE_SIGN_V1, DST_PERSONAL_CHALLENGE_VETO_V1, DST_PERSONAL_CLEAR_PREVIEW_V1, DST_PERSONAL_CLOUD_BLOB_V1, DST_PERSONAL_CLOUD_SYNC_V1, DST_PERSONAL_CLUSTER_HDKG_V1, DST_PERSONAL_COLD_MANIFEST_V1, DST_PERSONAL_DEVICE_AAD_V1, DST_PERSONAL_DEVICE_ENV_V1, DST_PERSONAL_ENTITLEMENT_TICKET_V1, DST_PERSONAL_FIREWALL_ATTESTATION_V1, DST_PERSONAL_GUARDIAN_QUORUM_V1, DST_PERSONAL_PAIR_POP_V1, DST_PERSONAL_PAIR_SHARE_AAD_V1, DST_PERSONAL_PAIR_SHARE_BOX_V1, DST_PERSONAL_POLICY_V1, DST_PERSONAL_PWD_CLIENT_HKDF_V1, DST_PERSONAL_PWD_HSM_HKDF_V1, DST_PERSONAL_ROLE_QUORUM_V1, DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1, DST_PERSONAL_SEAL_KEY_V1, DST_PERSONAL_SEAL_SALT_V1, DST_PERSONAL_SIMULATED_DELTA_V1, DST_PERSONAL_TRANSPORT_AAD_V1, DST_PERSONAL_TRANSPORT_BOX_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DST_VES_BIT_OR_V1, DST_VES_CHUNK_LIN_V1, DecodedSignedEip1559Tx, DecryptToSteelResult, DecryptedGuardianColdShare, DerivedChildKey, DeviceShareEnvelope, DirectBitElGamalVesPlugin, DkgCeremonyConfig, DkgEchoLock, DkgEncryptedShareEnvelope, DkgParticipantSession, DkgRosterEntry, DkgRound1CommitMessage, DkgRound2RevealPayload, DkgRound3EchoMessage, DkgSubsetSelfTestSignature, EIP1559_TX_TYPE_BYTE, ENTITLEMENT_TIER_CODE, ERC20_APPROVE_SELECTOR_HEX, ERC20_TRANSFER_SELECTOR_HEX, ESCAPE_DRILL_MAX_AGE_SECONDS, Eip1559AccessListItem, Eip1559UnsignedTxFields, EmergencySweepSignedTx, EncryptedTargetActorShareBox, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, FirewallCommercialTier, FirewallRiskVerdict, Fn, GadgetMtaPayload, GuardianKeypair, GuardianQuorumProof, HARD_BANNED_PERSONAL_EVM_SELECTORS, HSM_SEALED_BLOB_BYTES, HSM_SEALED_BLOB_CIPHERTEXT_BYTES, HSM_SEALED_BLOB_CIPHERTEXT_OFFSET, HSM_SEALED_BLOB_HEADER_BYTES, HSM_SEALED_BLOB_HEADER_MAC_OFFSET, HSM_SEALED_BLOB_HEADER_WITH_MAC_BYTES, HSM_SEALED_BLOB_IV_OFFSET, HSM_SEALED_BLOB_MAX_POLICY_UTF8_BYTES, HSM_SEALED_BLOB_TAG_OFFSET, HSM_SEALED_BLOB_VERSION, H_scalar, HsmSealedBlobHeaderFields, IdentifiedColdShare, LinearPedersenDleqProof, MAX_ACTIVE_PRESIGN_SESSIONS, MAX_ANNOUNCE_VALIDITY_WINDOW_SEC, MAX_BLIND_RECORDS, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_PERSONAL_CALL_DEPTH, MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS, MAX_PERSONAL_HTTP_BODY_BYTES, MAX_PERSONAL_JSON_DEPTH, MAX_PERSONAL_JWT_TTL_SECONDS, MAX_PERSONAL_JWT_UNSIGNED_BYTES, MAX_PERSONAL_OCAP_CBOR_DEPTH, MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS, MAX_PERSONAL_OCAP_TX_BYTES, MAX_PERSONAL_TX_DATA_BYTES, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MAX_TRAVEL_SESSION_TTL_SECONDS, MAX_X402_ACCEPTS_ENTRIES, MAX_X402_CHALLENGE_BYTES, MAX_X402_RETRIES, MIN_ANNOUNCE_VALIDITY_WINDOW_SEC, MPC_PROTOCOL_VERSION, type MpcAggregatedSignature, MpcChildDerivationSpec, MpcErrorCode, MpcNodeProvisionedKeyRecord, type MpcOnlineSignRequest, type MpcOnlineSignShare, MpcPartyBaseOtChannels, MpcProtocolError, MpcPublicClusterInfo, MpcRootLifecycleState, MpcTweakMode, MtaInstanceKind, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, OcapConsensusAnchor, OfflineSweepItemSpec, OtExtReceiverPendingState, OtExtSenderPendingState, OtExtStep1Message, OtExtStep2Message, OtExtStep3Message, PEDERSEN_H, PEDERSEN_H_COMP33, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PERSONAL_MAX_VELOCITY_UINT128, PERSONAL_PRESIG_TTL_SECONDS, ParsedHsmSealedBlob, ParsedVesRecoveryPackage, ParsedX402PaymentChallenge, PedersenPokProof, PersonalActorChallengeAction, PersonalActorSignature, PersonalAllowedContractRule, PersonalAssetTierLimits, PersonalBlobAadInput, PersonalChildDerivationInput, PersonalClearSigningPreview, PersonalColdRecoveryKitManifest, PersonalColdRecoveryPlatePublicInfo, PersonalCosignerResponderSession, PersonalCosignerTransport, PersonalEvmCallKind, PersonalMpcEoaSigner, PersonalOcapAssetTierLimits, PersonalOcapChainGasConfig, PersonalOnlineSignCosignerRequest, PersonalPolicyProofBundle, PersonalPolicyTier, PersonalPostConditions, PersonalPresignInitRequest, PersonalPresignInitResponse, PersonalPresignStepRequest, PersonalPresignStepResponse, PersonalPreviewCallKind, PersonalRoleRoster, PersonalSealEnrollActorPok, PersonalSignPayloadKind, PersonalSignTxOptions, PersonalSignedEip1559Result, PersonalVaultPolicy, PersonalWakePasswordKdfOptions, PolicyProofBundle, PresignMtaOtStep1Bundle, PresignMtaOtStep2Bundle, PresignMtaOtStep3Bundle, PresignMtaStep4PayloadBundle, PresignPartySession, PresignRound1CommitmentMsg, PresignRound1RevealMsg, PresignRound3BroadcastMsg, PresignRound4BroadcastMsg, PresignaturePublicVerification, PresignatureShareRecord, PrintableManifestCard, QuorumApproverAlg, QuorumApproverMember, QuorumMemberSignatureEntry, RandomBytesFn, type RerandomizedNonceResult, RlpInput, RoleQuorumProof, SECP256K1_G, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P, SECP256K1_ZERO, SchnorrPokProof, Secp256k1Point, SignedAnnounceTicket, SignedFirewallAttestation, SignedOfflineSweepTx, SimulatedBalanceDelta, SweepChildSpec, UNLIMITED_APPROVE_THRESHOLD, VES_BITS_PER_CHUNK, VES_BITS_PER_SHARE, VES_BIT_RECORD_BYTES, VES_CHUNKS_PER_SHARE, VES_GUARDIAN_BUNDLE_BYTES, VES_LINEAR_DLEQ_BYTES, VES_MAX_LIMB_VALUE, VES_MAX_SUMMED_LIMB, VaultEntitlementTicket, VaultEntitlementTier, VerifiedCotReceiverRows, VerifiedCotSenderRows, VerifiedPersonalArcblockJwt, VerifiedPersonalEip1559Tx, VerifiedPersonalOcapTx, VolatilePresignaturePool, WebAuthnVerifyExpectedPolicy, X402AgentPaymentFetchOptions, X402EscalationContext, X402EscalationKind, X402HeaderMap, X402PaymentProofPayload, X402PaymentRequirement, X402SyncResponseSnapshot, X402TxExecutionParams, X402_EXACT_EVM_TX_SCHEME, X402_PROTOCOL_VERSION, actorKindAndAlgToByte, addModN, additiveToShamirSlot1Share, additiveToShamirSlot2Share, aes256EncryptBlock, aes256GcmDecryptDetached, aes256GcmEncryptDetached, aggregateOnlineSignature, aggregateRecoveryPackage, applyAdditiveTweak, applyHsmSlotResplitDelta, assembleCanaryActivationCert, assertAllowedOnlineRole, assertChallengeBundleMatchesManifest, assertNoEip7702Bytes, assertPersonalSlotNotExpired, assertSafeCeremonyId, assertScalarInField, assertScalarNonZero, assertValidX25519PublicKey, base64UrlDecodeBytes, base64UrlEncodeBytes, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bigintToMinimalBytesBE, bootstrapPersonalVaultClient, buildPersonalAnnounceChallengeDigest32, buildPersonalClearSigningPreview, buildPersonalEntitlementApplyChallengeDigest32, buildPersonalPairResplitChallengeDigest32, buildPersonalPresignInitChallengeDigest32, buildPersonalResealKidChallengeDigest32, buildPersonalRevokeSlotChallengeDigest32, buildPersonalSealEnrollChallengeDigest32, buildPersonalSessionLockChallengeDigest32, buildPersonalSessionOpenChallengeDigest32, buildPersonalSignChallengeDigest32, buildPersonalVaultClusterInfo, buildPersonalVetoChallengeDigest32, byteToActorKindAndAlg, bytes16ToU128LE, bytes32ToScalarNonZero, bytes32ToScalarStrict, bytesToBigIntBE, bytesToHex, canonicalizePersonalBlobAadBytes, canonicalizePersonalVaultPolicy, completeActorSlotPairingOnTarget, computeCanaryChallengeDigest32, computeDkgContextHash32, computeDkgSubsetSelfTestDigest32, computeHsmSealedBlobHeaderMac32, computeNonDegenerateActorResplitShare, computePersonalActorChallengeDigest32, computePersonalClearSigningPreviewHash32, computePersonalPolicyHash32, computeRerandomizedNoncePoint, computeSimulatedDeltaCommitment32, computeSubsetBoundPresigId, computeVaultEntitlementTicketDigest32, computeX25519SharedSecret, concatBytes, constantTimeEqual, createActorSlotPairingBootstrap, createColdShardSchnorrPok, createLinearPedersenDleqProof, createNodeColdVesContribution, createOnlineSignShare, createPedersenPok, createPersonalMpcEoaSigner, createPersonalSealEnrollActorPok, createSchnorrPokInBase, createX402AgentPaymentFetch, decodeAndRecoverSignedEip1559Tx, decodeAndVerifyPersonalArcblockJwt, decodeAndVerifyPersonalEip1559Tx, decodeAndVerifyPersonalOcapTx, decodeBip39Words24ToColdShare, decodeErc20ApproveCalldata, decodeErc20TransferCalldata, decodeHsmSealedBlobHeader319, decodeHsmSealedBlobInnerPlaintext3717, decodePointCompressed, decodeX402PaymentHeader, decomposeScalarWithLhlGadget, decryptGuardianColdShareBsgs, decryptGuardianColdShareToSteelWords24, defaultRandomBytes, deriveBip44EthAddressFromWords24, deriveBlindOcapVelocityTag32, deriveBlindSlotTag32, deriveBlindVaultTag32, deriveBlindVelocityTag32, deriveDualPadFromCotRow, deriveGrothShoupRerandScalar, deriveHsmPersonalSealKey32, deriveOcapIdentitiesFromChildPoint, derivePersonalVaultChildKey, derivePersonalWakePasswordKeys, deriveRoleBoundChild, deriveRuleBoundChild, deriveUntweakedChild, ecrecoverEthAddress, eklundhTranspose128x1024, encodeColdShareToBip39Words24, encodeErc20ApproveCalldata, encodeErc20TransferCalldata, encodeHsmSealedBlobHeader319, encodeHsmSealedBlobInnerPlaintext3717, encodePointCompressed, encodeSignedEip1559Tx, encodeUnsignedEip1559Tx, encodeX402PaymentHeader, enforceSingleCustodianDecryptPerSession, enumerateCombinations, enumerateValid24thBip39Siblings, estimateOcapExecutionCostUpperBound, evaluateConsumedPresigShareWithRerand, evaluateFeldmanCommitments, evaluatePolynomialModN, expandColumnPrgAes256Ctr, expandKos15ChiWeights, exportPrintableManifestCard, gadgetMtaReceiverVerifyAndFinish, gadgetMtaSenderCreateMessage, generateGuardianKeypair, getGadgetVector768, gf128Mul, guardianIndexToPlateLabel, hashTranscriptSha256, hexToBytes, identifyColdShareIndexViaFeldman, initiateActorSlotResplit, invModN, isAgentActorKind, lagrangeCoefficientAtZero, lengthPrefixedEncode, modN, mulBaseG, mulModN, mulPoint, negModN, normalizeActorPublicKeyToPadded65, normalizeCanonicalOcapTokenKey, normalizeHexBytes, normalizeMaxTokenOutflowsCaps, normalizeOcapAddressOrEth, normalizeSortedSubset, openHsmInboundTransportBox, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, parseHsmSealedBlobHeader, parseRecoveryPackageBytes, parseStrictEthAddress, parseX402PaymentChallenge, pedersenCommit, pointToEthAddress, promoteNodeRecordAfterSelfTests, proveColdShardFromSteelWords24, recombineGadgetBitsModN, recoverPersonalVaultRootOffline, resolveRequiredOcapPolicyTier, resolveRequiredPolicyTier, rlpDecode, rlpEncode, runPersonalClientPresignWithTransport, sampleScalarNonZero, scalarToBytes32, sealDeviceShareEnvelope, sealHsmInboundTransportBox, secp256k1, signAnnounceTicket, signCanaryChallengeApproval, signGuardianQuorumApproval, signPersonalActorChallenge, signPersonalFirewallAttestation, signPersonalVaultRecoverySweepOffline, signRoleQuorumApproval, signVaultEntitlementTicket, solveDiscreteLogBsgs, sortedSubsetBytes, subModN, subsetsEqual, sweepErc20Transfer, sweepEth, toEip55ChecksumAddress, u128ToBytes16LE, u16be, u32be, u64be, u8, unsealDeviceShareEnvelope, unwrapSealedBlobFromCloudSync, utf8Bytes, validateActorPublicKeyPadded65, validateAndComputeDkgContext, validatePrintableManifestCard, verifyActorSlotPairingBootstrap, verifyAndDeriveRequestChildKey, verifyCanaryActivationCert, verifyCanaryChallengeBundle, verifyColdShardSchnorrPok, verifyGuardianQuorumProof, verifyLinearPedersenDleqProof, verifyManifestAgainstDkgConfig, verifyManifestAgainstRecoveryPackage, verifyNodeColdVesContribution, verifyOnlineSignShare, verifyPedersenPok, verifyPersonalActorSignature, verifyPersonalAdditiveSplitMatchesRoot, verifyPersonalColdRecoveryKitManifest, verifyPersonalFirewallAttestation, verifyPersonalPolicyProofBundle, verifyPersonalSealEnrollActorPok, verifyPersonalSimulationBalanceDelta, verifyRecoveryPackage, verifyRoleQuorumProof, verifySchnorrPokInBase, verifySignedAnnounceTicket, verifyVaultEntitlementTicket, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows, wrapSealedBlobForCloudSync, zeroizeBytes };
package/esm/index.mjs CHANGED
@@ -1,10 +1,18 @@
1
- import { BSGS_M, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MPC_PROTOCOL_VERSION, MpcProtocolError, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P } from "./constants.mjs";
1
+ import { BLIND_SLOT_RECORD_BYTES, BSGS_M, CLOUD_SYNC_SEALED_BLOB_BYTES, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CANARY_CHALLENGE_V1, DST_CANARY_SHARD_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_EMERGENCY_SWEEP_NONCE_V1, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PERSONAL_ANNOUNCE_TICKET_V1, DST_PERSONAL_BASEOT_CTX_V1, DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1, DST_PERSONAL_BLIND_SLOT_TAG_V1, DST_PERSONAL_BLIND_VAULT_TAG_V1, DST_PERSONAL_BLIND_VELOCITY_TAG_V1, DST_PERSONAL_BLOB_AAD_V1, DST_PERSONAL_BLOB_MAGIC, DST_PERSONAL_CHALLENGE_ANNOUNCE_V1, DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1, DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1, DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1, DST_PERSONAL_CHALLENGE_RESEAL_KID_V1, DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1, DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1, DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1, DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1, DST_PERSONAL_CHALLENGE_SIGN_V1, DST_PERSONAL_CHALLENGE_VETO_V1, DST_PERSONAL_CLEAR_PREVIEW_V1, DST_PERSONAL_CLOUD_BLOB_V1, DST_PERSONAL_CLOUD_SYNC_V1, DST_PERSONAL_CLUSTER_HDKG_V1, DST_PERSONAL_COLD_MANIFEST_V1, DST_PERSONAL_DEVICE_AAD_V1, DST_PERSONAL_DEVICE_ENV_V1, DST_PERSONAL_ENTITLEMENT_TICKET_V1, DST_PERSONAL_FIREWALL_ATTESTATION_V1, DST_PERSONAL_GUARDIAN_QUORUM_V1, DST_PERSONAL_PAIR_POP_V1, DST_PERSONAL_PAIR_SHARE_AAD_V1, DST_PERSONAL_PAIR_SHARE_BOX_V1, DST_PERSONAL_POLICY_V1, DST_PERSONAL_PWD_CLIENT_HKDF_V1, DST_PERSONAL_PWD_HSM_HKDF_V1, DST_PERSONAL_ROLE_QUORUM_V1, DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1, DST_PERSONAL_SEAL_KEY_V1, DST_PERSONAL_SEAL_SALT_V1, DST_PERSONAL_SIMULATED_DELTA_V1, DST_PERSONAL_TRANSPORT_AAD_V1, DST_PERSONAL_TRANSPORT_BOX_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DST_VES_BIT_OR_V1, DST_VES_CHUNK_LIN_V1, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, HSM_SEALED_BLOB_BYTES, MAX_ACTIVE_PRESIGN_SESSIONS, MAX_BLIND_RECORDS, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_PERSONAL_CALL_DEPTH, MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS, MAX_PERSONAL_HTTP_BODY_BYTES, MAX_PERSONAL_JSON_DEPTH, MAX_PERSONAL_JWT_TTL_SECONDS, MAX_PERSONAL_JWT_UNSIGNED_BYTES, MAX_PERSONAL_OCAP_CBOR_DEPTH, MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS, MAX_PERSONAL_OCAP_TX_BYTES, MAX_PERSONAL_TX_DATA_BYTES, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MAX_TRAVEL_SESSION_TTL_SECONDS, MPC_PROTOCOL_VERSION, MpcProtocolError, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PERSONAL_PRESIG_TTL_SECONDS, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P } from "./constants.mjs";
2
2
  import { Fn, H_scalar, PEDERSEN_H, PEDERSEN_H_COMP33, SECP256K1_G, SECP256K1_ZERO, addModN, assertScalarInField, assertScalarNonZero, assertValidX25519PublicKey, bytes32ToScalarNonZero, bytes32ToScalarStrict, bytesToBigIntBE, bytesToHex, computeX25519SharedSecret, concatBytes, constantTimeEqual, createLinearPedersenDleqProof, createPedersenPok, createSchnorrPokInBase, decodePointCompressed, defaultRandomBytes, encodePointCompressed, enumerateCombinations, evaluateFeldmanCommitments, evaluatePolynomialModN, hashTranscriptSha256, hexToBytes, invModN, lagrangeCoefficientAtZero, lengthPrefixedEncode, modN, mulBaseG, mulModN, mulPoint, negModN, normalizeHexBytes, normalizeSortedSubset, pedersenCommit, sampleScalarNonZero, scalarToBytes32, secp256k1, sortedSubsetBytes, subModN, subsetsEqual, u16be, u32be, u64be, u8, utf8Bytes, verifyLinearPedersenDleqProof, verifyPedersenPok, verifySchnorrPokInBase, zeroizeBytes } from "./secp256k1-scalar.mjs";
3
+ import { BIP39_ENGLISH_WORDLIST, BIP39_ENGLISH_WORD_TO_INDEX, CANONICAL_BIP39_ENGLISH_SHA256_HEX } from "./bip39-english-wordlist.mjs";
3
4
  import { applyAdditiveTweak, assertAllowedOnlineRole, deriveRoleBoundChild, deriveRuleBoundChild, deriveUntweakedChild, ecrecoverEthAddress, parseStrictEthAddress, pointToEthAddress, toEip55ChecksumAddress } from "./tweak.mjs";
4
5
  import { AppendOnlyDkgEchoLock, DkgParticipantSession, assertSafeCeremonyId, computeDkgContextHash32, computeDkgSubsetSelfTestDigest32, promoteNodeRecordAfterSelfTests, validateAndComputeDkgContext } from "./dkg.mjs";
5
- import { baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bytes16ToU128LE, eklundhTranspose128x1024, expandKos15ChiWeights, gf128Mul, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, u128ToBytes16LE, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows } from "./ot.mjs";
6
+ import { aes256EncryptBlock, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bytes16ToU128LE, eklundhTranspose128x1024, expandColumnPrgAes256Ctr, expandKos15ChiWeights, gf128Mul, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, u128ToBytes16LE, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows } from "./ot.mjs";
6
7
  import { decomposeScalarWithLhlGadget, deriveDualPadFromCotRow, gadgetMtaReceiverVerifyAndFinish, gadgetMtaSenderCreateMessage, getGadgetVector768, recombineGadgetBitsModN } from "./mta.mjs";
7
8
  import { PresignPartySession, VolatilePresignaturePool, computeSubsetBoundPresigId } from "./presign.mjs";
8
9
  import { aggregateOnlineSignature, computeRerandomizedNoncePoint, createOnlineSignShare, deriveGrothShoupRerandScalar, evaluateConsumedPresigShareWithRerand, verifyAndDeriveRequestChildKey, verifyOnlineSignShare } from "./sign.mjs";
10
+ import { BIP44_ETH_STANDARD_PATH, decodeBip39Words24ToColdShare, deriveBip44EthAddressFromWords24, encodeColdShareToBip39Words24, enumerateValid24thBip39Siblings, guardianIndexToPlateLabel, identifyColdShareIndexViaFeldman } from "./steel-mnemonic.mjs";
11
+ import { DirectBitElGamalVesPlugin, VES_BITS_PER_CHUNK, VES_BITS_PER_SHARE, VES_BIT_RECORD_BYTES, VES_CHUNKS_PER_SHARE, VES_GUARDIAN_BUNDLE_BYTES, VES_LINEAR_DLEQ_BYTES, VES_MAX_LIMB_VALUE, VES_MAX_SUMMED_LIMB, aggregateRecoveryPackage, assembleCanaryActivationCert, assertChallengeBundleMatchesManifest, computeCanaryChallengeDigest32, createColdShardSchnorrPok, createNodeColdVesContribution, decryptGuardianColdShareBsgs, exportPrintableManifestCard, parseRecoveryPackageBytes, signCanaryChallengeApproval, solveDiscreteLogBsgs, validatePrintableManifestCard, verifyCanaryActivationCert, verifyCanaryChallengeBundle, verifyColdShardSchnorrPok, verifyManifestAgainstDkgConfig, verifyManifestAgainstRecoveryPackage, verifyNodeColdVesContribution, verifyRecoveryPackage } from "./ves-backup.mjs";
12
+ import { EIP1559_TX_TYPE_BYTE, ERC20_TRANSFER_SELECTOR_HEX, bigintToMinimalBytesBE, decodeAndRecoverSignedEip1559Tx, decodeErc20TransferCalldata, encodeErc20TransferCalldata, encodeSignedEip1559Tx, encodeUnsignedEip1559Tx, rlpDecode, rlpEncode } from "./rlp-eip1559.mjs";
13
+ import { ACTOR_KIND_AND_ALG_BYTE, ENTITLEMENT_TIER_CODE, ERC20_APPROVE_SELECTOR_HEX, HARD_BANNED_PERSONAL_EVM_SELECTORS, HSM_SEALED_BLOB_CIPHERTEXT_BYTES, HSM_SEALED_BLOB_CIPHERTEXT_OFFSET, HSM_SEALED_BLOB_HEADER_BYTES, HSM_SEALED_BLOB_HEADER_MAC_OFFSET, HSM_SEALED_BLOB_HEADER_WITH_MAC_BYTES, HSM_SEALED_BLOB_IV_OFFSET, HSM_SEALED_BLOB_MAX_POLICY_UTF8_BYTES, HSM_SEALED_BLOB_TAG_OFFSET, HSM_SEALED_BLOB_VERSION, MAX_ANNOUNCE_VALIDITY_WINDOW_SEC, MIN_ANNOUNCE_VALIDITY_WINDOW_SEC, PERSONAL_MAX_VELOCITY_UINT128, PersonalCosignerResponderSession, UNLIMITED_APPROVE_THRESHOLD, actorKindAndAlgToByte, additiveToShamirSlot1Share, additiveToShamirSlot2Share, aes256GcmDecryptDetached, aes256GcmEncryptDetached, applyHsmSlotResplitDelta, assertNoEip7702Bytes, assertPersonalSlotNotExpired, base64UrlDecodeBytes, base64UrlEncodeBytes, bootstrapPersonalVaultClient, buildPersonalAnnounceChallengeDigest32, buildPersonalClearSigningPreview, buildPersonalEntitlementApplyChallengeDigest32, buildPersonalPairResplitChallengeDigest32, buildPersonalPresignInitChallengeDigest32, buildPersonalResealKidChallengeDigest32, buildPersonalRevokeSlotChallengeDigest32, buildPersonalSealEnrollChallengeDigest32, buildPersonalSessionLockChallengeDigest32, buildPersonalSessionOpenChallengeDigest32, buildPersonalSignChallengeDigest32, buildPersonalVaultClusterInfo, buildPersonalVetoChallengeDigest32, byteToActorKindAndAlg, canonicalizePersonalBlobAadBytes, canonicalizePersonalVaultPolicy, completeActorSlotPairingOnTarget, computeHsmSealedBlobHeaderMac32, computeNonDegenerateActorResplitShare, computePersonalActorChallengeDigest32, computePersonalClearSigningPreviewHash32, computePersonalPolicyHash32, computeSimulatedDeltaCommitment32, computeVaultEntitlementTicketDigest32, createActorSlotPairingBootstrap, createPersonalMpcEoaSigner, createPersonalSealEnrollActorPok, decodeAndVerifyPersonalEip1559Tx, decodeErc20ApproveCalldata, decodeHsmSealedBlobHeader319, decodeHsmSealedBlobInnerPlaintext3717, deriveBlindOcapVelocityTag32, deriveBlindSlotTag32, deriveBlindVaultTag32, deriveBlindVelocityTag32, deriveHsmPersonalSealKey32, derivePersonalVaultChildKey, derivePersonalWakePasswordKeys, encodeErc20ApproveCalldata, encodeHsmSealedBlobHeader319, encodeHsmSealedBlobInnerPlaintext3717, initiateActorSlotResplit, isAgentActorKind, normalizeActorPublicKeyToPadded65, normalizeCanonicalOcapTokenKey, normalizeMaxTokenOutflowsCaps, normalizeOcapAddressOrEth, openHsmInboundTransportBox, parseHsmSealedBlobHeader, recoverPersonalVaultRootOffline, resolveRequiredPolicyTier, runPersonalClientPresignWithTransport, sealDeviceShareEnvelope, sealHsmInboundTransportBox, signAnnounceTicket, signGuardianQuorumApproval, signPersonalActorChallenge, signPersonalFirewallAttestation, signPersonalVaultRecoverySweepOffline, signRoleQuorumApproval, signVaultEntitlementTicket, unsealDeviceShareEnvelope, unwrapSealedBlobFromCloudSync, validateActorPublicKeyPadded65, verifyActorSlotPairingBootstrap, verifyGuardianQuorumProof, verifyPersonalActorSignature, verifyPersonalAdditiveSplitMatchesRoot, verifyPersonalColdRecoveryKitManifest, verifyPersonalFirewallAttestation, verifyPersonalPolicyProofBundle, verifyPersonalSealEnrollActorPok, verifyPersonalSimulationBalanceDelta, verifyRoleQuorumProof, verifySignedAnnounceTicket, verifyVaultEntitlementTicket, wrapSealedBlobForCloudSync } from "./personal-vault.mjs";
14
+ import { CborTagValue, decodeAndVerifyPersonalArcblockJwt, decodeAndVerifyPersonalOcapTx, deriveOcapIdentitiesFromChildPoint, estimateOcapExecutionCostUpperBound, resolveRequiredOcapPolicyTier } from "./ocap-clear-signing.mjs";
15
+ import { decryptGuardianColdShareToSteelWords24, enforceSingleCustodianDecryptPerSession, generateGuardianKeypair, proveColdShardFromSteelWords24, sweepErc20Transfer, sweepEth } from "./offline-ceremony.mjs";
16
+ import { MAX_X402_ACCEPTS_ENTRIES, MAX_X402_CHALLENGE_BYTES, MAX_X402_RETRIES, X402_EXACT_EVM_TX_SCHEME, X402_PROTOCOL_VERSION, createX402AgentPaymentFetch, decodeX402PaymentHeader, encodeX402PaymentHeader, parseX402PaymentChallenge } from "./x402-agent-guard.mjs";
9
17
 
10
- export { AppendOnlyDkgEchoLock, BSGS_M, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DkgParticipantSession, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, Fn, H_scalar, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MPC_PROTOCOL_VERSION, MpcProtocolError, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H, PEDERSEN_H_COMP33, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PresignPartySession, SECP256K1_G, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P, SECP256K1_ZERO, VolatilePresignaturePool, addModN, aggregateOnlineSignature, applyAdditiveTweak, assertAllowedOnlineRole, assertSafeCeremonyId, assertScalarInField, assertScalarNonZero, assertValidX25519PublicKey, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bytes16ToU128LE, bytes32ToScalarNonZero, bytes32ToScalarStrict, bytesToBigIntBE, bytesToHex, computeDkgContextHash32, computeDkgSubsetSelfTestDigest32, computeRerandomizedNoncePoint, computeSubsetBoundPresigId, computeX25519SharedSecret, concatBytes, constantTimeEqual, createLinearPedersenDleqProof, createOnlineSignShare, createPedersenPok, createSchnorrPokInBase, decodePointCompressed, decomposeScalarWithLhlGadget, defaultRandomBytes, deriveDualPadFromCotRow, deriveGrothShoupRerandScalar, deriveRoleBoundChild, deriveRuleBoundChild, deriveUntweakedChild, ecrecoverEthAddress, eklundhTranspose128x1024, encodePointCompressed, enumerateCombinations, evaluateConsumedPresigShareWithRerand, evaluateFeldmanCommitments, evaluatePolynomialModN, expandKos15ChiWeights, gadgetMtaReceiverVerifyAndFinish, gadgetMtaSenderCreateMessage, getGadgetVector768, gf128Mul, hashTranscriptSha256, hexToBytes, invModN, lagrangeCoefficientAtZero, lengthPrefixedEncode, modN, mulBaseG, mulModN, mulPoint, negModN, normalizeHexBytes, normalizeSortedSubset, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, parseStrictEthAddress, pedersenCommit, pointToEthAddress, promoteNodeRecordAfterSelfTests, recombineGadgetBitsModN, sampleScalarNonZero, scalarToBytes32, secp256k1, sortedSubsetBytes, subModN, subsetsEqual, toEip55ChecksumAddress, u128ToBytes16LE, u16be, u32be, u64be, u8, utf8Bytes, validateAndComputeDkgContext, verifyAndDeriveRequestChildKey, verifyLinearPedersenDleqProof, verifyOnlineSignShare, verifyPedersenPok, verifySchnorrPokInBase, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows, zeroizeBytes };
18
+ export { ACTOR_KIND_AND_ALG_BYTE, AppendOnlyDkgEchoLock, BIP39_ENGLISH_WORDLIST, BIP39_ENGLISH_WORD_TO_INDEX, BIP44_ETH_STANDARD_PATH, BLIND_SLOT_RECORD_BYTES, BSGS_M, CANONICAL_BIP39_ENGLISH_SHA256_HEX, CLOUD_SYNC_SEALED_BLOB_BYTES, CborTagValue, DEFAULT_COLD_GUARDIANS, DEFAULT_COLD_THRESHOLD, DEFAULT_ONLINE_PARTIES, DEFAULT_ONLINE_THRESHOLD, DST_BASEOT_KEY_V1, DST_BASEOT_S_POK_V1, DST_CANARY_CHALLENGE_V1, DST_CANARY_SHARD_POK_V1, DST_CHILD_TWEAK_V1, DST_COT_ROW_V1, DST_DKG_COM_V2, DST_DKG_CTX_V2, DST_DKG_ECHO_V2, DST_DKG_POK_V2, DST_DKG_SELFTEST_V2, DST_DKG_SHARE_AAD_V2, DST_DKG_STEP1_AUTH_V1, DST_DKG_TRANSCRIPT_V2, DST_DKG_X25519_HKDF_V2, DST_EMERGENCY_SWEEP_NONCE_V1, DST_KOS15_CHI_V1, DST_LHL_GADGET_V1, DST_MTA_ETA_V1, DST_OT_CTR_IV_V1, DST_PERSONAL_ANNOUNCE_TICKET_V1, DST_PERSONAL_BASEOT_CTX_V1, DST_PERSONAL_BLIND_OCAP_VELOCITY_TAG_V1, DST_PERSONAL_BLIND_SLOT_TAG_V1, DST_PERSONAL_BLIND_VAULT_TAG_V1, DST_PERSONAL_BLIND_VELOCITY_TAG_V1, DST_PERSONAL_BLOB_AAD_V1, DST_PERSONAL_BLOB_MAGIC, DST_PERSONAL_CHALLENGE_ANNOUNCE_V1, DST_PERSONAL_CHALLENGE_ENTITLEMENT_APPLY_V1, DST_PERSONAL_CHALLENGE_PAIR_RESPLIT_V1, DST_PERSONAL_CHALLENGE_PRESIGN_INIT_V1, DST_PERSONAL_CHALLENGE_RESEAL_KID_V1, DST_PERSONAL_CHALLENGE_REVOKE_SLOT_V1, DST_PERSONAL_CHALLENGE_SEAL_ENROLL_V1, DST_PERSONAL_CHALLENGE_SESSION_LOCK_V1, DST_PERSONAL_CHALLENGE_SESSION_OPEN_V1, DST_PERSONAL_CHALLENGE_SIGN_V1, DST_PERSONAL_CHALLENGE_VETO_V1, DST_PERSONAL_CLEAR_PREVIEW_V1, DST_PERSONAL_CLOUD_BLOB_V1, DST_PERSONAL_CLOUD_SYNC_V1, DST_PERSONAL_CLUSTER_HDKG_V1, DST_PERSONAL_COLD_MANIFEST_V1, DST_PERSONAL_DEVICE_AAD_V1, DST_PERSONAL_DEVICE_ENV_V1, DST_PERSONAL_ENTITLEMENT_TICKET_V1, DST_PERSONAL_FIREWALL_ATTESTATION_V1, DST_PERSONAL_GUARDIAN_QUORUM_V1, DST_PERSONAL_PAIR_POP_V1, DST_PERSONAL_PAIR_SHARE_AAD_V1, DST_PERSONAL_PAIR_SHARE_BOX_V1, DST_PERSONAL_POLICY_V1, DST_PERSONAL_PWD_CLIENT_HKDF_V1, DST_PERSONAL_PWD_HSM_HKDF_V1, DST_PERSONAL_ROLE_QUORUM_V1, DST_PERSONAL_SEAL_ENROLL_ACTOR_POK_V1, DST_PERSONAL_SEAL_KEY_V1, DST_PERSONAL_SEAL_SALT_V1, DST_PERSONAL_SIMULATED_DELTA_V1, DST_PERSONAL_TRANSPORT_AAD_V1, DST_PERSONAL_TRANSPORT_BOX_V1, DST_PRESIG_COM_V1, DST_PRESIG_ID_V1, DST_PRESIG_PI_LIN_K_V1, DST_PRESIG_PI_POK_Z_V1, DST_PRESIG_POK_B_V1, DST_PRESIG_POK_CK_V1, DST_PRESIG_POK_GAMMA_V1, DST_PRESIG_RERAND_V1, DST_PRESIG_ZETA_HKDF_V1, DST_PRESIG_ZETA_V1, DST_RULE_TWEAK_V1, DST_VES_BIT_OR_V1, DST_VES_CHUNK_LIN_V1, DirectBitElGamalVesPlugin, DkgParticipantSession, EIP1559_TX_TYPE_BYTE, ENTITLEMENT_TIER_CODE, ERC20_APPROVE_SELECTOR_HEX, ERC20_TRANSFER_SELECTOR_HEX, ESCAPE_DRILL_MAX_AGE_SECONDS, FORBIDDEN_ONLINE_ROLE_ESCAPE_CANARY, Fn, HARD_BANNED_PERSONAL_EVM_SELECTORS, HSM_SEALED_BLOB_BYTES, HSM_SEALED_BLOB_CIPHERTEXT_BYTES, HSM_SEALED_BLOB_CIPHERTEXT_OFFSET, HSM_SEALED_BLOB_HEADER_BYTES, HSM_SEALED_BLOB_HEADER_MAC_OFFSET, HSM_SEALED_BLOB_HEADER_WITH_MAC_BYTES, HSM_SEALED_BLOB_IV_OFFSET, HSM_SEALED_BLOB_MAX_POLICY_UTF8_BYTES, HSM_SEALED_BLOB_TAG_OFFSET, HSM_SEALED_BLOB_VERSION, H_scalar, MAX_ACTIVE_PRESIGN_SESSIONS, MAX_ANNOUNCE_VALIDITY_WINDOW_SEC, MAX_BLIND_RECORDS, MAX_MPC_CLUSTER_NODES, MAX_MPC_PEER_MESSAGE_BYTES, MAX_MPC_SIGN_REQUEST_BYTES, MAX_ON_DEMAND_SILENCE_SECONDS, MAX_PERSONAL_CALL_DEPTH, MAX_PERSONAL_FIREWALL_ATTESTATION_TTL_SECONDS, MAX_PERSONAL_HTTP_BODY_BYTES, MAX_PERSONAL_JSON_DEPTH, MAX_PERSONAL_JWT_TTL_SECONDS, MAX_PERSONAL_JWT_UNSIGNED_BYTES, MAX_PERSONAL_OCAP_CBOR_DEPTH, MAX_PERSONAL_OCAP_DELEGATE_TTL_SECONDS, MAX_PERSONAL_OCAP_TX_BYTES, MAX_PERSONAL_TX_DATA_BYTES, MAX_RECOVERY_PACKAGE_BYTES, MAX_RULE_DAG_NODES, MAX_RULE_YAML_BYTES, MAX_TRAVEL_SESSION_TTL_SECONDS, MAX_X402_ACCEPTS_ENTRIES, MAX_X402_CHALLENGE_BYTES, MAX_X402_RETRIES, MIN_ANNOUNCE_VALIDITY_WINDOW_SEC, MPC_PROTOCOL_VERSION, MpcProtocolError, OT_BASE_PARTIAL_BITS, OT_COLUMN_BYTES, OT_EXTENSION_ROWS, OT_GADGET_BITS, OT_KAPPA_BITS, OT_KAPPA_BYTES, OT_LHL_EXTRA_BITS, OT_SACRIFICE_BITS, PEDERSEN_H, PEDERSEN_H_COMP33, PEDERSEN_H_COMPRESSED_HEX, PEDERSEN_H_DST, PEDERSEN_H_MESSAGE, PERSONAL_MAX_VELOCITY_UINT128, PERSONAL_PRESIG_TTL_SECONDS, PersonalCosignerResponderSession, PresignPartySession, SECP256K1_G, SECP256K1_HALF_N, SECP256K1_N, SECP256K1_P, SECP256K1_ZERO, UNLIMITED_APPROVE_THRESHOLD, VES_BITS_PER_CHUNK, VES_BITS_PER_SHARE, VES_BIT_RECORD_BYTES, VES_CHUNKS_PER_SHARE, VES_GUARDIAN_BUNDLE_BYTES, VES_LINEAR_DLEQ_BYTES, VES_MAX_LIMB_VALUE, VES_MAX_SUMMED_LIMB, VolatilePresignaturePool, X402_EXACT_EVM_TX_SCHEME, X402_PROTOCOL_VERSION, actorKindAndAlgToByte, addModN, additiveToShamirSlot1Share, additiveToShamirSlot2Share, aes256EncryptBlock, aes256GcmDecryptDetached, aes256GcmEncryptDetached, aggregateOnlineSignature, aggregateRecoveryPackage, applyAdditiveTweak, applyHsmSlotResplitDelta, assembleCanaryActivationCert, assertAllowedOnlineRole, assertChallengeBundleMatchesManifest, assertNoEip7702Bytes, assertPersonalSlotNotExpired, assertSafeCeremonyId, assertScalarInField, assertScalarNonZero, assertValidX25519PublicKey, base64UrlDecodeBytes, base64UrlEncodeBytes, baseOtReceiverStep2, baseOtSenderStep1, baseOtSenderStep3, bigintToMinimalBytesBE, bootstrapPersonalVaultClient, buildPersonalAnnounceChallengeDigest32, buildPersonalClearSigningPreview, buildPersonalEntitlementApplyChallengeDigest32, buildPersonalPairResplitChallengeDigest32, buildPersonalPresignInitChallengeDigest32, buildPersonalResealKidChallengeDigest32, buildPersonalRevokeSlotChallengeDigest32, buildPersonalSealEnrollChallengeDigest32, buildPersonalSessionLockChallengeDigest32, buildPersonalSessionOpenChallengeDigest32, buildPersonalSignChallengeDigest32, buildPersonalVaultClusterInfo, buildPersonalVetoChallengeDigest32, byteToActorKindAndAlg, bytes16ToU128LE, bytes32ToScalarNonZero, bytes32ToScalarStrict, bytesToBigIntBE, bytesToHex, canonicalizePersonalBlobAadBytes, canonicalizePersonalVaultPolicy, completeActorSlotPairingOnTarget, computeCanaryChallengeDigest32, computeDkgContextHash32, computeDkgSubsetSelfTestDigest32, computeHsmSealedBlobHeaderMac32, computeNonDegenerateActorResplitShare, computePersonalActorChallengeDigest32, computePersonalClearSigningPreviewHash32, computePersonalPolicyHash32, computeRerandomizedNoncePoint, computeSimulatedDeltaCommitment32, computeSubsetBoundPresigId, computeVaultEntitlementTicketDigest32, computeX25519SharedSecret, concatBytes, constantTimeEqual, createActorSlotPairingBootstrap, createColdShardSchnorrPok, createLinearPedersenDleqProof, createNodeColdVesContribution, createOnlineSignShare, createPedersenPok, createPersonalMpcEoaSigner, createPersonalSealEnrollActorPok, createSchnorrPokInBase, createX402AgentPaymentFetch, decodeAndRecoverSignedEip1559Tx, decodeAndVerifyPersonalArcblockJwt, decodeAndVerifyPersonalEip1559Tx, decodeAndVerifyPersonalOcapTx, decodeBip39Words24ToColdShare, decodeErc20ApproveCalldata, decodeErc20TransferCalldata, decodeHsmSealedBlobHeader319, decodeHsmSealedBlobInnerPlaintext3717, decodePointCompressed, decodeX402PaymentHeader, decomposeScalarWithLhlGadget, decryptGuardianColdShareBsgs, decryptGuardianColdShareToSteelWords24, defaultRandomBytes, deriveBip44EthAddressFromWords24, deriveBlindOcapVelocityTag32, deriveBlindSlotTag32, deriveBlindVaultTag32, deriveBlindVelocityTag32, deriveDualPadFromCotRow, deriveGrothShoupRerandScalar, deriveHsmPersonalSealKey32, deriveOcapIdentitiesFromChildPoint, derivePersonalVaultChildKey, derivePersonalWakePasswordKeys, deriveRoleBoundChild, deriveRuleBoundChild, deriveUntweakedChild, ecrecoverEthAddress, eklundhTranspose128x1024, encodeColdShareToBip39Words24, encodeErc20ApproveCalldata, encodeErc20TransferCalldata, encodeHsmSealedBlobHeader319, encodeHsmSealedBlobInnerPlaintext3717, encodePointCompressed, encodeSignedEip1559Tx, encodeUnsignedEip1559Tx, encodeX402PaymentHeader, enforceSingleCustodianDecryptPerSession, enumerateCombinations, enumerateValid24thBip39Siblings, estimateOcapExecutionCostUpperBound, evaluateConsumedPresigShareWithRerand, evaluateFeldmanCommitments, evaluatePolynomialModN, expandColumnPrgAes256Ctr, expandKos15ChiWeights, exportPrintableManifestCard, gadgetMtaReceiverVerifyAndFinish, gadgetMtaSenderCreateMessage, generateGuardianKeypair, getGadgetVector768, gf128Mul, guardianIndexToPlateLabel, hashTranscriptSha256, hexToBytes, identifyColdShareIndexViaFeldman, initiateActorSlotResplit, invModN, isAgentActorKind, lagrangeCoefficientAtZero, lengthPrefixedEncode, modN, mulBaseG, mulModN, mulPoint, negModN, normalizeActorPublicKeyToPadded65, normalizeCanonicalOcapTokenKey, normalizeHexBytes, normalizeMaxTokenOutflowsCaps, normalizeOcapAddressOrEth, normalizeSortedSubset, openHsmInboundTransportBox, otExtendReceiverStep1, otExtendReceiverStep3, otExtendSenderStep2, otExtendSenderStep4VerifyBeforePads, parseHsmSealedBlobHeader, parseRecoveryPackageBytes, parseStrictEthAddress, parseX402PaymentChallenge, pedersenCommit, pointToEthAddress, promoteNodeRecordAfterSelfTests, proveColdShardFromSteelWords24, recombineGadgetBitsModN, recoverPersonalVaultRootOffline, resolveRequiredOcapPolicyTier, resolveRequiredPolicyTier, rlpDecode, rlpEncode, runPersonalClientPresignWithTransport, sampleScalarNonZero, scalarToBytes32, sealDeviceShareEnvelope, sealHsmInboundTransportBox, secp256k1, signAnnounceTicket, signCanaryChallengeApproval, signGuardianQuorumApproval, signPersonalActorChallenge, signPersonalFirewallAttestation, signPersonalVaultRecoverySweepOffline, signRoleQuorumApproval, signVaultEntitlementTicket, solveDiscreteLogBsgs, sortedSubsetBytes, subModN, subsetsEqual, sweepErc20Transfer, sweepEth, toEip55ChecksumAddress, u128ToBytes16LE, u16be, u32be, u64be, u8, unsealDeviceShareEnvelope, unwrapSealedBlobFromCloudSync, utf8Bytes, validateActorPublicKeyPadded65, validateAndComputeDkgContext, validatePrintableManifestCard, verifyActorSlotPairingBootstrap, verifyAndDeriveRequestChildKey, verifyCanaryActivationCert, verifyCanaryChallengeBundle, verifyColdShardSchnorrPok, verifyGuardianQuorumProof, verifyLinearPedersenDleqProof, verifyManifestAgainstDkgConfig, verifyManifestAgainstRecoveryPackage, verifyNodeColdVesContribution, verifyOnlineSignShare, verifyPedersenPok, verifyPersonalActorSignature, verifyPersonalAdditiveSplitMatchesRoot, verifyPersonalColdRecoveryKitManifest, verifyPersonalFirewallAttestation, verifyPersonalPolicyProofBundle, verifyPersonalSealEnrollActorPok, verifyPersonalSimulationBalanceDelta, verifyRecoveryPackage, verifyRoleQuorumProof, verifySchnorrPokInBase, verifySignedAnnounceTicket, verifyVaultEntitlementTicket, wipeBaseOtReceiverState, wipeBaseOtSenderState, wipeVerifiedCotReceiverRows, wipeVerifiedCotSenderRows, wrapSealedBlobForCloudSync, zeroizeBytes };
@@ -0,0 +1,125 @@
1
+ import { CanonicalPersonalOcapChainGasConfig, CanonicalPersonalVaultPolicy, PersonalClearSigningPreview, PersonalOcapChainGasConfig, PersonalPolicyTier, PersonalVaultPolicy } from "./personal-vault.mjs";
2
+
3
+ //#region src/ocap-clear-signing.d.ts
4
+
5
+ /**
6
+ * Derives the canonical OCAP `SECP256K1` (`ROLE_ACCOUNT = 0`, `KeyType.SECP256K1 = 1`, `HashType.SHA3 = 1`, `BASE58`)
7
+ * bare address (`z...`) and uncompressed 65-byte (`0x04 || X || Y`) + Ethereum 64-byte (`X || Y`) public keys
8
+ * from a compressed 33-byte secp256k1 child public key.
9
+ */
10
+ declare function deriveOcapIdentitiesFromChildPoint(childPublicKeyComp33: Uint8Array | string): {
11
+ readonly ethChecksumAddress: string;
12
+ readonly ethUncompressedPk64: Uint8Array;
13
+ readonly ethUncompressedPkHex: string;
14
+ readonly ocapSecp256k1Address: string;
15
+ readonly ocapSecp256k1Did: string;
16
+ readonly secp256k1UncompressedPk65: Uint8Array;
17
+ readonly secp256k1UncompressedPkHex: string;
18
+ };
19
+ declare class CborTagValue {
20
+ readonly tag: number;
21
+ readonly value: unknown;
22
+ constructor(tag: number, value: unknown);
23
+ }
24
+ interface VerifiedPersonalOcapTx {
25
+ readonly unsignedPayloadBytes: Uint8Array;
26
+ readonly signingDigest32: Uint8Array;
27
+ readonly signingDigestHex: string;
28
+ readonly signerAddress: string;
29
+ readonly signerScheme: 'ethereum' | 'secp256k1';
30
+ readonly fromAddress: string;
31
+ readonly delegatorAddress?: string;
32
+ readonly toAddress: string;
33
+ readonly chainId: string;
34
+ readonly nonce: bigint;
35
+ readonly itxTypeUrl: string;
36
+ /** Effective bounded execution gas + protocol txFee (>= declared `Transaction.gas` field 5). */
37
+ readonly gasFee: bigint;
38
+ /** Raw `Transaction.gas` field 5 declared in unsigned CBOR (`0n` when omitted). */
39
+ readonly declaredGasField: bigint;
40
+ readonly serviceFee: bigint;
41
+ readonly nativeValueOutflow: bigint;
42
+ readonly totalNativeOutflow: bigint;
43
+ readonly tokenOutflows: ReadonlyArray<{
44
+ readonly tokenAddress: string;
45
+ readonly amount: bigint;
46
+ }>;
47
+ readonly outgoingAssetIds: ReadonlyArray<string>;
48
+ readonly nativeInflowExpected: bigint;
49
+ readonly tokenInflowsExpected: ReadonlyArray<{
50
+ readonly tokenAddress: string;
51
+ readonly amount: bigint;
52
+ }>;
53
+ readonly incomingAssetIds: ReadonlyArray<string>;
54
+ readonly expiredAtIso?: string;
55
+ readonly delegatedOps: ReadonlyArray<string>;
56
+ readonly isTransferLike: boolean;
57
+ }
58
+ /**
59
+ * Computes a deterministic, fail-closed upper bound on the OCAP execution gas + protocol `txFee`
60
+ * charged by `CreateGasEnsureFn` (`ensure-gas.ts`) and `EnsureTxCost` (`ensure-cost.ts`), even when
61
+ * `Transaction.gas` (field 5) is absent or `0` and the sender lacks a valid gas stake.
62
+ */
63
+ declare function estimateOcapExecutionCostUpperBound(params: {
64
+ readonly unsignedPayloadByteLength: number;
65
+ readonly itxTypeUrl: string;
66
+ readonly outgoingAssetCount: number;
67
+ readonly incomingAssetCount: number;
68
+ readonly gasConfig: PersonalOcapChainGasConfig | CanonicalPersonalOcapChainGasConfig;
69
+ }): {
70
+ readonly estimatedExecutionGas: bigint;
71
+ readonly protocolTxFee: bigint;
72
+ readonly totalExecutionCostUpperBound: bigint;
73
+ };
74
+ declare function decodeAndVerifyPersonalOcapTx(params: {
75
+ readonly rawTxBytes: Uint8Array | string;
76
+ readonly childPublicKeyComp33: Uint8Array | string;
77
+ readonly policy?: PersonalVaultPolicy | CanonicalPersonalVaultPolicy;
78
+ readonly ocapGasConfig?: PersonalOcapChainGasConfig | CanonicalPersonalOcapChainGasConfig;
79
+ readonly requireExecutionGasBound?: boolean;
80
+ readonly ocapPrimaryTokenAddress?: string;
81
+ readonly nowSec?: bigint;
82
+ readonly hasL2OrL3QuorumProof?: boolean;
83
+ readonly hasL3GuardianQuorumProof?: boolean;
84
+ }): {
85
+ readonly verifiedOcapTx: VerifiedPersonalOcapTx;
86
+ readonly clearSigningPreview: PersonalClearSigningPreview;
87
+ readonly clearSigningPreviewHash32: Uint8Array;
88
+ /** Policy-independent preview hash computed solely from unsigned CBOR fields (`declaredGasField`), used by policy-blind Follower `SignedFirewallAttestation`. */
89
+ readonly intrinsicClearSigningPreviewHash32: Uint8Array;
90
+ };
91
+ declare function resolveRequiredOcapPolicyTier(params: {
92
+ readonly policy: PersonalVaultPolicy | CanonicalPersonalVaultPolicy;
93
+ readonly verifiedOcapTx: VerifiedPersonalOcapTx;
94
+ readonly currentRollingByAsset?: ReadonlyMap<string, bigint>;
95
+ readonly hasL2OrL3QuorumForOverflow?: boolean;
96
+ readonly attestedSimulatedNativeDeltaWei?: bigint;
97
+ }): {
98
+ readonly requiredTier: PersonalPolicyTier;
99
+ readonly projectedRollingByAsset: ReadonlyMap<string, bigint>;
100
+ };
101
+ interface VerifiedPersonalArcblockJwt {
102
+ readonly unsignedToken: string;
103
+ readonly unsignedPayloadBytes: Uint8Array;
104
+ readonly signingDigest32: Uint8Array;
105
+ readonly signingDigestHex: string;
106
+ readonly isDelegationToken: boolean;
107
+ readonly requiredTier: PersonalPolicyTier;
108
+ readonly issuerDid: string;
109
+ readonly subject: string;
110
+ readonly iatSec: bigint;
111
+ readonly expSec: bigint;
112
+ }
113
+ declare function decodeAndVerifyPersonalArcblockJwt(params: {
114
+ readonly unsignedTokenOrBytes: Uint8Array | string;
115
+ readonly childPublicKeyComp33: Uint8Array | string;
116
+ readonly nowSec: bigint;
117
+ readonly policy?: PersonalVaultPolicy | CanonicalPersonalVaultPolicy;
118
+ readonly hasL2OrL3QuorumProof?: boolean;
119
+ }): {
120
+ readonly verifiedJwt: VerifiedPersonalArcblockJwt;
121
+ readonly clearSigningPreview: PersonalClearSigningPreview;
122
+ readonly clearSigningPreviewHash32: Uint8Array;
123
+ };
124
+ //#endregion
125
+ export { CborTagValue, VerifiedPersonalArcblockJwt, VerifiedPersonalOcapTx, decodeAndVerifyPersonalArcblockJwt, decodeAndVerifyPersonalOcapTx, deriveOcapIdentitiesFromChildPoint, estimateOcapExecutionCostUpperBound, resolveRequiredOcapPolicyTier };