Skip to content

Commit e64a762

Browse files
authored
Merge pull request #1024 from fa0311/develop
Update Document
2 parents acf5f82 + 997dfc9 commit e64a762

124 files changed

Lines changed: 1704 additions & 1561 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: 4 additions & 4 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
},
9-
"{\"name\":\"i\",\"oprf\":\"x\",\"voprf\":\"q\",\"poprf\":t=>{\"const i=h()\",e=n.BASE.multiply(A\\\"Info\\\",t,f);return{\"generateKeyPair\":\"m\",\"deriveKeyPair\":()=>y(t,i),\"blind(f,t,i)\"{\"const h=n.fromBytes()\",_=e.add(i);if(h)throw new Error(_.equalsn.ZERO);const o=u(\\\"tweakedKey point at infinity\\\"),c=a(r);if(t,f)throw new Error(c.equalsn.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,i),_=e.map(h),o=_.map(n.fromBytes),c=n.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.isArrayi);const a=i.map(\\\"expected array\\\").map(t=>t.evaluated);return p(n.fromBytes),\"i.map(f,n.fromBytesr,a,i.mapt=>t.blinded.mapn.fromBytes,e)\"{\"const e=s.fromBytes()\",r=a[n].multiply(i.blind).toBytes(s.inve);return d()}},\"finalize()\"{\"return this.finalizeBatch()\"{\"input\":\"t\",\"blind\":\"i\",\"evaluated\":\"n\",\"blinded\":\"e\"}],s,\"r\"},\"evaluate()\"{\"const h=s.fromBytes()\",u=a(e);if(r,f)throw new Error(u.equalsn.ZERO);const _=s.add(\\\"Input point at infinity\\\"),o=s.inv(h,i),c=u.multiply(_).toBytes(o);return d()}}},\"__tests\":{\"Fn\":\"s\"}}",
10-
"{\"getPublicKey\":\"u\",\"getSharedSecret\":\"function()\"{if()throw new Error(!0===_i);if(\\\"first arg must be private key\\\")throw new Error(!1===_e);const r=n.fromBytes(\\\"second arg must be public key\\\");return t.fromBytes(i).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\"}=qi();i=D(e,p);const _=B(i,a),c=o.fromBytes(i);if(n)throw new Error(!o.isValidNot0c);const l=[j(\\\"invalid private key\\\"),j(c)];if(_){\"const t=!0===u?h()\":u;l.push(w.secretKey)}\"const f=b()\",A=_;return{\"seed\":\"f\",\"k2sig\":\"function()\"{const n=E();if(i)return;const e=o.inv(!o.isValidNot0n),r=t.BASE.multiply(n).toAffine(n),a=o.create();if(r.x)return;const h=o.create(a===Bi);if(e*o.createA+a*c)return;let u=(h===Bi)|Number(r.x===a?0:2),_=h;return s&&C(r.y&Si)&&(h),\"new $(_=o.negh,u^=1)\"}}}();return function(n,e,a){if()throw new Error(st,\\\"hashLen\\\",si,\\\"qByteLen\\\",\\\"function\\\"!=typeof n);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=()=>n(...t),f=(_,bu,...t)=>{\"_=l()\",u=l(a,t),\"0!==t.length&&()\"},A=()=>{if()throw new Error(o++>=1e3);let t=0;const n=[];for(\\\"drbg: tried max amount of iterations\\\"){u=l();const i=u.slice();n.push(),t+=u.length}\"return b()\"};return()=>{let n;for()f(c,ft;!n=iA;);return c(),\"n\"}}\"()(i.outputLen,o.BYTES,u).toBytes(_,c)\"},\"verify\":\"function()\"{}{\"const\"{\"lowS\":\"h\",\"prehash\":\"u\",\"format\":\"_\"}=qi();if(a,p){\"throw new Error()\"}q();try{\"const e=$.fromBytes()\",r=t.fromBytes(i,_);if(s)return!1;const{\"r\":\"a\",\"s\":\"u\"}\"=e\",c=B(),l=o.inv(n),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\"}=qi();return i=D(n,p),\"$.fromBytes(i,e).recoverPublicKey(t,\\\"recovered\\\").toBytes(i)\"},\"Signature\":\"$\",\"hash\":\"i\"}",
9+
"{\"name\":\"n\",\"oprf\":\"x\",\"voprf\":\"q\",\"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\"}}",
10+
"{\"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\":\"g\",\"utils\":\"v\",\"lengths\":\"w\",\"Point\":\"t\",\"sign\":\"function()\"{}{\"const\"{\"seed\":\"_\",\"k2sig\":\"c\"}\"=function()\"{\"const\"{\"lowS\":\"s\",\"prehash\":\"a\",\"extraEntropy\":\"u\"}=$n();n=z(e,p);const _=j(n,a),c=o.fromBytes(n);if(i)throw new Error(!o.isValidNot0c);const l=[S(\\\"invalid private key\\\"),S(c)];if(_){\"const t=!0===u?h()\":u;l.push(w.secretKey)}\"const f=b()\",A=_;return{\"seed\":\"f\",\"k2sig\":\"function()\"{const i=E();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===Bn);if(e*o.createA+a*c)return;let u=(h===Bn)|Number(r.x===a?0:2),_=h;return s&&C(r.y&Sn)&&(h),\"new $(_=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\":\"_\"}=$n();if(a,p){\"throw new Error()\"}q();try{\"const 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\"}=$n();return n=z(i,p),\"$.fromBytes(n,e).recoverPublicKey(t,\\\"recovered\\\").toBytes(n)\"},\"Signature\":\"$\",\"hash\":\"n\"}",
1212
{
1313
"position": "absolute",
1414
"border": "0",

docs/deck/json/InitialState.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@
17871787
"value": "true"
17881788
},
17891789
"responsive_web_grok_link_edit_image_to_grok_com_enabled": {
1790-
"value": "false"
1790+
"value": "true"
17911791
},
17921792
"responsive_web_grok_location_enabled": {
17931793
"value": "true"
@@ -2458,9 +2458,6 @@
24582458
"rweb_analytics_nav_item_enabled": {
24592459
"value": "false"
24602460
},
2461-
"rweb_analytics_post_detail_enabled": {
2462-
"value": "true"
2463-
},
24642461
"rweb_analytics_post_details_realtime_enabled": {
24652462
"value": "false"
24662463
},
@@ -3082,7 +3079,7 @@
30823079
"value": "false"
30833080
},
30843081
"subscriptions_offers_premium_nav_indicator_enabled": {
3085-
"value": "false"
3082+
"value": "true"
30863083
},
30873084
"subscriptions_offers_special_perk_enabled": {
30883085
"value": "false"
@@ -4715,7 +4712,7 @@
47154712
"value": "30000"
47164713
},
47174714
"gryphon_timeline_polling_overrides": {
4718-
"value": "explore,,60000"
4715+
"value": "explore,,60000;search,latest,60000"
47194716
},
47204717
"gryphon_timeline_polling_top_interval_ms": {
47214718
"value": "120000"
@@ -5675,7 +5672,7 @@
56755672
"value": "true"
56765673
},
56775674
"responsive_web_grok_link_edit_image_to_grok_com_enabled": {
5678-
"value": "false"
5675+
"value": "true"
56795676
},
56805677
"responsive_web_grok_location_enabled": {
56815678
"value": "true"
@@ -6346,9 +6343,6 @@
63466343
"rweb_analytics_nav_item_enabled": {
63476344
"value": "false"
63486345
},
6349-
"rweb_analytics_post_detail_enabled": {
6350-
"value": "true"
6351-
},
63526346
"rweb_analytics_post_details_realtime_enabled": {
63536347
"value": "false"
63546348
},
@@ -6502,6 +6496,9 @@
65026496
"rweb_ssp_ads_enabled": {
65036497
"value": "false"
65046498
},
6499+
"rweb_ssp_ads_refresh_enabled": {
6500+
"value": "true"
6501+
},
65056502
"rweb_starter_packs_topics_tab_enabled": {
65066503
"value": "false"
65076504
},
@@ -7881,10 +7878,10 @@
78817878
"impression_pointers": {},
78827879
"impressions": {},
78837880
"keysRead": {},
7884-
"settingsVersion": "82963b31a3b51758ed8708614c164592"
7881+
"settingsVersion": "1782ce6a3efddca4a0fefe0c6615dbed"
78857882
},
78867883
"debug": {},
7887-
"featureSetToken": "b295a85daaff5bca556df88f93a8d2568eebb2c9",
7884+
"featureSetToken": "7ed1c887b5e88121e6228c70a7cc1250551c6384",
78887885
"isLoaded": "true",
78897886
"isLoading": "false",
78907887
"customOverrides": {}
@@ -7954,7 +7951,7 @@
79547951
},
79557952
"session": {
79567953
"country": "XX",
7957-
"guestId": "176894317403872551",
7954+
"guestId": "176902979919915202",
79587955
"hasCommunityMemberships": "false",
79597956
"isActiveCreator": "false",
79607957
"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": "a88405d509437c37fb176b107212613118f6e5b7",
4+
"sha": "36fec59dbc87663ca6a8d489251a8493b8365611",
55
"isLoggedIn": "false",
66
"isTwoffice": "false",
77
"hasMultiAccountCookie": "false",
@@ -10,7 +10,7 @@
1010
"rweb",
1111
"msw"
1212
],
13-
"serverDate": "1768943174304",
13+
"serverDate": "1769029799427",
1414
"cookies": {
1515
"version": "1661819456366",
1616
"fetchedTime": "1661971138705",
@@ -104,5 +104,5 @@
104104
]
105105
}
106106
},
107-
"userHash": "ad6dca358cf655d6b90803f00c55bc5f0d1e6dcfaf40c38f2807bcbb424545c2"
107+
"userHash": "5d0265c1f4ca2fd72d32dfbc32bd56145a8581208f2b5608ca968796681150bb"
108108
}

0 commit comments

Comments
 (0)