Skip to content

Commit 554f846

Browse files
authored
Merge pull request #1027 from fa0311/develop
Update Document
2 parents f8aaafe + 1bbd747 commit 554f846

124 files changed

Lines changed: 5582 additions & 8421 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/deck/json/FreezeObject.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"assert": "f",
55
"requireNonNull": "A",
66
"requireInstance": "d",
7-
"abstractMethodFail": "v"
7+
"abstractMethodFail": "g"
88
},
99
"{\"name\":\"n\",\"oprf\":\"x\",\"voprf\":\"$\",\"poprf\":t=>{\"const n=h()\",e=i.BASE.multiply(A\\\"Info\\\",t,f);return{\"generateKeyPair\":\"m\",\"deriveKeyPair\":()=>y(t,n),\"blind(f,t,n)\"{\"const h=i.fromBytes()\",_=e.add(n);if(h)throw new Error(_.equalsi.ZERO);const o=u(\\\"tweakedKey point at infinity\\\"),c=a(r);if(t,f)throw new Error(c.equalsi.ZERO);const l=c.multiply(\\\"Input point at infinity\\\");return{\"blind\":\"s.toBytes()\",\"blinded\":\"l.toBytes(o)\",\"tweakedKey\":\"_.toBytes()\"}},\"blindEvaluateBatch()\"{if()throw new Error(!Array.isArraye);const a=s.fromBytes(\\\"expected array\\\"),h=s.add(t),u=s.inv(a,n),_=e.map(h),o=_.map(i.fromBytes),c=i.BASE.multiply(t=>t.multiplyu),l=w(h);return{\"evaluated\":\"o.map()\",\"proof\":\"l\"}},\"blindEvaluate()\"{const e=this.blindEvaluateBatch();return{\"evaluated\":e.evaluated[0],\"proof\":\"e.proof\"}},\"finalizeBatch()\"{if()throw new Error(!Array.isArrayn);const a=n.map(\\\"expected array\\\").map(t=>t.evaluated);return p(i.fromBytes),\"n.map(f,i.fromBytesr,a,n.mapt=>t.blinded.mapi.fromBytes,e)\"{\"const e=s.fromBytes()\",r=a[i].multiply(n.blind).toBytes(s.inve);return d()}},\"finalize()\"{\"return this.finalizeBatch()\"{\"input\":\"t\",\"blind\":\"n\",\"evaluated\":\"i\",\"blinded\":\"e\"}],s,\"r\"},\"evaluate()\"{\"const h=s.fromBytes()\",u=a(e);if(r,f)throw new Error(u.equalsi.ZERO);const _=s.add(\\\"Input point at infinity\\\"),o=s.inv(h,n),c=u.multiply(_).toBytes(o);return d()}}},\"__tests\":{\"Fn\":\"s\"}}",
1010
"{\"getPublicKey\":\"u\",\"getSharedSecret\":\"function()\"{if()throw new Error(!0===_n);if(\\\"first arg must be private key\\\")throw new Error(!1===_e);const r=i.fromBytes(\\\"second arg must be public key\\\");return t.fromBytes(n).multiply(e).toBytes(r)},\"keygen\":\"c\",\"Point\":\"t\",\"utils\":\"o\",\"lengths\":\"a\"}",
11-
"{\"keygen\":\"A\",\"getPublicKey\":\"d\",\"getSharedSecret\":\"v\",\"utils\":\"g\",\"lengths\":\"w\",\"Point\":\"t\",\"sign\":\"function()\"{}{\"const\"{\"seed\":\"_\",\"k2sig\":\"c\"}\"=function()\"{\"const\"{\"lowS\":\"s\",\"prehash\":\"a\",\"extraEntropy\":\"u\"}=En();n=z(e,p);const _=j(n,a),c=o.fromBytes(n);if(i)throw new Error(!o.isValidNot0c);const l=[B(\\\"invalid private key\\\"),B(c)];if(_){\"const t=!0===u?h()\":u;l.push(w.secretKey)}\"const f=b()\",A=_;return{\"seed\":\"f\",\"k2sig\":\"function()\"{const i=q();if(n)return;const e=o.inv(!o.isValidNot0i),r=t.BASE.multiply(i).toAffine(i),a=o.create();if(r.x)return;const h=o.create(a===Sn);if(e*o.createA+a*c)return;let u=(h===Sn)|Number(r.x===a?0:2),_=h;return s&&C(r.y&Bn)&&(h),\"new E(_=o.negh,u^=1)\"}}}();return function(i,e,a){if()throw new Error(st,\\\"hashLen\\\",sn,\\\"qByteLen\\\",\\\"function\\\"!=typeof i);const e=t=>new Uint8Array(\\\"hmacFn must be a function\\\"),r=Uint8Array.of(t),a=Uint8Array.of(),h=Uint8Array.of(0);let u=e(1),_=e(t),o=0;const c=(t)=>{\"u.fill()\",_.fill(1),\"o=0\"},l=()=>i(...t),f=(_,bu,...t)=>{\"_=l()\",u=l(a,t),\"0!==t.length&&()\"},A=()=>{if()throw new Error(o++>=1e3);let t=0;const i=[];for(\\\"drbg: tried max amount of iterations\\\"){u=l();const n=u.slice();i.push(),t+=u.length}\"return b()\"};return()=>{let i;for()f(c,ft;!i=nA;);return c(),\"i\"}}\"()(n.outputLen,o.BYTES,u).toBytes(_,c)\"},\"verify\":\"function()\"{}{\"const\"{\"lowS\":\"h\",\"prehash\":\"u\",\"format\":\"_\"}=En();if(a,p){\"throw new Error()\"}$();try{\"const e=E.fromBytes()\",r=t.fromBytes(n,_);if(s)return!1;const{\"r\":\"a\",\"s\":\"u\"}\"=e\",c=j(),l=o.inv(i),f=o.create(u),A=o.create(c*l),d=t.BASE.multiplyUnsafe(a*l).add(f);if(r.multiplyUnsafeA)return!1;return o.create(d.is0)===a}\"catch()\"{\"return!1\"}},\"recoverPublicKey\":\"function()\"{}{\"const\"{\"prehash\":\"e\"}=En();return n=z(i,p),\"E.fromBytes(n,e).recoverPublicKey(t,\\\"recovered\\\").toBytes(n)\"},\"Signature\":\"E\",\"hash\":\"n\"}",
11+
"{\"keygen\":\"A\",\"getPublicKey\":\"d\",\"getSharedSecret\":\"g\",\"utils\":\"v\",\"lengths\":\"w\",\"Point\":\"t\",\"sign\":\"function()\"{}{\"const\"{\"seed\":\"_\",\"k2sig\":\"c\"}\"=function()\"{\"const\"{\"lowS\":\"s\",\"prehash\":\"a\",\"extraEntropy\":\"u\"}=En();n=z(e,p);const _=j(n,a),c=o.fromBytes(n);if(i)throw new Error(!o.isValidNot0c);const l=[B(\\\"invalid private key\\\"),B(c)];if(_){\"const t=!0===u?h()\":u;l.push(w.secretKey)}\"const f=b()\",A=_;return{\"seed\":\"f\",\"k2sig\":\"function()\"{const i=q();if(n)return;const e=o.inv(!o.isValidNot0i),r=t.BASE.multiply(i).toAffine(i),a=o.create();if(r.x)return;const h=o.create(a===Sn);if(e*o.createA+a*c)return;let u=(h===Sn)|Number(r.x===a?0:2),_=h;return s&&C(r.y&Bn)&&(h),\"new E(_=o.negh,u^=1)\"}}}();return function(i,e,a){if()throw new Error(st,\\\"hashLen\\\",sn,\\\"qByteLen\\\",\\\"function\\\"!=typeof i);const e=t=>new Uint8Array(\\\"hmacFn must be a function\\\"),r=Uint8Array.of(t),a=Uint8Array.of(),h=Uint8Array.of(0);let u=e(1),_=e(t),o=0;const c=(t)=>{\"u.fill()\",_.fill(1),\"o=0\"},l=()=>i(...t),f=(_,bu,...t)=>{\"_=l()\",u=l(a,t),\"0!==t.length&&()\"},A=()=>{if()throw new Error(o++>=1e3);let t=0;const i=[];for(\\\"drbg: tried max amount of iterations\\\"){u=l();const n=u.slice();i.push(),t+=u.length}\"return b()\"};return()=>{let i;for()f(c,ft;!i=nA;);return c(),\"i\"}}\"()(n.outputLen,o.BYTES,u).toBytes(_,c)\"},\"verify\":\"function()\"{}{\"const\"{\"lowS\":\"h\",\"prehash\":\"u\",\"format\":\"_\"}=En();if(a,p){\"throw new Error()\"}$();try{\"const e=E.fromBytes()\",r=t.fromBytes(n,_);if(s)return!1;const{\"r\":\"a\",\"s\":\"u\"}\"=e\",c=j(),l=o.inv(i),f=o.create(u),A=o.create(c*l),d=t.BASE.multiplyUnsafe(a*l).add(f);if(r.multiplyUnsafeA)return!1;return o.create(d.is0)===a}\"catch()\"{\"return!1\"}},\"recoverPublicKey\":\"function()\"{}{\"const\"{\"prehash\":\"e\"}=En();return n=z(i,p),\"E.fromBytes(n,e).recoverPublicKey(t,\\\"recovered\\\").toBytes(n)\"},\"Signature\":\"E\",\"hash\":\"n\"}",
1212
{
1313
"navButtons": "navigationButtons",
1414
"carouselRoot": "carouselRoot"
@@ -395,6 +395,12 @@
395395
"Transient": "6",
396396
"6": "Transient"
397397
},
398+
{
399+
"wide": "wide",
400+
"narrow": "narrow",
401+
"veryNarrow": "veryNarrow"
402+
},
403+
"{[s.wide]:\"500\",[s.narrow]:\"300\",[s.veryNarrow]:\"200\"}",
398404
{
399405
"LIVE_BROADCAST": "liveBroadcast",
400406
"REPLAY_BROADCAST": "replayBroadcast",

docs/deck/json/InitialState.json

Lines changed: 65 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@
6666
"errors": {},
6767
"fetchStatus": {}
6868
},
69-
"trustedFriends": {
70-
"entities": {},
71-
"errors": {},
72-
"fetchStatus": {}
73-
},
7469
"userPresence": {
7570
"entities": {},
7671
"errors": {},
@@ -1415,7 +1410,7 @@
14151410
"value": "false"
14161411
},
14171412
"responsive_web_birdwatch_live_note_enabled": {
1418-
"value": "false"
1413+
"value": "true"
14191414
},
14201415
"responsive_web_birdwatch_match_page_enabled": {
14211416
"value": "true"
@@ -1454,7 +1449,7 @@
14541449
"value": "true"
14551450
},
14561451
"responsive_web_birdwatch_public_suggestions_tab_enabled": {
1457-
"value": "false"
1452+
"value": "true"
14581453
},
14591454
"responsive_web_birdwatch_rating_crowd_enabled": {
14601455
"value": "true"
@@ -1480,6 +1475,9 @@
14801475
"responsive_web_birdwatch_suggestion_writer_impact_cutoff": {
14811476
"value": "2"
14821477
},
1478+
"responsive_web_birdwatch_suggestions_report_enabled": {
1479+
"value": "false"
1480+
},
14831481
"responsive_web_birdwatch_top_contributor_enabled": {
14841482
"value": "true"
14851483
},
@@ -1496,7 +1494,7 @@
14961494
"value": "off"
14971495
},
14981496
"responsive_web_card_image_poll_enabled": {
1499-
"value": "false"
1497+
"value": "true"
15001498
},
15011499
"responsive_web_card_preconnect_enabled": {
15021500
"value": "false"
@@ -1664,7 +1662,7 @@
16641662
"value": "20"
16651663
},
16661664
"responsive_web_grok_annotations_enabled": {
1667-
"value": "false"
1665+
"value": "true"
16681666
},
16691667
"responsive_web_grok_api_enable_grok_host": {
16701668
"value": "true"
@@ -1943,7 +1941,7 @@
19431941
"value": "false"
19441942
},
19451943
"responsive_web_image_poll_composer_enabled": {
1946-
"value": "false"
1944+
"value": "true"
19471945
},
19481946
"responsive_web_impression_tracker_refactor_enabled": {
19491947
"value": "true"
@@ -3213,6 +3211,9 @@
32133211
"subscriptions_upsells_home_nav_migration_enabled": {
32143212
"value": "false"
32153213
},
3214+
"subscriptions_upsells_home_sidebar_grok_promo": {
3215+
"value": "false"
3216+
},
32163217
"subscriptions_upsells_home_sidebar_migration_enabled": {
32173218
"value": "false"
32183219
},
@@ -3423,9 +3424,6 @@
34233424
"trusted_friends_consumption_enabled": {
34243425
"value": "true"
34253426
},
3426-
"trusted_friends_tweet_creation_enabled": {
3427-
"value": "false"
3428-
},
34293427
"tv_app_casting_log_focused_element_every_10s": {
34303428
"value": "false"
34313429
},
@@ -3839,6 +3837,9 @@
38393837
"xchat_auto_upgrade_legacy_groups": {
38403838
"value": "true"
38413839
},
3840+
"xchat_av_call_card_interaction_enabled": {
3841+
"value": "false"
3842+
},
38423843
"xchat_av_call_start_should_notify": {
38433844
"value": "false"
38443845
},
@@ -3860,6 +3861,9 @@
38603861
"xchat_enable_av": {
38613862
"value": "false"
38623863
},
3864+
"xchat_enable_av_group": {
3865+
"value": "false"
3866+
},
38633867
"xchat_enable_command_menu": {
38643868
"value": "false"
38653869
},
@@ -3887,6 +3891,12 @@
38873891
"xchat_fetch_legacy_group_details": {
38883892
"value": "true"
38893893
},
3894+
"xchat_forward_media_max_conversations": {
3895+
"value": "5"
3896+
},
3897+
"xchat_forward_media_max_size_mb": {
3898+
"value": "100"
3899+
},
38903900
"xchat_hybrid_pull_eagerly_fetch_history_after_seconds": {
38913901
"value": -1
38923902
},
@@ -3902,6 +3912,9 @@
39023912
"xchat_inbox_conversation_local_pagination_page_size": {
39033913
"value": "20"
39043914
},
3915+
"xchat_inbox_pills_v2_enabled": {
3916+
"value": "false"
3917+
},
39053918
"xchat_ios_max_io_threads": {
39063919
"value": "0"
39073920
},
@@ -3923,6 +3936,9 @@
39233936
"xchat_max_users_to_fetch_per_request": {
39243937
"value": "100"
39253938
},
3939+
"xchat_notification_attachment": {
3940+
"value": "false"
3941+
},
39263942
"xchat_passcode_options_enabled": {
39273943
"value": "false"
39283944
},
@@ -3950,6 +3966,9 @@
39503966
"xchat_search_repetition_weight": {
39513967
"value": "0.2"
39523968
},
3969+
"xchat_settings_enabled": {
3970+
"value": "false"
3971+
},
39533972
"xchat_share_to_ig_story": {
39543973
"value": "false"
39553974
},
@@ -5330,7 +5349,7 @@
53305349
"value": "false"
53315350
},
53325351
"responsive_web_birdwatch_live_note_enabled": {
5333-
"value": "false"
5352+
"value": "true"
53345353
},
53355354
"responsive_web_birdwatch_match_page_enabled": {
53365355
"value": "true"
@@ -5369,7 +5388,7 @@
53695388
"value": "true"
53705389
},
53715390
"responsive_web_birdwatch_public_suggestions_tab_enabled": {
5372-
"value": "false"
5391+
"value": "true"
53735392
},
53745393
"responsive_web_birdwatch_rating_crowd_enabled": {
53755394
"value": "true"
@@ -5395,6 +5414,9 @@
53955414
"responsive_web_birdwatch_suggestion_writer_impact_cutoff": {
53965415
"value": "2"
53975416
},
5417+
"responsive_web_birdwatch_suggestions_report_enabled": {
5418+
"value": "false"
5419+
},
53985420
"responsive_web_birdwatch_top_contributor_enabled": {
53995421
"value": "true"
54005422
},
@@ -5579,7 +5601,7 @@
55795601
"value": "20"
55805602
},
55815603
"responsive_web_grok_annotations_enabled": {
5582-
"value": "false"
5604+
"value": "true"
55835605
},
55845606
"responsive_web_grok_api_enable_grok_host": {
55855607
"value": "true"
@@ -7128,6 +7150,9 @@
71287150
"subscriptions_upsells_home_nav_migration_enabled": {
71297151
"value": "false"
71307152
},
7153+
"subscriptions_upsells_home_sidebar_grok_promo": {
7154+
"value": "false"
7155+
},
71317156
"subscriptions_upsells_home_sidebar_migration_enabled": {
71327157
"value": "false"
71337158
},
@@ -7338,9 +7363,6 @@
73387363
"trusted_friends_consumption_enabled": {
73397364
"value": "true"
73407365
},
7341-
"trusted_friends_tweet_creation_enabled": {
7342-
"value": "false"
7343-
},
73447366
"tv_app_casting_log_focused_element_every_10s": {
73457367
"value": "false"
73467368
},
@@ -7754,6 +7776,9 @@
77547776
"xchat_auto_upgrade_legacy_groups": {
77557777
"value": "true"
77567778
},
7779+
"xchat_av_call_card_interaction_enabled": {
7780+
"value": "false"
7781+
},
77577782
"xchat_av_call_start_should_notify": {
77587783
"value": "false"
77597784
},
@@ -7775,6 +7800,9 @@
77757800
"xchat_enable_av": {
77767801
"value": "false"
77777802
},
7803+
"xchat_enable_av_group": {
7804+
"value": "false"
7805+
},
77787806
"xchat_enable_command_menu": {
77797807
"value": "false"
77807808
},
@@ -7802,6 +7830,12 @@
78027830
"xchat_fetch_legacy_group_details": {
78037831
"value": "true"
78047832
},
7833+
"xchat_forward_media_max_conversations": {
7834+
"value": "5"
7835+
},
7836+
"xchat_forward_media_max_size_mb": {
7837+
"value": "100"
7838+
},
78057839
"xchat_hybrid_pull_eagerly_fetch_history_after_seconds": {
78067840
"value": -1
78077841
},
@@ -7817,6 +7851,9 @@
78177851
"xchat_inbox_conversation_local_pagination_page_size": {
78187852
"value": "20"
78197853
},
7854+
"xchat_inbox_pills_v2_enabled": {
7855+
"value": "false"
7856+
},
78207857
"xchat_ios_max_io_threads": {
78217858
"value": "0"
78227859
},
@@ -7838,6 +7875,9 @@
78387875
"xchat_max_users_to_fetch_per_request": {
78397876
"value": "100"
78407877
},
7878+
"xchat_notification_attachment": {
7879+
"value": "false"
7880+
},
78417881
"xchat_passcode_options_enabled": {
78427882
"value": "false"
78437883
},
@@ -7865,6 +7905,9 @@
78657905
"xchat_search_repetition_weight": {
78667906
"value": "0.2"
78677907
},
7908+
"xchat_settings_enabled": {
7909+
"value": "false"
7910+
},
78687911
"xchat_share_to_ig_story": {
78697912
"value": "false"
78707913
},
@@ -7935,10 +7978,10 @@
79357978
"impression_pointers": {},
79367979
"impressions": {},
79377980
"keysRead": {},
7938-
"settingsVersion": "30c777e84805b48a18d45413bb5879a3"
7981+
"settingsVersion": "99f2be0df7a8acd2f7c93c45cdd6f8c8"
79397982
},
79407983
"debug": {},
7941-
"featureSetToken": "f1c227666deba52cd54acb061cdabdf979cdff7c",
7984+
"featureSetToken": "7983dfdf492de1a93f085a083920e0c726a93c9a",
79427985
"isLoaded": "true",
79437986
"isLoading": "false",
79447987
"customOverrides": {}
@@ -8008,7 +8051,7 @@
80088051
},
80098052
"session": {
80108053
"country": "XX",
8011-
"guestId": "177015355400459127",
8054+
"guestId": "177049885735779280",
80128055
"hasCommunityMemberships": "false",
80138056
"isActiveCreator": "false",
80148057
"isLoaded": "false",

docs/deck/json/MetaData.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"env": "prod",
33
"isCanary": "false",
4-
"sha": "c9b361689c7269b5547caee4fda2ed004e8a28dc",
4+
"sha": "85bc29037d18608841a40f275b89cb09e06592c1",
55
"isLoggedIn": "false",
66
"isTwoffice": "false",
77
"hasMultiAccountCookie": "false",
@@ -10,7 +10,7 @@
1010
"rweb",
1111
"msw"
1212
],
13-
"serverDate": "1770153554341",
13+
"serverDate": "1770498857572",
1414
"cookies": {
1515
"version": "1661819456366",
1616
"fetchedTime": "1661971138705",
@@ -104,5 +104,5 @@
104104
]
105105
}
106106
},
107-
"userHash": "6e29deb4b2c470b09f307ac5af7dc383c8f5f12d2b8690ff4ac20ce228253dd3"
107+
"userHash": "630f511aebb8d0536412826b7affd08421ed742808ba5c22b76475965606fe6e"
108108
}

0 commit comments

Comments
 (0)