diff --git a/sdk/src/index.ts b/sdk/src/index.ts index 715d0a4a3..67cd75aac 100644 --- a/sdk/src/index.ts +++ b/sdk/src/index.ts @@ -2,58 +2,58 @@ const KEY_STORE = "https://testnet3.parameters.aleo.org/"; const CREDITS_PROGRAM_KEYS = { fee_private: { - prover: KEY_STORE + "fee_private.prover.d02301c", - verifier: "fee_private.verifier.00ae6a3", + prover: KEY_STORE + "fee_private.prover.43fab98", + verifier: "fee_private.verifier.f3dfefc", verifyingKey: - "verifier1qygqqqqqqqqqqqp85yqqqqqqqqqy0ggqqqqqqqqqhlaqqqqqqqqqplt2qyqqqqqqqz50xqqqqqqqqqqvqqqqqqqqqqq0r58vs3glghpap9wxma98vx8znu5nx4dr6zw4ukjwnn42jg82xmxtwfs2fz4kqpuxpeh5tmzkwzgpp99qmwwazfppvw4d830cv7d2dwpy5h6r98q6dlp295wt4rcv4vkx6q90pxhrkvd8zd67tnk6xrtgq3c6q5e3v3rypfh3ajyn4e5nnr52svqdd9tvejaauj7lc0dje239fd29wr2fcr2cctaa6wcef6rsqpuzyaj2qahlxdtvwj0c66fnu8d0r076ds2l2z4emd0rzra7yh5w93w52lqe7n3985qwrk0ugyeqvqpq95m45qgesy07j96k6fezqyrzh4s2mtd3nwgqd34gdhg5esplz0428mt7efk7w0rck9jk6t5vf5qun0lutum06l9swsljnvy62qyv9h98ce473xa03u9py2kashf277n8ycze4ec9ln0d7sssvccnv7sq2w90aqrleg7sadlt9xy4ymlqqt5adkwee0g920j4qwt9ch28eqxykctu3ddanan9xwv57n6eh5wsqtkjlse7g9q83c5gaka3gsg0g63j9fl56sy9mgxzdh0ledl85a4xfmu3jnqjlfd33w87yxw00njqszg6fvxnd828hyzgul4x6d3vsctn6jxclpj7v9gjrhvwsmeas8q3r4n5vcfqaccsl2t6vvy4qrzl0qq2ae8jt8y077tnatgy386vkmdpa6h2f6gxh22q09eqptmh9x9m4y8c2t7pgg0hpdnxkj4kez3lpjq08dzp9j9dtsr4vtjxur5c0hrrkvmd3gjzsa7378559gwqunply8hh8clhljequ4tgra2s404yfesqvph2hzaf8vqmx3dd75yllnta94796jg2v4ld054g5ke5esahfwudhpcpfm6fndcmstwcz0rhhsjgq5jetw49vfsrfr0vsala3xt8jvshg46xj9vlx70gcfhanaeqyrlke5xjzc", + "verifier1qygqqqqqqqqqqq8rjvqqqqqqqqq00ycqqqqqqqqqusvszqqqqqqqpnf6qyqqqqqqqqcd6qqqqqqqqqqvqqqqqqqqqqq0plfjy36deglp5xr0lk3rccawpqgztrnjusxnlkc8hz6879me8ty8y7rxzc3qqafadrmvz0v2aluqjwezzwkmj3q9vmr0xgk3arehjhppu7scsw6h4nj08z7fswhyq739ypuh67ff0f0sg8787aq4w80gqrn8e5kduw8h002rkjrw907zqxawqu7qmumx5zayg7k55rdzn05eg5sl8swr7fveuhud3gmf9xjsqzd9x9az5ls4s8cwjgc5lmvkhphy67q0g7qwzee7hyavg335j25mllnywrtjcwfejt55qxag7wvggqtmtc3al0gy6q83hql4wagk37e200592az7n525s80c4xwr92jr8dt40t3fyjxzszrc9umk95psswq82kkg25sh25s3mw5z3xt9qy2ftm8ec4a8l8rwfuxfujjrxxnhmrqs4wsunec3ukd4mur4fkj8enqqqv9n37e5fyag7e33rxsyp63u5rfs8hn26slsmdaqzvp2flcz506r0hqncdtt07nhulltlh5wyq4gpxsln5td2v0treu7t8wanhq6yv8hswxla7cf3w8nv4p233gz0ry9n7sj2uduredwtykw2ec3fs8fqrjkz8agg2xj8t9wden6spzdfcl7jlw4rgzv4hjqvh4cw40yhh8udv5g6vd0jhhfmqevezq0zs4x2q2m7u0hq9mkvulj950t9a5tcm6suycdlaky8t568jevkn3tf9uu5laevjumvahk4cxjxam85kq0l5qrycnmdzgvm7hr8cvl8a7qzcmjkwh48krtxtduhcfn7hvt752slm0nvth0yf35jugxg7ah2kw5emcq4mk962eypxyvwahf4k5ql8376l5za4zvv2p7jzgkjjs4lc60nv3czmdmmc0qn5mwnlnaxmwazs3qzfea0z0sn3nflp8v2lwlczljxre975fnvw3vfyrrjze4wuxtkjg7j37fph", }, fee_public: { - prover: KEY_STORE + "fee_public.prover.5515650", - verifier: "fee_public.verifier.40ea40e", + prover: KEY_STORE + "fee_public.prover.634f153", + verifier: "fee_public.verifier.09eeb4f", verifyingKey: - "verifier1qygqqqqqqqqqqq9wggqqqqqqqqqtxssqqqqqqqqqxdaqqqqqqqqqpp93qqqqqqqqqrw96qqqqqqqqqqvqqqqqqqqqqqgcegdmfr5a2z7lxv5r9pym8t77stu7xmer78uzdh635u5vg2etr0chrkm2u3k3s9gj4ypk2h96uyp8y04x2x7j9e7g932uk0vx8vau03ett9atggqwxwntlq77mde6k9kt2cfgwjdzk3lcj8xusr7n4cszr2t49ghw8s3yetemp9uq2gv4jwe7d36k96rz8thx05jye0zp2r5u04c6luzys5w39klgdhgg8knsq89h2r6u8tx7h7y2j5422q7dvjj90sn0vgfakgtfh3lwl0f83g90aykdfrsmjm40xed30gnmwxhlqgccvw7sac3hrxeamencv07hu8xwm2k9l34qlujzrtfcv3vdt36tv8c4t972a0gawpaampexfyh62qvjzjmqukzg485klj79rj4tryefz9xa37z74t93590859qqscqc5jjmqjd6uwkdnlpu60tuz4ucnypmz4cem0z2urgkue2q80z7u5fwtpzku4x6yf8vlx8nvtnlpvq7ymh2pkjaaay08557t39qnaw7zggqz4gug53aq7s3rnedfg8d3mkehqfgyvrgj0xag48jnjclp33yhejanx7zcd2ukwjmc75gm4uv022qxrm5h8uyvszmlhq2863vh3c7rl6pplvrqlasngafpnfgvhn4k427k38xqjru4q4x3jcyantaw0neqp54mucvkcdcrryed7ukqlrzx63ryv6hsp63ax4gxlaw0xrw4hfgar2wdeckghzkmza24vc3jt5juqgwwag6rh9x2j8xwujagev89g25605fqye6ld5yjaannpnzmzxtw35w5aglrtmpwwf9zjaw9049ssqlxqmwfqa9t4h7e78k87gsynjhwhuj8y0fmsndmld7ke7tzq3kfsjujxry8g7az0jmrm83qxmgrqsqz8r75cj3rxdx5v9g5n8y2sv5jv2escy2q5qs3k8s6payfkzhv52shuydc", + "verifier1qygqqqqqqqqqqqrcxyqqqqqqqqq8yvgqqqqqqqqqndesqqqqqqqqpg56qqqqqqqqqqhyyqqqqqqqqqqvqqqqqqqqqqq9a3p0z8q2qzsgq6lsd3zeh3tvezv0d2wg9tykutk9s7dat8uyamgxv54vv5le5slhta92cs08905qy0mgfdx0r7hzc7ec4qn8wmkx2cvtrwggad5h898kkp20eheukemkhj6g37flhpmxq9hpk9q2kfcsr58ufzupqpgfthzxsrn0554ttqckrgfwjfnvpfqhy4evahxkzahkf85pqt0es3j5jc2kzpkcu4ausrm4k53evjtuy3tzc3jgwl7y5t79j0ddhprs6ls9x0qpvqggvkffjg0psvjrmf2rsw5xrdnmqxlx5qru82dsavaka5kfsvxgyrzdf4tzceghyeqpk55308pkc0sg63sgwt8fywksccjdkkrqkh00kgraeuq97zsydp9z6pagtqmaply94dacmk7qkgg5jt36exjxcjdckjgswc5agg9xd4lqmpxxmtur7d7ecvvpg5rg4mzlf65hlpeynczqwdgrdekx7m3n4ljumgezxyzq7h9wmnrqfawayl5gns8gv2jaucwc9qmcq7pj6kvddw8dgpdf0rh66a6erzj9fmupu8ulc2x64092k5sfdm6rlaktdv8fscn8wlct0p9xahl2qqnxsw3tfzms5xplll4xamrlhtjm2xfsqmx62er2lmmzn6wk8788hcpg7uetlrufwlvmapeh00h9aqql6ggsknvwt45wjmfkky7z5ukly3dpjqvqt3yl839d8flcx6kpf5vqvdm57kqdwjazcmfn4ae87yqg08dlw805prfrfjvlyff3kq09z2yxc0pcaqalj7r4e6lygruk2ezpkfjlslyjtek6rtgvfwavqa5pmp6jgmr8xzu5dk0lcmfgm0plw8jkwt60pz2scpuh78k7f4dlfp7grjpn3xtdphhsn0k8rpfwqq3qr6huef2asc990ragxknla7kdl76xr2g2vl8pnql3f58wgcptked7rgeah8", }, inclusion: { - prover: KEY_STORE + "inclusion.prover.b46b287", - verifier: "inclusion.verifier.2fae105", + prover: KEY_STORE + "inclusion.prover.cd85cc5", + verifier: "inclusion.verifier.e6f3add", verifyingKey: - "verifier1qyyqqqqqqqqqqqzq7qqsqqqqqqqqdugpqqqqqqqqtm7syqqqqqqqpg43qvqqqqqqqzk8sqcqqqqqqqqvqqqqqqqqqqqyjtgkq7td45a5h94srp9yljcvwacqas7empws2j9lklccezgsxp58zta506lkyu6qyk0g8h4eq2ypps3rzg4kjpz7zzutgfd0qj8jw2rnfy68h5asc65tgv89e25fn02kfx002npkuyjdqj8p0urycchcqwy4j85agcdtw7f7ua2tvtq00tk4wc8cc7yqyqwesrt5n6krf0p5penhaj4gfzpefvcnqqf3hlu7qx25n4ng8txtuhyem8lwydlq3qgm8eywzj6uy76943ja58tx3acpcjw0p9c82lxv9ralqrq5z78slqx2v796nzcjmuacrar2yp4remga7qtgm0qcvejgulhp93jamuxvxj20s4ar493pp9hyww5g0prwf7qztkjzpp4nfljdwhra2022z0rnt8mkuryl8rzz8sxxsnf6twzr6pfemlu7z0jclrad92jeswwkul5pmyrwp9e4q5xsgappatw9neup7n0u3lls9cyhlujradvyze6yywdcccchu5p864ad9ahxws3pt36cq8lk49pl3kwkszr8fc3en8u6p9tst9zf6a0hwwcuc8lzx7sh4zhqjyt4umdjl9rr2yg8z875xhqdszxxdnd5nrrv724seqrqs8u3grw85hc2qafl4glrt9s9r49a9zrp8v2akql3l7f00v0wk82el5te5qdtdf2n4a8lgzzth7fyvtxxqse6pye5je2p67l9mnv784ay5t7c4z9u59q5m75r3j7nck9a4e2pyqququmk0pa64xfcyt5kj94730awdad7ch6f22lrr4vv7l0xxsmndhzjnxttk6gw59gt3950xc5gqzsqc5zsj56c0fqpsg8aevq7cl4tj7gj8exmtlq5savkclan8kqr4554m99c8wzwf4u9r4xapktcqttcq33r2dg48kk374rzx9m98prt637cvv0j9mru779cwxytgzndutlx3napjj", + "verifier1qyyqqqqqqqqqqqzq7qqsqqqqqqq0huqpqqqqqqqqjvksgqqqqqqqqnypqgqqqqqqqzk8sqcqqqqqqqqvqqqqqqqqqqqxsh33gk03qelqrvy0g5m2km5vfhs6flwsutadvdl3nd82a3xqunx8pgaccs2yh654tpnanywulgvpvfxuma59ufttju8mvnpmuhg720p6fawv4ynhe75vfhn3te00saqpd5kpgxw59gf4r3ng3z0hr49gpwlwgkac7zlqk7cne5xh33m96qep9xeu2nf68dye57yqrnqgtaa2vk3ldcpurjn3s4pavzde8cehsrqn57qm2ewew3t4g6css5qzgfywdkkrx0rmz5u68cxvrwaksjd4s2exerl3u7cae58tc383yzd5tqxk66xqldl3ch8ymq73jhufwfcp4r8vcynmjenzt355a3qnejfndw7v5sn9a63wrd86rczgrp8wsuqsth7346q3qgaddsj6ln92233jjvke2krn809qvt8ev940hfclr5etza54055m8upn5jhg224v27cqamjy5lv3qm5nyc9asy0tqz0xsgmkuyp75t2qgv3h9s4av3u5tpmf8qkf7k7gp8rjlf67uncphscspvlmku59mgn4cqlxqqz3qdsyycs2my3emuyj9vnzt0464rfgnnmxwnw4kkqe50f764fjauj73kqcsxzn5mecv507xnetxvhfkt79r6hfvf6nzl735xtfp4r7uxlns3dazwj9mgl4fayzv0nqprh80ydqtq9tl6ffcmav2mlsky8tdrunewu3z8a2qg5wfhxz4j0xsqzfsr50ts63g0wysvnkt4rd6equa0r6fsqhrsjft0qy4jnstawrmnj28llqfgemj868y6aaw5rjftgp5vezg7r2c4q5zeupt4gghwand0jeyv5qfnxtnzh7wflxh7tdd0q6zh2fy635xhmllux8hk946t3kzenmc0355mz309gfachp2verz2qaepxsrj63nr54uga9eh2xcgp85v90dellhsvyx73m2w2qyed52svs62ysg7e3ag", }, join: { - prover: KEY_STORE + "join.prover.30895cc", - verifier: "join.verifier.5cb1e62", + prover: KEY_STORE + "join.prover.1a76fe8", + verifier: "join.verifier.4f1701b", verifyingKey: - "verifier1qygqqqqqqqqqqqqqeuqqqqqqqqqz3ncqqqqqqqqqgvkqzqqqqqqqq590qyqqqqqqqzwn5qgqqqqqqqqvqqqqqqqqqqqpkgztrguz0x8mpfjhsnmqqsnwl764jw73ll0nxcg7pzt59lpd7zsjlmrprw3w6r7npmx4ck4kz3qq7mslfg4rhc9anmgza3dvms2qjhz0hatprzdgmsk3usxkttpep7wej007nzrhzzdmcca2603z4f4cp80q7drqtqw3quvqu5z4nnzspqca272csmxknz9mlwu4u6f9u2zha5rwjgv2hp0l8dlc7aa32dggq9afa5hkqmwnptqmhavy050nf48ndcl6vmjlm95c582wqyws2z5fckxsw6stcxdxxhj7v26padsumqpk58n2f6fejx3k80j2shqa642hulj3sx08ywtxg506n8dnm6nu2ltp4z5apf6wtam9kzaadackjjq6vnahqmqlkuncyslzeml246ajhy5yldyc20p9pf84gn6zdwlq79azygr4fwtvra632w333kh2e3sq4hwtk967gz8zxtsgph0nlncfhqz6wmt5cccd64qwpezp2yuglkrp7jmk4ggkefa5aw09lvhe646gpt0lkjn984uqg6r46a8q3u9vcezmtnq090xkgq0euqtkjrgjks6cxqz9hqw339k8jzepd9nxlhu7sqtv0n0uvz8p3e8wxc784jsvpf4dp92kndr2e6n9p85q8ty4z93l0fn4k7wv6neqkj9y6drya0284qv98y4lthmredwtdlm7p2489etmf473zehyhgpgmu094h97dcyzj22uzwvvayxfjlrv4qlnag2zgcqlma4j7cte6uhsfc98kf54jneuqktsmsacz7gftk9s0cunkevaamkcrt0e086j9lf9vd8eqvkn6esqfsfpjxk4lq94a5mqxgg0eazejt2wtda86l7hj2zxn9k5cy65jp6e97yp8ahakzf6vm0z53te7x9srqeupscxgx8vxla4rqse8srw9ypv3h4q902szlneeuuh4rm46rjnltvt9k", + "verifier1qygqqqqqqqqqqqz2cvqqqqqqqqqx0scqqqqqqqqqc42qzqqqqqqqpvmfqyqqqqqqqquzwqgqqqqqqqqvqqqqqqqqqqqpz6knqjfm77py0mpx68rmc6yavzrjpn3vdn5rmhum6u47fxt3j7auv5mk8epjx0hsa7nfm4llzwqqj84x9cnerm5gach0nzfy0jsvfrylvld5ffe8g63nhw5qng68rs6yrlzrc5229ezc8j4n4y0f2hrqqmdphh3mpglur7evq52n6mx9nls064fpn8wr3vqz75vextjhjmpvcrgs8har5txjnh9tj8lmlusns8nklkw8dh8nc8sv0llh4cgw95l3m7mwugu5nfrrlmyccnmrues4wl0hdfwsq8wvn60y2hl036g3aqzh5cn6n2366fy4hawjn22mj86w2w7twq80pdrea6svl7uq5zyh9nz4qgd72tql95n2xx0zh3wcjyqca5wzv4276exszaunpjduuvjmture49av40ve03akc9qw709wuf9a8hhpwlwwz8acf2z5ngk2d95qzfqhkmllqx4lnupyevkn8zthgu54x55t4cqm7uvmmnu3vtvkmsr4tldemm26shwk8ux27v6lmxkqppuesjj5d3m7x5rsg7yn8cg6hkat6fy8u8zj3n0z26ehqvmq8x2fadtw5jt6pxxfp3cm40ak7x9yqym5qrwjzpr7xwr4t6pjn5ca9g02hnuyvxd9jqpv70a7w05mqatnyzhnfl462xmsehgcwczjkrzz2qxk3wa0elrnvnh9qlz3cc2g8xyag9yrds0jepsvskl55zqtntp6qvkj9nkmlercd95j8g9xdgxv0sq0y6gq32ng5r9zcs4wt3vryhldxtr9epyz5vnnx4mf2lhv4r56mftaugjemxezpjcv9enr259tf7qq66a7ngsc3y0a5jlm8jg2rnd9c38ny2m5egl7ssx62zcscztkmjqpkvta2za4ym5jkatgzd2zspfcrc7gesjxjgcvhsua3jpyzpdan6mestyqsx5eatkmzv9zmpwkur3c34sjzc", }, split: { - prover: KEY_STORE + "split.prover.a9784b9", - verifier: "split.verifier.38392d9", + prover: KEY_STORE + "split.prover.e6d12b9", + verifier: "split.verifier.2f9733d", verifyingKey: - "verifier1qygqqqqqqqqqqq8qecqqqqqqqqqqnncqqqqqqqqqr4qqzqqqqqqqpnx4qyqqqqqqqqln7qgqqqqqqqqvqqqqqqqqqqqx4tv4dx9ct4hgwe0cgmqrljgeg88zfepv9gk26d4m2tggqwrj30tgpfatc9654hdggyvymxedz6qqqx3upvdhtl2ux9cvyl3qwtsj5hnqwjpq4xvdvwxggnureuqmhsyegt3k7m3nffxj9zuvkmccmfnczu5y8rd735uwlwa84qq7e092nnsrdyryap6tusdedfwsnkqfllv34l6ny0mlqdrv33jeghluhp5zs88fuc3209j958zh5fuhln6rdleyuk20c7lk4uv79ngx2uh44ed2elvf8ltcj033gg0skmrc5g9tcqrcax5nzyxpafv326m7c8lnz98gks6wlgnyk8qk7qzc4ufp236yuzx94ug8kfsj0tjnvqx6n5ls4yq27fgydj0f4ac6xhjtrqcfa675d4ufs9qdfguexv30rheew7n2n09sng7w5g5mz26dmmmsxnva0luqt2qe9h9jqmn7ajeqadqarvggquz72n94dd5dvpprppjl99lqgzavlp3nph7d4jwzp6txnhxqcecsrt0h5w95v7l8e3qtq274k8427nzl5j3ywy59ssqeagfedxpy3kaytlqmuevluk70tw50drkwaddaspdmfk7ct6s8vurtjg67atnr277xydursaj4trngkndqfhh89tmknmtukcuev77uxhsu3xv2rcr6dqw3mdy7qf6a72ltwkk5g75l4cjxc8ktxwnklcw0nwupqry4xayka9fqngyq9prc022sztk64fqr22qxcv7vtzf5dfhy3j4alqx2vnq6gzhgn8nx7trw8s09txmz6j7jm8v6fwn00evqt46ak5ykd46yfzgpmxuuxut8vxvftzfpq40sl6zhy63c5zusdstaeal9d2rcfpw9pr2pegr2cj307hapacguraxcfrgcq5q2evj9afe7cznp3c99vt44jtngr0jzfn0l6m8xl0aa3cvc75d3xge3sg", + "verifier1qygqqqqqqqqqqqpehuqqqqqqqqq930cqqqqqqqqq295qzqqqqqqqqyyyqyqqqqqqqzjjvqgqqqqqqqqvqqqqqqqqqqqyjhdhawnd33kv88ehql385slkd7lyr46jnf7yathmnxnr7at2j6u4nfkkvryujwt8rvhdfpuw94qq8e7sp33sjtyz53q89k85ttcg2cvadvuadeuq5xn4hgkmvm3qj93er0t2pjpd2p4kd3zy2gqmqd5qpfzdk973253ufzafqwd9879c7wpdv500a4xhetxkareamyl2qqzdd5hxl94vnmrkluzx0te32rkusqs20xswldqdgekfh6p25yxjhls20k59lsfn9az8jak9lr6r745ujsq0jq9fvugqyqchuca8xq6stq0svvu7e4xguc84t3s72erg4ve2z3nsr3jqv6jtala9j3xf5msksupprwwxkwwl58pv2hmr4g5h4xqym3nj6ax7ujx70np7egc4nw0w3j02m34eq00gssjq0pf9xfltxtef29crye3sul45kkawnrl6uzvquszlgltwtgx2xjlehgh0xpdm68dyjev9qxsleetpc33mns5jakrmqqryk8qgmnc56dzgcwm99eccq6c93576s946jztmuvgp8522y00jpck54wlcg3me44sk8usehsnjgm85zmypjsf7nlp06na927dtqp7u45jnd3em0n9h0wgtgvwh7lyhq4guwdfxws8mswwzfr5fjdtv0smjeq3r58v03amrhgr2ex4h7q8wapp8h5ug8vh0fxkt6yp3l2mas3l0jmmpedy9vx4lnxmjwn8t4wxyrdnnr54jxmp0wyu3sf6wwkqa6r2g2u9qu5km92fjnckme07mrxghuxh9ktpj9cvaf08sccdtdwjsnkyt9qu2x5ft27tkrskudrqpyr63x640xlk9wqpmy3edx58wxwzesmx22v62y6lshjv3wur83jlmwm74qqpd34ewmrk7eg0jfp7cretx5jwfv5c904v9qazfyluh5fpdczgx9fluayuukfwnqjq8tdwx3shuy5", }, transfer_private: { - prover: KEY_STORE + "transfer_private.prover.deb77db", - verifier: "transfer_private.verifier.3088e6d", + prover: KEY_STORE + "transfer_private.prover.2b487c0", + verifier: "transfer_private.verifier.3a3cbba", verifyingKey: - "verifier1qygqqqqqqqqqqq9n65qqqqqqqqqde4gqqqqqqqqqcfvqzqqqqqqqppl7qyqqqqqqqzuyvqgqqqqqqqqvqqqqqqqqqqqqcqaunljwmh56k2t4sa3ssex2xkw3s9sh30uyfnjq4yeg38kgfex6uferudqklkssu429k2lplcvq28f966yhpcx4jzdan698fzhpv02luxdd4dd6lfux5u5j9nvz2a4zk5yd6zegztlg0rvll27tly0gzx8nqr43yv4jnmspt6j7kcsr8fsvpux9wk9lgt4h386fjmgs2jna7r2ty5fked5kzacw8ay22wq4qp8850903z200suwyjfs3gn6wg08nl3nkvfdkn68fp45dm4hl5xejejdk3d2gxkeju354mhqna34sq2dk92eau0tw8h30plcy933zw6vskst42qkhg6tav9uqzx0f6kluee45ecamgy4sc833lzv3ke6kkq9ypf5tlsndqa2vv3xssgwyhz6awjvprrpzgs9hyehtrjp7c68ecj3h250q9mcf05cnfmrpxmdcgupzelp46jq6kvggkp97pc046fjac6m2nl2s2e63f6lxumcwvey03t2npryvnwmr486m67g4ajlx9mgpvmgv27qrf5tlq7nlpe6ekvnq53rtzwxa6spxpjppc94ntselrdw8fuyx2gevazqrx5dayls52xaszkm3xe365azkxq4n3dmps3mlmk494kxgx435wklfzneu5n8gqjtfh79gkhd7h58avjjju3j4k6edqwxnj8mf3m5qv65qkv2hllshe688x23qs9ttv2fspn93lqzutlyn9gs67rqv0zj8lz274jd43vaxzqv2yaxg9kn9fewancsdmsauw4y688ywgjqj2dekehun27qt5ew6kgl6u4uauju6trpuusk3lvjdxvp8u536pcmm7vzzgelc0cj845933ehsul7e5adr0fspgl76gfet7l5xw896705gf3qymc4j3htxwhgzavzmr0umnfqdd5gaft5r5wgax0kewjguazy0kue2277gpz0hqgvpx0a0y", + "verifier1qygqqqqqqqqqqqqvccqqqqqqqqqz43sqqqqqqqqq7jqqzqqqqqqqpj4vqyqqqqqqqq0zuqgqqqqqqqqvqqqqqqqqqqqyvnz4pl9kjr0ks3dtkz67gw8tyqzs3sxskt8xg6keqrrqk9nj3e39kg65lzz5sd5tug2ecrpmfg5peseqmv709nry8up96qwsuvpp8684njpe4qunfhf7ywc0a7lck9rdlfcred8krn60lgztx4wlrlmspnnkwe9gmqk07tt5lj3wxcpucpshz7ec6w5mqvspprmu88lr9tr9e7a9fqdye0jdajq46pt35hdjsruamruf6v73fu68hv5fcsndmfq3c65yjrmljfg3343vj8cca2js2gumrks9eepm3d7g02jw0se9eqpaj86kpscxu4vuvw7jedgt2c0l4fk5zqwdu3vfhrazjwedl5d0n9w75ky0924qjjzg3c04dw7p8uqxqnuph6d3d935zqavxtte336jmnpk0hkjn80cejqfljl7w6jtnl3tedhtdk4cx207c7lud9xagzcp760x47h3hrw68syru4rnr3zgy99wcpnglpjvndzrjpc3z8c53xyqx0jh8cnt6gn92fgqu8a5huespxgnckqgttq8aa7xngxt9f5lpq2zgakfhtfvhlcy66k3depln3x67ck2m9t0fvnetjygj6h2er2fqqwcf2ghjp5fvq4e68635ql0lv5uv4c82575dcv87a0y8745g6gvjenh49zppsekc82dect9ggp3aqxqnc73dmd38pe4x7v9wwv6namfe7337tczyfz47dyxxzy8fslktv47yn8r87n0nap5qlc9gzgd2yq8m6zj0ulzgaqls2dq2atkfzxu5rjguvcjxnmn7hr8uxgxuzrwtmcftz4emn24vpq5pcwxf29a7w5p80e7f2tv7ags5k0pj9fghaklzm5xrakpsk3gv4xzvzqj6u2denjw60q777r5889xqrvchhtac4xspue4mncvgerscq4dslzkt4mg4zuv6t6gahcvnm2p6r02ns62xsdexs8jxt", }, transfer_private_to_public: { - prover: KEY_STORE + "transfer_private_to_public.prover.7ca1421", - verifier: "transfer_private_to_public.verifier.37dd126", + prover: KEY_STORE + "transfer_private_to_public.prover.1ff64cb", + verifier: "transfer_private_to_public.verifier.d5b60de", verifyingKey: - "verifier1qygqqqqqqqqqqqq45vqqqqqqqqqr9gcqqqqqqqqqdqpszqqqqqqqq6tmqyqqqqqqqz302qqqqqqqqqqvqqqqqqqqqqqdr77uvehrw3k8a2ajgeecvtzhfs7e0jarvq699mgme43pz60ez57jm0drlc32arllag3s43xcgvqpezqaxl406uz8eedpe36rxferaxs5sz7w7kxvcj2xys26x24gu4jzjt2fq8s4cjkntp95qs28txjsqsz9a8vqsypzld5v0296aqdt33vzw6ngfacpvtu8tg0ppuvhpkmha7zvcv5v55ekn64sj4heqqsvqplcrkpncg8km3em4grmwp7dfveggayzdu39phkyfrqlxm96mrxzhpmca76f2995j7s787ulcm7epqtvr2wg8fhl7w8shyz5vh203zvmtt69w8hn0349tlx78g0enafs7vq7cfk9tmqpf734e4tzkp83s2qw7fqx4n2chh5ql7jy7dc9raxmzzqurnkctlq0ul38tr9mrw3hqrez6jt5tn74f20x4ya7aygp79sq4jh6gftu7wjrm6dmndm79ynr7vatxckar0tawsr7h08jvacd24pz5sl636vg8dhvedhc3q8ym3rcqjhs2dttxeqsp55kt5srx6qdt9v4ge7mqkptthzz3zjsg8ftd209w590ngn5xmpg606e0w3d8h9cszc7hj6swtk9xucm9vsz8kvcmcz2ny5mrv6wyy7nzjaq5rvsxsf4g9lmaa5dh8jvrhd78wynfaehcqvn7v93c6hqz7s8znzfcckgygetl7anv0a4g2x9tgey9qzvuy9zvjh0mcd3zcexa929cs65hvtz56qdwvfcevx2vfmcgwp5qm4xzny66z4xplm5ajr6hjvt55jnw8mcpf8unj3qk9z2w9xrtal9ndnru2upcju0yq3cyzqg7sejuqclc4wwu2wn7ceaxswmt5t4cekjrfg7zgxwng8pu0l988lk47zg44asr75szg6zn4k7sjqf393zr27t9e29plyn29r45l6j47765f0r9tw489tsgwqgu2", + "verifier1qygqqqqqqqqqqqrwjvqqqqqqqqqgpycqqqqqqqqquvvqzqqqqqqqqceuqyqqqqqqqqyd6qqqqqqqqqqvqqqqqqqqqqqr8z97pzqh2lxcc4tasdu784svuk6lv62sj78flptnzqks3hyu42ymryngdzr2mw6j4nxm4cmx8tgqnfzdkccekds6nhs4c7t2hf84d38jkuufdrf43ls4zm9htqarx9mv3gswcxp74kelgy36yhpsrfkgzdr8vy8580sulvaw36pxjjv0j543rml679z305kt2ju3wzarmsukzkfp56qnc0pjuptzajkes95uspd0uz3fd9fu5vmxwfwq9cj5qh0yjq398h729yygdm0fzkrl9g6faevalks3yc7xl3le38k77t3exqqnn82yyjpunpn763s8hkaguvn67jehqcvt8tvhql8skpesm9tm2hgeryk934h8c8cdcgynjq5cj2qer7kkjc2rrmg5j6agac0ya88up0sl2skxsvkw0rgxlgxjtjqc4g8c3xssq2sk6e2dufvc480rj8vqcrhtqsjqdkzq3nanlvngrjxchnzwfywwjphj5jeza2lyynrk5awz8v6jtwgxu2fs6uqrykz5lz6qpt2dfs670clhjpagxny40nmgeqtf9w8hu4v7yjpgwpv89v05u2ahdryu4538augkjhdx3hvfahwuszd8zyqmcxhrcq039hcrkd5qgadhj257vvrf27dwu64kl0j237efzvt5d360umxw3xk6tej5cxv9zqxqzc7ryqndhttaw5act9kwt8kvxtdjnzy99q8gzmg2429f94h6csrqejzc4n40xjcsdwn98hdekyqzytrh35w6t3r5d86kqt897kv5mldx9w06h4rldk734hvn096gt7e4smleja7canyfpv798cksshgq7hkyt6elvzp3rpj9nd84ykt9lzgjsswn4y8934ay3575u3sx7mkeuca0zsere2q0jmlsl6w6v2qcq424uhnmqn9q5vw22jgy94pry2junps40ug867d79h2zvd0n02nmlz05hd", }, transfer_public: { - prover: KEY_STORE + "transfer_public.prover.2941ad3", - verifier: "transfer_public.verifier.ed98d35", + prover: KEY_STORE + "transfer_public.prover.a74565e", + verifier: "transfer_public.verifier.a4c2906", verifyingKey: - "verifier1qygqqqqqqqqqqq9hggqqqqqqqqqtsssqqqqqqqqqk4aqqqqqqqqqpz9nqqqqqqqqqr596qqqqqqqqqqvqqqqqqqqqqqpf55jjwuf23j9etvgw8ewld2xx6u9as0za0w993q5374fklcucxaqmn8mdeyltg9w6x775d3mxcyqs9a0vw2mzta52usy60c9n3dht98pnek76sg2s7vnjvu3dpyhlyzaqxya3jjt0grk8jrc6z0xcajsrlsy74sgzfl5g2zpxv585aavv44e28q2fmhnw8gw4nyfg9trfn3d8d39yuze6rqnx70aqfqumdgzqqrad6kmnm6nrkww2l4xu0gt4t467m24hk60ra9lyd3jkzs6v8l57nmupn0dz6t0k77lutj68z4vqqruuqwuh72gc0xl9x8c6d0ufuffdfp63x82xe8r65a25qhx2d0n44ve6m4fln2m9ck8tslh3kqa3uqn6cg53l8x4yv44a00kpy5nprz0kmf5xm62xkkny4vua85fanzq6u9zsqg7mm3yq3p5s22m0xd54cq98um775vscxfnsf54gzryqkt253v0pynrllxr0cymt6w9l05trnlw7egg7f4ld8d5jdzxky82m6sq025a96ewr9vmdnyhve3724e6hdn60yrme4jagdtjxavxhtmm2zn86aq0v5t0zgdesu3m79euw3sqyqzm93v8etujswag742nc6zugwtccmtxxfllxx7vzqhygzvqk0ujgft2hhltetg2w5n73dhz9ufnqgdqmqe00eq08amtpxs5kl3c5hdutgq9zmfac4ke08frt0e09vrf0y6kdh3z3hq08d88gp7n8c22vqdr6sqyg3uxspk0x77rrr43q284nj62ll7dufxwq4hpx0qw2dgsayw9wzjngh0l00j9kah0mvx25yqmumjessw3k7j4g8esk6u33wk3344x0nfha9cu84lnp649jhdmq7rwxumel7xq6nx9syzs4tn7ncgqrvk83lza285cz6r3gf3j79n4c4pmtn42vsjj2t3f57ceha4kvupct6ss4", + "verifier1qygqqqqqqqqqqqq79uqqqqqqqqqp2tcqqqqqqqqqwd4qqqqqqqqqp5ydqqqqqqqqqqvyqqqqqqqqqqqvqqqqqqqqqqqre7drur40rst43dq9at346py7hkmrhexarf59f2tjt4stlsdj5uwrgnrkjjej7jf3djk2w4njtxcq0mezac793craujm8mr7wutcqtu2aday5g03wl0cu2572fsrtpyjhdyqlh0447z7dshlkhksjsusgp4ezrvc0n64fwetfmml3kvfg7n03w2e602sl7et4cpw98hgpzxwzrmzu8r3x77v49njysy2lp55xsqh6t5qjvhyl5a7nzy3e73y7dzvvs9p450u0s8g84prqnrk6jeah89c6882uzqdvxgzcedfmsc43uq99n3ycrjh70ys8n02pyvdvzmu7z608desdd5yw9dc8v3ddrdddmrzz2pupe09yn9esy25cfzmd0wqcgjdxm4dvlt2t6k66lw8e9ccj49qj2ahpht62kh7p56xpvpekenq2arng2t55mwxe59mqpkp6a0yqlwt7tdf98rt3kqlr9tdtq6hua3wrka0mqzhva4nhucxn9u4w92mly69jy2c7cqm5ftnk3m0qxy9spaxwfz0xkqd947yvf2zh8h4y59fltxdpeu4utpv9zw0cr7ad9d462qxyc2f05lezw6dwhcmep942qqv38lp3x9efestt5pk8rplvmrk0zz9zel48l8h9ldfzyd8zyr7knze92cdyanez6k7q5fu6tnw9wqrywjnhevaujz20xn0h3n47g85zs6ejfh7z8jt9qjesqgmdymvcxlceudkdsl49t5r69c4mg7hfwyq88z7zn0efda8fdjmhz8aaq24q34g2ekdzr5w9em3cev2ktxtmupqwltu0nh3fjzm04cy3cgnqlnqq0chzq4rs2dmfjwryxrxxgjtdcsnn9fpwykkxwfuervtznu3lmvhhpdflgwgm0xklu6c0xsxt9dfcp29w2nz6zkjetz7cqremg68eqxq86rn082czp50ldw9qkq6w3p9xxg4hrg", }, transfer_public_to_private: { - prover: KEY_STORE + "transfer_public_to_private.prover.67f57fc", - verifier: "transfer_public_to_private.verifier.f2aaeee", + prover: KEY_STORE + "transfer_public_to_private.prover.1bcddf9", + verifier: "transfer_public_to_private.verifier.b094554", verifyingKey: - "verifier1qygqqqqqqqqqqqqswsqqqqqqqqqpuaqqqqqqqqqqdm9sqqqqqqqqp2pwqyqqqqqqqrp26qqqqqqqqqqvqqqqqqqqqqqdmukmllrvx44ed40um3qe2yq58lmvajsqucq2x8egmls6x8jyeusvn6pzcph4hw25nrsr5p6g60ypayclhdergx3zx4x67unesl33fxv6xkm5tzf5k3ehdf67faut52l5u4npsq0zqlh5w2tk02jaj8hcq4z6fypqg9yh83xwh6z6xcvx3vqpu08whfuvcefk30xg5z7xu3mqleshpmzu6060aucm90jjtfgrsqau7shuwwtgghzgcaxj2ruje6y5jag6jy5nrvgxuyjdawg9t29upzv5qzz2zl6gmpmlzum58du4hqqhnrfc2uvx45c8zp5xa68pqlvhzexmucsujwuvff6f9jrxpg7jtretg9er7n0qsv34jtjjrgpqqzqq50qa7vljmn20lsfu2zc3nnzntrcr5wt880ywdykya5jv23cywlc4nyvdcqsc9wxly77falzt79cq9wuls5euc7d8thyqhnuehnjztfshr5syks9zra6yrt7hk6rvnv5d9jypehqkfhz2m0avcwksaxgqpcgw72pg7edz4fdfp4tfhynzarav9yrjm09gu2wgfcde0cq5kd4uq0znmen5jeu0wmfpden3c50rqpjjdwgyjrsnffzfjnswa7dcacz8dgk7h48q0xtz442hvalaeveyxm86e9t5f437krv5tjrenzr4vqgzm8uag6azkty05y7ngfpwzkra9ytqqhfuvp5h2eush3m4y2cxu3vc77pzc7wmesdhhhtqzhxc0qqujxpatu4p56u3hh4rnzyj7pqnqrc0s2h93vsjnj7uax633d0tk266mls44rwthp7c4y9lxy5naqvqqr8cy3hj46zgjlvkk7arh7vet60gpqz68ynrawxqacrry0k7tu3u8xtkp6xeg5jeumu4g7uaw9mcr7u9qxy9tjqma4r8awswqg9k8306f3u408z3z937pmhtu9gj68qp8h0zpz", + "verifier1qygqqqqqqqqqqqrhvqqqqqqqqqq8kcqqqqqqqqqqu0xsqqqqqqqqqw0kqqqqqqqqqreg7qqqqqqqqqqvqqqqqqqqqqqta360tn6dhv5z559ejfahwq88lxtd498py5p3vw5u3rwtfvdzpxq7fuqdahsrennq80g8yc6wqjyq8ahdv3jzry0mxceed0jr2cd0wye3e7782pg3phsu8h7hcapfgdghcgg2ykfc2682xefhsp3plqnqp692097k4ja82ecc2descl4d6csug04cz2j9a5pk3djx6xde2ghgq7uqvuhsg47ksueeetvc7mh2qpvqjmph9eekp5waqunkeea9vkvzyl8culmn5t7l9ke3r7uz8v5r8njjdkug6va9vy6axx9aq2kxaqdd9ll2m3j7qg7eyq3k2pnhq7gx2kv8vm3yf5pyqtywt2hvur5uv45y5st53qh970dktd3k709d9sqwv0d6qaksxjcp2cxu282hcewhy66vfs5kp35e6k4shdmjzmglyqqcsnupv8xwdr3596qypzshnuuq8rpm8pyjwtws63wsazqt8tlqhkkxucf0zjc384wvv2jemdnjwd6hn9745h8qc4kqp0rzs9wkx0hcp22xzuyyk7gpsc9ahw7pdenpje3etp37lfrcuntehl8wm2eudrh0j04szjzrv0n3r2gv04mgau5ysqtdcddq44xtt6t6f08c9zuhqukk8zy75jru0exufnh74u97d4xwe005ug7ywmcnyz8u6nvdav2xxqqzpg0luhghl8xu7g0cjgxse0lnqqedc7cc47nc048h2t44gedjq7f49ghajc9gwclp962v4q2855qvgdtkmr29cpwwq8vghlcjv0g6k0a0xa8yrmmnd5l7umnuqcd4x9rcejc3mkjgpw8y6mue2n5tx9cpahnw37yey5k38j98dnr9jss00420jvk7nh59hul7ef69n8ktcltl8f0t93rya5y8d2cspyjp6c7crvg2d4m37z78dualsqr9u7vtge07psdtl4l9785fxl3wgf9u277puvgvuq", }, }; diff --git a/wasm/Cargo.lock b/wasm/Cargo.lock index d84b7af7a..b29ffcaad 100644 --- a/wasm/Cargo.lock +++ b/wasm/Cargo.lock @@ -1614,9 +1614,9 @@ dependencies = [ [[package]] name = "snarkvm-algorithms" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0050550e70d891e2a3be9ed25e1b89ab84050fa5c22934639a53326aa99428a8" +checksum = "3f83ddba1b92dcfef4b01d7bc27d83b66ebed671db7d7ea2ceb9f1837fa3dcbf" dependencies = [ "aleo-std", "anyhow", @@ -1646,9 +1646,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f11611e9252cd7c1066437f31fba0e17eeec1406441a3adfd277d32e788dfea" +checksum = "96d2504479eee16718b0f1118d804f294bd228abf09f6e45e0cae2de1bea94cf" dependencies = [ "snarkvm-circuit-account", "snarkvm-circuit-algorithms", @@ -1661,9 +1661,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-account" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "535744dd2ae37d041cd93190cd8548aeffc7bb22bbbda780a40d78a57ca07ef3" +checksum = "4e85a791132c4588fd1dd0178372abfb4679e19b727d5473149ac0720d1f0646" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-network", @@ -1673,9 +1673,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-algorithms" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c797debdc9c666125b7713be46c9a2986312363da4188a902cfb3cac1f596ab4" +checksum = "7e4485e73705f94ce6025b02d29f27dbcdd2d7737fcb0b1a8934a17ca06a59a4" dependencies = [ "snarkvm-circuit-types", "snarkvm-console-algorithms", @@ -1684,9 +1684,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-collections" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a15e31d02d38cd3386705731669b24e7a35ec0f8497fe2de3f2fe81e4db2b793" +checksum = "7affff6b1be13067c042a1ae5a88b07c4436c4e0c6677a98c0abfd3f3d20da27" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-types", @@ -1695,9 +1695,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-environment" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b31636b4de9d439ef2e1ccbbbdcc93d62508d742c329d4d21435acba74ba3505" +checksum = "119f99621408d4c301ebd33891dfab60d374d1d234b6f166f28de3c7765d0ec1" dependencies = [ "indexmap 2.0.2", "itertools", @@ -1714,15 +1714,15 @@ dependencies = [ [[package]] name = "snarkvm-circuit-environment-witness" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f336969b6a82cd0c342ef5fd237d576d323f71d42977836fc0b0ae059221fbec" +checksum = "95ed30aec3790bb687516e0fd07a711beb48dc7c58ad290b54e8f2ca8669ddda" [[package]] name = "snarkvm-circuit-network" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c3eaa5b5aa3a52851e3c233836ab2e63571e6be258fc8a26a27289f09f7c5f2" +checksum = "831f4f76bda79240dc9882b13198a073bde89fb5dc4dbde8e757dd4120ac3463" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-collections", @@ -1732,9 +1732,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-program" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedca89ddc7efb6261b18ddfb6e98df5b683d9e51745bdf969eba9a271918cef" +checksum = "ff21c8ef94092350024816cbd4a7c8c5794dc9ca19ae87cb2870e03d940b1064" dependencies = [ "paste", "snarkvm-circuit-account", @@ -1748,9 +1748,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27ac2f802c10be39d08d6a264417848324160a9b0ad7f47bbfa851d51a682cf7" +checksum = "a49dda0564fb337a715a156cb2c9adbbfe7b753805d25db79a9e0ab867fd859f" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-address", @@ -1764,9 +1764,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-address" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98b73f7e8e8869ad99a8d1f144b11bf74d1ea28bdc1eb5b6429a4786188ae7dc" +checksum = "476d7cfe33d3364c5dcee524d66e4b71f92f6b5615c2ae54249fa9960a3e8723" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -1778,9 +1778,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-boolean" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5857740058175efbd4337a64fe57160bbb6e616d9aeb62555010507689acbd15" +checksum = "7819b6cf75c64f533c0031a7caa04e4dd8f11b8b81d858b1f36eb2c54e5a020b" dependencies = [ "snarkvm-circuit-environment", "snarkvm-console-types-boolean", @@ -1788,9 +1788,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-field" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ed93b155384602119256a858d8a75dfa28199408a4f92ecb2768008692e8eae" +checksum = "b1699d379214be5f1090062f370a0cc956dc91797231ce0489ee457fcc7c1ad3" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -1799,9 +1799,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-group" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f81f2530bf73dd7c24b67350f5750471f17adfc79286ff6a8e64f754dd2ee43" +checksum = "f34b8e6e90bcdf9bbdb72f9e74f8173511e63162584d226dd80da312a76aaa37" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -1812,9 +1812,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-integers" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "970b3a1a6ca6de376b24bc30624dc256b28969b93f0f1534d9dc1a286900414e" +checksum = "8bedf9a68dcee59927ba95f9132dc8d20b575670f60f8d98f5a9a990a8e5ad77" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -1825,9 +1825,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-scalar" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4ebff84ec736c234bafe88aff44d3052dc6be2cebc74ec279d998bc550bdeaa" +checksum = "0b35492a96e5c6a928d926f7ca4b4c44177b7b6fbdf21753e21262f1341f4373" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -1837,9 +1837,9 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-string" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "554a349c917de7725fb38a1e0d3fe28cc4c2c7739254f7031fa9c229e198afca" +checksum = "d275d4364a8cc13ae05f74d61558ed41eb6f115f50e2327f7dc6156602f7331a" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -1850,9 +1850,9 @@ dependencies = [ [[package]] name = "snarkvm-console" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7acd970a8091656d2fa227b5fc5394b5ce25703b3ce3d5b67e80fa4af69e5c6c" +checksum = "7499c43be86be04f899f412681d51d9162c4fda1e3f8db38623cd45a1e4f3794" dependencies = [ "snarkvm-console-account", "snarkvm-console-algorithms", @@ -1864,9 +1864,9 @@ dependencies = [ [[package]] name = "snarkvm-console-account" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4226a7eeb804daa95cfa64c88d2d4d0b6463f8bc8d5e51056aab2c88700cbe1" +checksum = "9e9e1f9f492eba725ec3ee2fc8ba59b842ee05053c3320a3f9eb57e89c08fe11" dependencies = [ "bs58", "snarkvm-console-network", @@ -1876,9 +1876,9 @@ dependencies = [ [[package]] name = "snarkvm-console-algorithms" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d72a6a58ec8d923ee54c6067bf31f1aee5f5a96b23c64fd9d3610e1a6f3e88d" +checksum = "b43568931447b9607abb65237e5273a62fa5bdbb3ef2f4762d0261942c203ee6" dependencies = [ "blake2s_simd", "smallvec", @@ -1890,9 +1890,9 @@ dependencies = [ [[package]] name = "snarkvm-console-collections" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0c230e5333e0e7ea242e4530a638f53caa453e0aa4b6bf3d96128f6103c248" +checksum = "34c51ea7d841dc5e49e079dd10dd1be224babbdd95672cb866299215b4d1c4c3" dependencies = [ "aleo-std", "rayon", @@ -1902,9 +1902,9 @@ dependencies = [ [[package]] name = "snarkvm-console-network" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67afd16a1a2d104b91663d6f9afe21c6303b4953ce4a8461c10511ceb56a4bf9" +checksum = "bec16c87e13f315800e7a02f0121705c8181bb1143dfccb21155590e66d71ecc" dependencies = [ "anyhow", "indexmap 2.0.2", @@ -1926,9 +1926,9 @@ dependencies = [ [[package]] name = "snarkvm-console-network-environment" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79d990553154f07377420524ebbf7997901a67216ea7131db495a27082f05acf" +checksum = "d259da537db770068e081fe4b99bd98f24bd322dd76d8d52ba3062a47149ff21" dependencies = [ "anyhow", "bech32", @@ -1945,9 +1945,9 @@ dependencies = [ [[package]] name = "snarkvm-console-program" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda66bc63c31f4151c002ea6044ae5dfe0858e5c98faa29caed9165f5574187b" +checksum = "b08ab52ad281f4ab737635bf05098709070d5be238b3ee79158d5c0de71f7f82" dependencies = [ "enum_index", "enum_index_derive", @@ -1967,9 +1967,9 @@ dependencies = [ [[package]] name = "snarkvm-console-types" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab7cf53908e11dd20f4b2811677e14a1823fd0d18c8bf48211b67c3bd7e73dee" +checksum = "5023b512da7c0ec997b22a11a046b0caf66a9c06dac96e63b2eab38e3254ff47" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-address", @@ -1983,9 +1983,9 @@ dependencies = [ [[package]] name = "snarkvm-console-types-address" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1f297ce3c20b93f4f4d9671dc345de289fc2c441ad289a79a6c6ca6862da890" +checksum = "256ef9f8bdab292d7791b37f5e5fba4c3bf5da5c0a71c85aa19981bcf3a34298" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -1995,18 +1995,18 @@ dependencies = [ [[package]] name = "snarkvm-console-types-boolean" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f44f1bc3bb525eb398fb0bf2c13dcea8110758d2198559b9b7ea584258b6e60" +checksum = "a0c2851ad8bb4bc84561529c4601924ff4dbd6460a46eb99ad433cf1a78097eb" dependencies = [ "snarkvm-console-network-environment", ] [[package]] name = "snarkvm-console-types-field" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e42ec5c5a4da6fdfbeb146fda520b8533a187506e8d129e674ccfd3581cbd95" +checksum = "54fedf4a92fe01eb9d2a886c9de9d52ee96f60f04031976bcea00f3c9ba895e2" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2015,9 +2015,9 @@ dependencies = [ [[package]] name = "snarkvm-console-types-group" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d240f9913f3766ff041ff1bb23423499859274361953728ca4ee89c6a85afc2" +checksum = "c6701a6f9804366c63e1176174823f2c48a1bc2a94164bc1731cb0fb5f64dda4" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2027,9 +2027,9 @@ dependencies = [ [[package]] name = "snarkvm-console-types-integers" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74ce50a812ef5aaf0ffbe56850906147a12eeb1e52f6c360066e6a882afac82a" +checksum = "e5dabb0f536fc7b53444c20d68b77369f33eb37b4153b947e25ec9d1a57c051d" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2039,9 +2039,9 @@ dependencies = [ [[package]] name = "snarkvm-console-types-scalar" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3c810e73cfd13fd882c59aa529cd110c086440f9663aae2c5d8cfe898853cb3" +checksum = "1ba68111c567922c6f5d72638361b766cb9871b686c2bee633ea83af1a525b04" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2051,9 +2051,9 @@ dependencies = [ [[package]] name = "snarkvm-console-types-string" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099e02b9227a7fa64df67202f3e16977e3ec6aaffc9099e1f313f566afa15251" +checksum = "03a9537a4b0769d08c9a08e2ffdbe7976cd33256d8d35b2c5ed74e3c359f7ca8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2063,9 +2063,9 @@ dependencies = [ [[package]] name = "snarkvm-curves" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bbd8ac401c401aa420dca3014885f0a4685a8c4f0f71ddad2e999e5c8b58ea7" +checksum = "65c5e993310c107527fb3e188604bf211fead992acfc93ed44e3cbaf4d0ad373" dependencies = [ "rand", "rayon", @@ -2078,9 +2078,9 @@ dependencies = [ [[package]] name = "snarkvm-fields" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dd6bc4c9354f0d781f8b911ff8440333ca67e71c4a8dabb48dfeb126015a015" +checksum = "1163afb752f484f4d4f9a54af171ce0493c558390a6787259de841f32dda6f5e" dependencies = [ "aleo-std", "anyhow", @@ -2097,9 +2097,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-authority" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84440f065eb4c5355e5e2ab0259ebd19af4991938c0a321ea38a11a1a00d168a" +checksum = "a497d53f3d49660d1b76cd2001e9d6c0acdab133391576cca56b888b541c539b" dependencies = [ "anyhow", "rand", @@ -2110,9 +2110,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-block" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea858b84ce304804390659b8ab8da85fc30b3380889224ce517cc9ba085785d8" +checksum = "5ed1759fe75c5441b815c16f493447d8bed844d8cd5054c237d20e7fd31b96fd" dependencies = [ "indexmap 2.0.2", "rayon", @@ -2129,9 +2129,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-coinbase" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b2eb406164fdf5edffe00f694e486b1e0426e259bb734ee85f80ad5aa8d762" +checksum = "91df6b23f0762bc9d3fee18f5d41983b230eddd030dd9551b27b3f07bb81f346" dependencies = [ "aleo-std", "anyhow", @@ -2150,9 +2150,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-committee" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6d69fa022fdea3166c43c393b1d39db9845d70afc8ca520c0ae4548609a5c43" +checksum = "f608cd8f300b261330da4bad52b77ade130b7d11479d18a2524abe475bafe532" dependencies = [ "indexmap 2.0.2", "serde_json", @@ -2161,9 +2161,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-batch-certificate" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0161c77c5af4fffe0635d84312c3a3de14ef752809acfdf0400e8d17a0550231" +checksum = "6014a348cebc0c060b2dbf58a406af58fd2d16e68da8a3abc83e5b09bc923df1" dependencies = [ "indexmap 2.0.2", "serde_json", @@ -2174,9 +2174,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-batch-header" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff38cb3bd5b871a8e3defd2361eecd28bb9c252d15d9e91c2a4e99b9138779e0" +checksum = "8622d7af201d5659281948e77b70d93c94ce84f0451a72111888b388817809dc" dependencies = [ "indexmap 2.0.2", "serde_json", @@ -2186,11 +2186,12 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-subdag" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f8cfdf2e44685cf7db8a0a43903b5adcef41abe3243513ea1499f34a34b4c98" +checksum = "9527434e9e8ecc4ee712a39fe08a50011fce52364b4ff87b3c979e135cbd6375" dependencies = [ "indexmap 2.0.2", + "rayon", "serde_json", "snarkvm-console", "snarkvm-ledger-narwhal-batch-certificate", @@ -2199,9 +2200,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-narwhal-transmission-id" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4aab8836c6e4771779d3c1f7a9e8c91c4516c27832fc46ef75650a18cf5712d8" +checksum = "4d088a1f301d0c3098007fdf6911a9aab67f29cf741c8679f7945f1a7753d83b" dependencies = [ "snarkvm-console", "snarkvm-ledger-coinbase", @@ -2209,9 +2210,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-query" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39f8102d82acb223db0bb5e73be3cd7cf01d61194ce49b5d75132cf9974a8a04" +checksum = "2b29b445fdd8284d719fa069935b960e204d5edad9ead544698ab2e348c71d76" dependencies = [ "async-trait", "reqwest", @@ -2223,9 +2224,9 @@ dependencies = [ [[package]] name = "snarkvm-ledger-store" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59c1792e28df2ab85cbeb6ae43b40eed2580235b8070d7f74b199a0e50cd16e2" +checksum = "1d2f3712e245c6d7de7c64a46621360847c289c8ceb57c91c94333d4b63a015b" dependencies = [ "anyhow", "bincode", @@ -2245,9 +2246,9 @@ dependencies = [ [[package]] name = "snarkvm-parameters" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "169f7733dfb6b38b47e8ceadd0df4eb16faabdcd9455596b81a6c275cee0edc7" +checksum = "0bbbdba534b285073f5f4b4073c1fc99b3153d11b47328617d40879a5c145501" dependencies = [ "aleo-std", "anyhow", @@ -2273,9 +2274,9 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c8aeb86bbdf52a10d608d4a4a908b753dd2a109a015aae8bffdc39893b1012" +checksum = "ff165e92b0f29a8d6a465833db2e2418ad89e6ad464b65db856de16ecc4ef5f0" dependencies = [ "aleo-std", "anyhow", @@ -2283,6 +2284,7 @@ dependencies = [ "parking_lot", "rand", "rayon", + "snarkvm-algorithms", "snarkvm-circuit", "snarkvm-console", "snarkvm-ledger-block", @@ -2298,9 +2300,9 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer-process" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82f680a9b03e6f62e007c3c486a3b81c02951fd8ce6278885049c980bdfb642" +checksum = "b1ba0c718c8520c443a998ae06441deb15020b4f200ad765bb43a3586ad4b476" dependencies = [ "aleo-std", "colored", @@ -2321,9 +2323,9 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer-program" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604d1a75398700fd6177d894096d3d3d314d7e83d2360f51d3e4e6b4a5264ad8" +checksum = "b8d29cfa2a80bdcf88f02fcef88620ee9b1806260c61fec0e749ce2f46f3f4c5" dependencies = [ "indexmap 2.0.2", "paste", @@ -2336,9 +2338,9 @@ dependencies = [ [[package]] name = "snarkvm-synthesizer-snark" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a685bbba09aeb531c67308582002a3b7fb756e17e55fb78795336c659acc01b" +checksum = "bf09606ff2cb8ce7535a9d48403e6a33683b80e16a0469d8ab2e22b39928009f" dependencies = [ "bincode", "once_cell", @@ -2350,9 +2352,9 @@ dependencies = [ [[package]] name = "snarkvm-utilities" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18983a4b5897b2dc5464c0c252266d3699820dd61c31869c738f9b67832155bd" +checksum = "9e4eb9facf3773f9db81f971651f6879d09b5d237154866fed911a0405ab33e6" dependencies = [ "aleo-std", "anyhow", @@ -2372,9 +2374,9 @@ dependencies = [ [[package]] name = "snarkvm-utilities-derives" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e0f887760a4ea59fba3b15030591c242c86e290fb7bd95568cb2c3b9f503df5" +checksum = "8cdfb2f27da0e1cc4c104d9a88ffc554996a4d3525ac56adbaa55d8ba9e477bd" dependencies = [ "proc-macro2", "quote 1.0.33", @@ -2383,9 +2385,9 @@ dependencies = [ [[package]] name = "snarkvm-wasm" -version = "0.15.4" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d160501bb4c60f63c86a1dff6a6bf054927746851c67be2e42e20f02f3ec5271" +checksum = "a4fe6f08f4c55464bc643b176727150b56ade1b291fbb204122197b6209609c5" dependencies = [ "getrandom", "rand", diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 6d8e4ba90..8af4f0dd6 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -22,29 +22,29 @@ crate-type = [ "cdylib", "rlib" ] doctest = false [dependencies.snarkvm-circuit-network] -version = "0.15.4" +version = "0.16.1" [dependencies.snarkvm-console] -version = "0.15.4" +version = "0.16.1" features = [ "wasm" ] [dependencies.snarkvm-ledger-block] -version = "0.15.4" +version = "0.16.1" features = [ "wasm" ] [dependencies.snarkvm-ledger-query] -version = "0.15.4" +version = "0.16.1" features = [ "async", "wasm" ] [dependencies.snarkvm-ledger-store] -version = "0.15.4" +version = "0.16.1" [dependencies.snarkvm-synthesizer] -version = "0.15.4" +version = "0.16.1" features = [ "async", "wasm" ] [dependencies.snarkvm-wasm] -version = "0.15.4" +version = "0.16.1" features = [ "console", "fields", "utilities" ] [dependencies.anyhow] @@ -98,7 +98,7 @@ version = "0.1.7" version = "1.0.183" [dev-dependencies.snarkvm-parameters] -version = "0.15.4" +version = "0.16.1" features = [ "wasm" ] [dependencies.spmc] diff --git a/wasm/src/programs/execution.rs b/wasm/src/programs/execution.rs index 2cbff62e7..fa8863ad4 100644 --- a/wasm/src/programs/execution.rs +++ b/wasm/src/programs/execution.rs @@ -94,19 +94,19 @@ mod tests { use super::*; use wasm_bindgen_test::*; - const EXECUTION: &str = r#"{"transitions":[{"id":"as1gvakz34j86meg8m9qty8wvd6q5g0kq4yjann9rxhrdclnudgsgzsun7fqg","program":"credits.aleo","function":"transfer_public_to_private","inputs":[{"type":"private","id":"3559404182723855987648325562772737043873359890923745236730615477378882626975field","value":"ciphertext1qgqzl88kmsf8jqk4cy2sqvm39vty9ewr67vwpxhlzmc3ajktk5a9gq9yq7aqswatm5pzh0a8cxr0quc2nfkdsttrrwt9t5kzq0a3pklvpqc92jxy"},{"type":"public","id":"8025374784680103421213924561521377858956249097395704706773833540838625702105field","value":"100000000u64"}],"outputs":[{"type":"record","id":"3277244183946285525543523584633273639940105079643779437822225084020101728660field","checksum":"8274780032857121049950687901286913283302745423768457384536132105227065290006field","value":"record1qyqsphr5jyxc0pp4w3805p04gmjgnxwg9vy3tsgfegq57v82qz3qafg0qyxx66trwfhkxun9v35hguerqqpqzqqluf6uucn2gewf2k3p6z0pper9fcg60g8nsc82lsh2fq3lhqqdqq6jan76l4jtmvdjfeync9qwkf4ql6hnqp5gpp0eu4wqj3f5ag2s657ekl3"},{"type":"future","id":"1892803943572610344093204513122467255144277953861191406986017276042122058500field","value":"{\n program_id: credits.aleo,\n function_name: transfer_public_to_private,\n arguments: [\n aleo1dreuxnmg9cny8ee9v2u0wr4v4affnwm09u2pytfwz0f2en2shgqsdsfjn6,\n 100000000u64\n ]\n}"}],"tpk":"2476663388883037700295634254861333867987742331829418410904500131258030567772group","tcm":"7477891320807015200552190699459917336363441387680200590247086896037845762610field"}],"global_state_root":"ar1ekees06ce437zyrpy3xryal7wpfsw2zlsvwrr0rrfv3ywc8ehcrsg0tlrf","proof":"proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq2dazvpa4wlcwvu4ygfjuqd26aj2tp59ueuvx3zk4xkk423la6jnr34wcmv6gmdwfgpfxp4ftjpzgpqx72njl8q2fk08ava8ytd7vdk3rnf70043dxa8dp5pqhgf48qarevw0p29268477963vn3dswz5nyqx35h0juczarc8sdfwlrn5zr7r3ralstfqa35fv6tj6wwmgrfhfyjswwwlhzdnz96a9zf86c4cz2gq9smwk5xscarjsxtuur0hajrwq336qq60pwh4q0r9exlnhw53lgnna0ksuesa66yjxh8j9khkxdevquhumm4w3lwmelthm0f3c74gwsrrwzdqjcrxpjzh4xevc59npgf4dq25m9k9u8m4p04tz5ymhy2dsrpttw4w40uuucexmu3nr8sa8ej3ymre30hkmvsw5faqkrqfnqtzdp8snqx0cftkj48v0jr2nqfkqsprd58zg4x0ypsxu74l39g6nkq65qr2khqlvy68xztnyucppzzv4a650j8f2ry705072juvynhkptqqdvn9kssrseedcrhkxxscvusl6tzrevlmd7lph5ctxyx7jlyy097ddjy0qu0qrfktwtlqxvm4sq7quhngect0czy7hnclrk3809z7kzt478h5jew3l7sqxml946qft887sg4m04udh8dwyyn56nza6slyq7uq4fmh9ze0a2wjrymp27fu426mq9axxp3gj44m2jmgv4al6ru9h75dgjjkxr8wc49t20q2x7wk0q7yh52fe5y0ma0z22735zvxczyzvjhs7xv6x2gzlxeqa0l86s8penm4kz6jrs0t44085drzvxalvpwrlmyr8mms25dy9ac7jwlr6r7um9amt55njfc3327j3ymtjg6uqdpy9rk0vhqhqy2ya2668840at8uzs4wyyyfs207qjzpkljcwcfcgh9cjmh88nme4vad0grpjaj6p6dxum9vgrrgsj950e78j7fuvcuzrn9gwnz54d7r05lgpw0x5s7mprekqysg3u54z2szwrpazfkvq2p7flajf8k0nmdxt0vw8vspw4tpkgylp38g4wt3kayrjfuyrfmwaqhdflx2lcufqd4fx02vus345pdfwl8kavh2etxxpupmvsj79g2rsls4hej4ws929rlsu24v5z8hucvhp69mavgjwksp56p5yh5nd2fq8qvqqqqqqqqqqpl5xpfl7c4x0h623asnfaj2nz4xtdwmpcup55zwjc74jn2ll40y25thhv8td7x650fwa78weeazuqqqg4ty2vuj7ewyt004l6yrzh3efus0ngm9w849syrgdjsldautacllw8auyv9wyj5w3z4gfl6nq5zqpqx5d22ctjzmmhp00w25f72lg80y6j3jvpmeer8dlnnzhz3wfwqcsy8pv2wulg77rdghefg85gkcfqzng57gsuhruz89qe92yg72e5eljljm2j68tlh4pye9qr8lmrnymqyqqya5uv8"}"#; + const EXECUTION: &str = r#"{ "transitions": [ { "id": "au1xe07pjnw6970k9lh0rfvpdnudcz0gcyy5qmv2efp3qrdxkkaj5rseklkfk", "program": "credits.aleo", "function": "transfer_public", "inputs": [ { "type": "public", "id": "6830040130268084683056203786650856838291629627526850542328121029117462649106field", "value": "aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8" }, { "type": "public", "id": "3522622156280992546879723962866054193411134839313162974822034464277507937156field", "value": "1u64" } ], "outputs": [ { "type": "future", "id": "6287946476679554718269040652777030908815963134664267470652690289159774741065field", "value": "{\n program_id: credits.aleo,\n function_name: transfer_public,\n arguments: [\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\n 1u64\n ]\n}" } ], "tpk": "1124897318163588088766079717854473596955076479615330099205126740598806373414group", "tcm": "5379517959399780344431681060960827894902462418861353186658003065156167347920field" } ], "global_state_root": "sr1tml46c266j4gzv9qpk0adkt6tkl4mjq7s7supuy8dmv9lq09j5zsd5eqsz", "proof": "proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq9eqfncmzufz24n5xvfk2yy2lm7k0jh2y23yj5ssekln7h2nmlc62mnjwe794rn5dxwwf7unaamfyqqxzhaqnm3xws740w8gwt3dt22r5l43xa9rhn6yc0vpuu46mal3a86n3qmc8yegeh8afyetmz7rs8mq8766v6rryrnhnhl8xudl3tr7rk50f0lrz36cjwp0vpg46fzq4wv9n3eglkn9ztx4kzhh9d0wmqgcqvv2e6lrnaqp9cafaxjh88pzfjn26vyq3y50hazf9c9ysc84x33mn4wculvu67z2utduq5qyy933qqtn7u5rtsztmtakuu2japhf7qcvrc663vkuk9s0twufhh42d2kk3ukf00290jxqe9qnfwr3txz05spv7tp88e7dduldq5wwulae6wm3nztzmzdjrypfz08awuvkzuale9h96hy8nyjt2znntu20c4xemlsyqpfn6ce0sv5nn5shxx2up8kw9xtyle3pcyaum9hsw29ctqcjqmn53j7dxy6ep37cfvnflxqctpuqqgtgss9tp5rzg4vp46fw8nsjztdum9xm2xp0d8hglr2v8fuyh38afsw0kymhn2lznaag7cwud0guqtpdn2l2zgn4sjg7n0gdd0ueg5ujeydmqkxx8dp9a4g456q4jvukjt2cycuvef5slqt3hwnuh6ez5qys785f6xw8xsc5ns6ee3la7rf3p24mkpeakd5ay73q30m3qezux2xzqv35zy8jclv7lxpvcnej8tkstf00fzh9l44q382hpt8eejyp3vs3pq2n3n2e0eq30zatqyrvqsqs4cllynrcytc6v9seuqgtdnzy5rr3vcwwhlrxzm2h66e9q4z94r7zpnkm6xt4yermvys6twaw6sncwt5x64qjdnatddjpeh97uszkvamu6kmltu2unnq2mq4kverfsg8ncpvkhvre77yjhgmw5nevw2az0s2dwr6navrchn7pdwkmmjcu9dedn40jacflfeld7agznzjw3cpwewyhhufu49l5ttjpqrcpl3yzn2m3h3mgq5ea4xedf8370lmmr4ansr60x5d0qwrx08n6r8qe6vq2jlk5t8fey0mcgteef0hxe84vm5khehwjr9vu7p839jpysctaz3z88zcum9nw6z04gqvj3dqvldndldatwknwu4plnlpsqxhg5x8qc0qvqqqqqqqqqqqf57wtv2gucqnx8n0ejkhtywfmxrvewes27sr0ng67f7900w4kga6ztwnzhvtpd4rv0qqhjfmkwssqqvzr0sf8p6hsda4wgak42gtdcxfkf8xfywmdpgecqhxcptdrtvluv9adsn8vc5vwds4kd54thnaggqqxz3799lcez0f8v2xencv2z76fwvgp52wrnh5qyjtteckn2nhlhq8e60eq358pw2lezf74flec2wp4e8gvk5xtrwwy36j36axmy9pmh9kwa9cnsykxzwx38kdtqhnqytsyqqefuv9d" }"#; #[wasm_bindgen_test] fn test_execution_verification() { let execution = Execution::from_string(EXECUTION).unwrap(); - let verifying_key_bytes = snarkvm_parameters::testnet3::TransferPublicToPrivateVerifier::load_bytes().unwrap(); + let verifying_key_bytes = snarkvm_parameters::testnet3::TransferPublicVerifier::load_bytes().unwrap(); let verifying_key = VerifyingKey::from_bytes(&verifying_key_bytes).unwrap(); assert!( verify_function_execution( &execution, &verifying_key, &Program::get_credits_program(), - "transfer_public_to_private".to_string() + "transfer_public".to_string() ) .unwrap() ); diff --git a/wasm/src/programs/macros.rs b/wasm/src/programs/macros.rs index 75b75402a..577b7edd2 100644 --- a/wasm/src/programs/macros.rs +++ b/wasm/src/programs/macros.rs @@ -137,12 +137,13 @@ macro_rules! execute_fee { $private_key, fee_record_native, $fee_microcredits, + 0u64, $execution_id, $rng, ).map_err(|e| e.to_string())? } None => { - $process.authorize_fee_public::($private_key, $fee_microcredits, $execution_id, $rng).map_err(|e| e.to_string())? + $process.authorize_fee_public::($private_key, $fee_microcredits, 0u64, $execution_id, $rng).map_err(|e| e.to_string())? } }; diff --git a/wasm/src/programs/transaction.rs b/wasm/src/programs/transaction.rs index d79ff2869..b4c6f60a7 100644 --- a/wasm/src/programs/transaction.rs +++ b/wasm/src/programs/transaction.rs @@ -97,9 +97,9 @@ impl FromStr for Transaction { mod tests { use super::*; use wasm_bindgen_test::*; - const TRANSACTION_STRING: &str = "{\"type\":\"execute\",\"id\":\"at1nxeg7yttrgn2usx9kvprf4m6l90hf46xeaydtzcd9g75nus89spshz3nq3\",\"execution\":{\"transitions\":[{\"id\":\"as1elwd3rrs6usm29au4m7930dw34qc9fgpcft2cttpr22v0wqtcugq3w9ju2\",\"program\":\"credits.aleo\",\"function\":\"transfer_public\",\"inputs\":[{\"type\":\"public\",\"id\":\"5907511150006977506230980075690536919685375158466705529320990737854928887990field\",\"value\":\"aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8\"},{\"type\":\"public\",\"id\":\"7982283145747718203249182128016464244397256863721538973871034171457064208262field\",\"value\":\"1u64\"}],\"outputs\":[{\"type\":\"future\",\"id\":\"4008617251745541310278402942725515740438336136760958012618696224551610246151field\",\"value\":\"{\\n program_id: credits.aleo,\\n function_name: transfer_public,\\n arguments: [\\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\\n 1u64\\n ]\\n}\"}],\"tpk\":\"426663056102511765227671053009534797451999908535901481531983199661563048450group\",\"tcm\":\"1534997465320715735425891873359081363532823476989438880960500286633204303186field\"}],\"global_state_root\":\"ar1sdke9pp2kymvegysll924rkwq2sdp7u3v0dny8rvn0zyqupgmczs8t5x5g\",\"proof\":\"proof1qyqsqqqqqqqqqqqpqqqqqqqqqqqrsqlml9y8ntderna5vml8cm8zg0gd3xt557tg96qfkscekp5q38wr69qj46r5c287aqhcpkczf8qpq8kdxuec8lvv4yvdm4k4kgkzmr6mntmj58y799htwlf5avw88keq8fayp788ydtfmnje97w7rl8r6qd50yh8klpyhj7ywpe647rxhdrpy2qfvhxezkg05rzmx9t7j3zl6rgmd4hd4q38nwq25e3qp0nezgqq2g9tdkw2rp04vkt46gkp9x8ye3ecuxc9j0zqyw2egp8p7ztavrpflqlnze8tnyty95s5lq3fsmsqu5qy3masdcgtj95enct9wphfxk5ghqxdxzwz33txfpchx7uffyagxn6chlwhryc26ay3pegsjkxsrxmg84ugcacz20u9pjyrxrxrgjl44mqcshpug9dpkfvfq09s79eu9ufqf72w38zskq6e6l2ymvums8j333cugwse7kt8c75qduf0xjkt6zkgxhkpkf5kvncxr8dfxh3yuw3wv0kqggdzpah3rqmnqd7fqqdgejndua4e6mfk22hdj6fkmg005e2pchgjev3zpdu072r28gh9vvj6xkd36yf8a0nzxgrmt29zgwqtvknatj0zqls23yppgh0nt93p7zk69w66dhcu2khpzh5t8vwq6zgus3mhyjqytmqn2dj5caz7vrgp9krg7kdmrhran88w57x93l3y20xkxpdk64mpy7may527xuq6surcp6tva0e3eze7gx06t2gpd3e675srqq2rad0ycdj05l08rfgacpr3jcjw5layydprd9rc09xnrq58qtwssyry8nf7zwglewhycp30qxtm2mdd3087c7ncfkyg48qp53s9f2eghlfhcenfv9lwx0nvaw3qggmurtcd5gvx5qs6hpp8qphmrddjnmqvrgx86k4fajnj25y7gagvl09hvrmlec0gq4d3plc7qupgr62wsrl767vqtcgdz9eulgw4xsgn5xen9xpss7k57m63hcynmxz9m339thtd8t7v7d4p4la6l8sg2z6mgjgkayc4kmr5mww503xztklyc53vettl58040pm44mrxfgx8pz0kqx4zyqnsyjq4vyz4htlpe5fxqjcxyzq98d8u5dfary8q7j3sn2gw9g6rhpeh2jgmengr7a2qfmpfeszsy4z8r0r4u2xfnmx2hmq0qvqqqqqqqqqqq94jt9tgluuakrl50al544e27fd3h2am03dzknp358ctpkyq5xe4zzecjujs6l5eggjvr4f3p6h3qqqwsuc6vgxxdwze52ejnvprvxte69ejl3egtg49z3hs0k3350y0m3xnyxyelzdv4y9xdrvl8rr2qzvpqx5af4pdjgw7mkg0w4pph6l9708emuw2999wdav5jl9dql5x6wtqryl0a34w3ya2h88p0rnmzwdz3qz50dflxwxvh5nwpeac4xlwz9taup49gl4ly87cmju3vuvkkue6qqqqwmc8ml\"},\"fee\":{\"transition\":{\"id\":\"as1l6uhn2qtvu53ker3mc5htl8zez0kzlr8p56wrds2kj2pnhgsyvys0yl06h\",\"program\":\"credits.aleo\",\"function\":\"fee_public\",\"inputs\":[{\"type\":\"public\",\"id\":\"2996685536981548557454514078993156178337218831466422725062883491278181936893field\",\"value\":\"3023388u64\"},{\"type\":\"public\",\"id\":\"5905563935613274059571167025428691034361018068179412971300387031818027999760field\",\"value\":\"4378343675180703452881652483301549197321065542531755166623110530046157373401field\"}],\"outputs\":[{\"type\":\"future\",\"id\":\"2432320784444893954958591507626737090900611232878405555838091152358395595911field\",\"value\":\"{\\n program_id: credits.aleo,\\n function_name: fee_public,\\n arguments: [\\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\\n 3023388u64\\n ]\\n}\"}],\"tpk\":\"7056720889980672352920575743315541922748301367116937819254368455578705794867group\",\"tcm\":\"1714869696957207071175089592056335794264687593708571261524376592074954518596field\"},\"global_state_root\":\"ar1sdke9pp2kymvegysll924rkwq2sdp7u3v0dny8rvn0zyqupgmczs8t5x5g\",\"proof\":\"proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq8a7fc3jujtcjjeuuyc3z2gy5vle4f2h2zuys067arlpfpu9jxd8ag0rfs9hzjdny4mxqdrugx0pgpqxunzeu5sjmt643wtqjv7xq5j0jnma7qva6535x0faq9nl2t72cry74jx9vjmnxg27uxa5c6rjafgqgllxguqhvaxd3en3vwg5xmrdukrgrj4kfm6smc9nzrj3d5j3gfnvn4au0929fsa7sxnxr43klhgxq9j028mt9xncd2re4um2c5lzsgt95vkr8gw2xlg0k6utvqf8k0cn6znur0smw9zhzcelhrnpf43rqqn96x0g2nhpw5k5un2ugy4j85kwkccg0qvfn0wlwwgw0hu8m9n2qvxrt5alsh32lrhrd8uyp7yenczse8arlj7579lu24ru9u5fd9f46rvd5h8wwrs5ye03pwcfesc2nmfpl5m2hytqhztajznm0gamw9sz2yc9mqt44sp23tkzz7lhwns23wcra736vehapel3nxcu0jn2tfze5x40flnlqqcca3atxkpfr66q0dy5df23s866d4t3a4wh4hf4zmq68jzfa7v9u7g2gaa9vdslqmcl3h5va3lw5htskn7lrzf2nlqqq2p02fhjjrwlssv583qzjzuj4yyfpt2n2kvq4vqjmlx2ss9mz2vwmkf8kjsyc3wvpay5xa2ar9y6cpjekusmcveue56m2xd5pfqrqc7n03yds8lxk86d9vqrj52njehgpmr79pumzkegxv5cnqgdhl8l7s8scg5fm7396dnmnrue5j7rxyuz89uzlxgqh2p33jqnep205vkhah7nt9rt5rjqf4xjnfs2f9xe0gz967hydmky7vga84k34zec4uwvvjfxa4a0l7vg5uprlx9yje7wpqs60ttksl8sx3duakdhha7kajh9p4ps5pad6mmcua2y0j75c6jxs2jmzek2htm4e2ym7h8rq7eukpvvpw9f9yt70tazyzfxu3nmw2lcr9fj26lj4n6uaesa87ss0vdutpkkxnnnq8krk3v32kdmtqptdlxpcm8nzcmy7j08za6c93emdec3kvnchr2ntyj7fmdpazen9s4zcazqd8zp5k7xkrkqkkew9zqlf29fajj57lhhthcqhhv3f0dgvpcq5q0cu6xfxj8hpq7f3p2m3lcv7kf99pcy9w3nj0tttnwwkkcn0cw0ssqvqqqqqqqqqqqmv3vn28xnfyewqa6vzsdvuhg9fdy7lsrl79fvg0tp2z72n93hrpc22retjd9r5s3xz2wyevvqkzqqqpu2rktjv5jq97lmpu624e6ewlwe3j9dgz3pa20y49zxm5zx08mlsp7365398jxrjfc59zhmat5xcqq9y78vt8n4nvendus5aly2afpx96gctxac47j0zge206xvurag7se0x5z7c6yc98sgr6tprp249nz6pfv579zjqdhk0z4fcyxnct4r428h0j6nxzvyl4hyx87a8ud94dqqqqfs8ws3\"}}"; + const TRANSACTION_STRING: &str = "{\"type\":\"execute\",\"id\":\"at1rh04nydu2m07n9wm3pugmlaqh7775lfuawa86ed4eymv2q9wkc9qahtx66\",\"execution\":{\"transitions\":[{\"id\":\"au1xe07pjnw6970k9lh0rfvpdnudcz0gcyy5qmv2efp3qrdxkkaj5rseklkfk\",\"program\":\"credits.aleo\",\"function\":\"transfer_public\",\"inputs\":[{\"type\":\"public\",\"id\":\"6830040130268084683056203786650856838291629627526850542328121029117462649106field\",\"value\":\"aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8\"},{\"type\":\"public\",\"id\":\"3522622156280992546879723962866054193411134839313162974822034464277507937156field\",\"value\":\"1u64\"}],\"outputs\":[{\"type\":\"future\",\"id\":\"6287946476679554718269040652777030908815963134664267470652690289159774741065field\",\"value\":\"{\\n program_id: credits.aleo,\\n function_name: transfer_public,\\n arguments: [\\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\\n 1u64\\n ]\\n}\"}],\"tpk\":\"1124897318163588088766079717854473596955076479615330099205126740598806373414group\",\"tcm\":\"5379517959399780344431681060960827894902462418861353186658003065156167347920field\"}],\"global_state_root\":\"sr1tml46c266j4gzv9qpk0adkt6tkl4mjq7s7supuy8dmv9lq09j5zsd5eqsz\",\"proof\":\"proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq9eqfncmzufz24n5xvfk2yy2lm7k0jh2y23yj5ssekln7h2nmlc62mnjwe794rn5dxwwf7unaamfyqqxzhaqnm3xws740w8gwt3dt22r5l43xa9rhn6yc0vpuu46mal3a86n3qmc8yegeh8afyetmz7rs8mq8766v6rryrnhnhl8xudl3tr7rk50f0lrz36cjwp0vpg46fzq4wv9n3eglkn9ztx4kzhh9d0wmqgcqvv2e6lrnaqp9cafaxjh88pzfjn26vyq3y50hazf9c9ysc84x33mn4wculvu67z2utduq5qyy933qqtn7u5rtsztmtakuu2japhf7qcvrc663vkuk9s0twufhh42d2kk3ukf00290jxqe9qnfwr3txz05spv7tp88e7dduldq5wwulae6wm3nztzmzdjrypfz08awuvkzuale9h96hy8nyjt2znntu20c4xemlsyqpfn6ce0sv5nn5shxx2up8kw9xtyle3pcyaum9hsw29ctqcjqmn53j7dxy6ep37cfvnflxqctpuqqgtgss9tp5rzg4vp46fw8nsjztdum9xm2xp0d8hglr2v8fuyh38afsw0kymhn2lznaag7cwud0guqtpdn2l2zgn4sjg7n0gdd0ueg5ujeydmqkxx8dp9a4g456q4jvukjt2cycuvef5slqt3hwnuh6ez5qys785f6xw8xsc5ns6ee3la7rf3p24mkpeakd5ay73q30m3qezux2xzqv35zy8jclv7lxpvcnej8tkstf00fzh9l44q382hpt8eejyp3vs3pq2n3n2e0eq30zatqyrvqsqs4cllynrcytc6v9seuqgtdnzy5rr3vcwwhlrxzm2h66e9q4z94r7zpnkm6xt4yermvys6twaw6sncwt5x64qjdnatddjpeh97uszkvamu6kmltu2unnq2mq4kverfsg8ncpvkhvre77yjhgmw5nevw2az0s2dwr6navrchn7pdwkmmjcu9dedn40jacflfeld7agznzjw3cpwewyhhufu49l5ttjpqrcpl3yzn2m3h3mgq5ea4xedf8370lmmr4ansr60x5d0qwrx08n6r8qe6vq2jlk5t8fey0mcgteef0hxe84vm5khehwjr9vu7p839jpysctaz3z88zcum9nw6z04gqvj3dqvldndldatwknwu4plnlpsqxhg5x8qc0qvqqqqqqqqqqqf57wtv2gucqnx8n0ejkhtywfmxrvewes27sr0ng67f7900w4kga6ztwnzhvtpd4rv0qqhjfmkwssqqvzr0sf8p6hsda4wgak42gtdcxfkf8xfywmdpgecqhxcptdrtvluv9adsn8vc5vwds4kd54thnaggqqxz3799lcez0f8v2xencv2z76fwvgp52wrnh5qyjtteckn2nhlhq8e60eq358pw2lezf74flec2wp4e8gvk5xtrwwy36j36axmy9pmh9kwa9cnsykxzwx38kdtqhnqytsyqqefuv9d\"},\"fee\":{\"transition\":{\"id\":\"au1etgu5md0jd6r3ddyyyg2sr63r5t07tpyaz452redx4rkzjq0dsqqhpp390\",\"program\":\"credits.aleo\",\"function\":\"fee_public\",\"inputs\":[{\"type\":\"public\",\"id\":\"6202819827443625105167501394613513736747919402680330317066933896152810974533field\",\"value\":\"263388u64\"},{\"type\":\"public\",\"id\":\"562300717734796433896686862094601391435687829906952149841892194225660591975field\",\"value\":\"10000u64\"},{\"type\":\"public\",\"id\":\"7883237601094350949043895657366086123587113448531301549046231111645620087265field\",\"value\":\"2003683512649368822747780913503982093177226997476011687299266369052228066725field\"}],\"outputs\":[{\"type\":\"future\",\"id\":\"4003143084174123056047141027259441734516045162674697571360224656380933228034field\",\"value\":\"{\\n program_id: credits.aleo,\\n function_name: fee_public,\\n arguments: [\\n aleo1q6qstg8q8shwqf5m6q5fcenuwsdqsvp4hhsgfnx5chzjm3secyzqt9mxm8,\\n 273388u64\\n ]\\n}\"}],\"tpk\":\"6391092584190750271169179247921812490330238842823180033518604373506188720330group\",\"tcm\":\"1287501176934805652296722632500653287206667978232913581134582827412687172453field\"},\"global_state_root\":\"sr1tml46c266j4gzv9qpk0adkt6tkl4mjq7s7supuy8dmv9lq09j5zsd5eqsz\",\"proof\":\"proof1qyqsqqqqqqqqqqqpqqqqqqqqqqq0vc7dct0xgm89qpdtq9cljzp27k4u0fa0nz0hd8nqlsgjkcj08evn2840dj4k4ygh8tlce383kmqqq9suy0upadgravumuq32nne0zd6673xwj74vunuugsyv40q5ypfjkmdt7t2dsl60ahqpquh5scecyqq6xcz9v72n84l2xl62c79vdc6h99vm5z4ag2mzt5j8lng4dfscxlf9ka067nyu05yh0xq46s7fhzqtf3eadr4kd4fpqqgmkzaj348juxuxqjexv5xtlyl38p6cu5lnn4wylg0w3a02wj4atm5k8rumsaup6dsk6lg9l2r7y3x0cjgw3fc9c9pqnkm86p8udhsjrxxmtp2gaevawyrezqk58x2hwfrgs83f2zhqqhrlxrq6642xjvj02mcj9llucyu234zd04m3hpl05hzu4fx2cuu8wxh74uw0h4dsq8l7g9qm3cn7s87d6drs29j4rexrfwjlnn4hsuvt09elcjtju9ll44vkv004hnmc3rx2gsjwxqgrhxc0w0prntkvzqpmtk33a6fq0v0adeagnc30c76va997pfe37d48z2yvjg9npnvu7xq56tzu32gsnvq8mxnu86zvj5qt2w268h4k9f20smjy2256n6tl7v3m0zxvaqjg8qgwvucwr5r0eufxn7h48eqx6zxawhr5l03jtkgqccqkn5qc67ds9hwn8xrh8hwahu8xf8tykuaq0m7kqm4ww3uzncqtnjxnxgswkj8zecqjvj0p5cs9muejvzgfr6dfr6ekmxm62quecp5q40j9n5vaflwjmwmme5n29ejnf4gfq6yfjt0gdf95mecszfprqjuyr7hvn93qk5qlhcdve9e9sh5q42wj5y74v50jycsp5zuy76es7669stqf3wl0su6zkd44yuwu8tglqdk62mmmjx9590qxcftuqzsthvky3pp0pzpmfelawh0snx439xq5m47zt4u4tf3qga0l5zasvs95n5yulrumfj5uyxs3ssnf47vnh7v2xxmetc46gml2hxwtzsf5uykwdg36l5xxfe9zyn3fzv58vk4hddudkm93plkkqszl956aat24q55tfd5cvmxyy4vu4pg7lvrztf6zm8mpa74ruy8f7vzescnct06qwtf06tygpqya32ehfh23crr9s0s6g8dvzwaq9k26jq0qqk287ps8qvqqqqqqqqqqqn3e0c3qnwqq9pcuczyc53yy7qrya5gapevrkpxf8tm7mmeg8ujh88ru7lj24j0d9almx5uherfysqqwdy8z5kr7ky8qhz4z4ze8qx8mlcd5ksxs7vdpktn2nz3437yejegtu0k6u68up4spsfhgmt9z03vqq9fujl8u73uquc8xjpqqpvwr8dsf4zy3s5p2n43w7gh6kte0luxs76pmkhns42fkktusftt4ymyw083c580awfx97zeq76wyp3x2fn3lmeepwpkva2ms9u757yp2mj62qqqqsuydxg\"}}"; - const TRANSACTION_ID: &str = "at1nxeg7yttrgn2usx9kvprf4m6l90hf46xeaydtzcd9g75nus89spshz3nq3"; + const TRANSACTION_ID: &str = "at1rh04nydu2m07n9wm3pugmlaqh7775lfuawa86ed4eymv2q9wkc9qahtx66"; #[wasm_bindgen_test] fn test_transaction_string_constructor_and_accessor_methods() { diff --git a/wasm/src/programs/verifying_key.rs b/wasm/src/programs/verifying_key.rs index c2f55bde7..8a17c02aa 100644 --- a/wasm/src/programs/verifying_key.rs +++ b/wasm/src/programs/verifying_key.rs @@ -108,7 +108,58 @@ mod tests { use super::*; use wasm_bindgen_test::*; - const JOIN_VERIFYING_KEY_STRING: &str = "verifier1qygqqqqqqqqqqqqqeuqqqqqqqqqz3ncqqqqqqqqqgvkqzqqqqqqqq590qyqqqqqqqzwn5qgqqqqqqqqvqqqqqqqqqqqpkgztrguz0x8mpfjhsnmqqsnwl764jw73ll0nxcg7pzt59lpd7zsjlmrprw3w6r7npmx4ck4kz3qq7mslfg4rhc9anmgza3dvms2qjhz0hatprzdgmsk3usxkttpep7wej007nzrhzzdmcca2603z4f4cp80q7drqtqw3quvqu5z4nnzspqca272csmxknz9mlwu4u6f9u2zha5rwjgv2hp0l8dlc7aa32dggq9afa5hkqmwnptqmhavy050nf48ndcl6vmjlm95c582wqyws2z5fckxsw6stcxdxxhj7v26padsumqpk58n2f6fejx3k80j2shqa642hulj3sx08ywtxg506n8dnm6nu2ltp4z5apf6wtam9kzaadackjjq6vnahqmqlkuncyslzeml246ajhy5yldyc20p9pf84gn6zdwlq79azygr4fwtvra632w333kh2e3sq4hwtk967gz8zxtsgph0nlncfhqz6wmt5cccd64qwpezp2yuglkrp7jmk4ggkefa5aw09lvhe646gpt0lkjn984uqg6r46a8q3u9vcezmtnq090xkgq0euqtkjrgjks6cxqz9hqw339k8jzepd9nxlhu7sqtv0n0uvz8p3e8wxc784jsvpf4dp92kndr2e6n9p85q8ty4z93l0fn4k7wv6neqkj9y6drya0284qv98y4lthmredwtdlm7p2489etmf473zehyhgpgmu094h97dcyzj22uzwvvayxfjlrv4qlnag2zgcqlma4j7cte6uhsfc98kf54jneuqktsmsacz7gftk9s0cunkevaamkcrt0e086j9lf9vd8eqvkn6esqfsfpjxk4lq94a5mqxgg0eazejt2wtda86l7hj2zxn9k5cy65jp6e97yp8ahakzf6vm0z53te7x9srqeupscxgx8vxla4rqse8srw9ypv3h4q902szlneeuuh4rm46rjnltvt9k"; + const JOIN_VERIFYING_KEY_STRING: &str = "verifier1qygqqqqqqqqqqqz2cvqqqqqqqqqx0scqqqqqqqqqc42qzqqqqqqqpvmfqyqqqqqqqquzwqgqqqqqqqqvqqqqqqqqqqqpz6knqjfm77py0mpx68rmc6yavzrjpn3vdn5rmhum6u47fxt3j7auv5mk8epjx0hsa7nfm4llzwqqj84x9cnerm5gach0nzfy0jsvfrylvld5ffe8g63nhw5qng68rs6yrlzrc5229ezc8j4n4y0f2hrqqmdphh3mpglur7evq52n6mx9nls064fpn8wr3vqz75vextjhjmpvcrgs8har5txjnh9tj8lmlusns8nklkw8dh8nc8sv0llh4cgw95l3m7mwugu5nfrrlmyccnmrues4wl0hdfwsq8wvn60y2hl036g3aqzh5cn6n2366fy4hawjn22mj86w2w7twq80pdrea6svl7uq5zyh9nz4qgd72tql95n2xx0zh3wcjyqca5wzv4276exszaunpjduuvjmture49av40ve03akc9qw709wuf9a8hhpwlwwz8acf2z5ngk2d95qzfqhkmllqx4lnupyevkn8zthgu54x55t4cqm7uvmmnu3vtvkmsr4tldemm26shwk8ux27v6lmxkqppuesjj5d3m7x5rsg7yn8cg6hkat6fy8u8zj3n0z26ehqvmq8x2fadtw5jt6pxxfp3cm40ak7x9yqym5qrwjzpr7xwr4t6pjn5ca9g02hnuyvxd9jqpv70a7w05mqatnyzhnfl462xmsehgcwczjkrzz2qxk3wa0elrnvnh9qlz3cc2g8xyag9yrds0jepsvskl55zqtntp6qvkj9nkmlercd95j8g9xdgxv0sq0y6gq32ng5r9zcs4wt3vryhldxtr9epyz5vnnx4mf2lhv4r56mftaugjemxezpjcv9enr259tf7qq66a7ngsc3y0a5jlm8jg2rnd9c38ny2m5egl7ssx62zcscztkmjqpkvta2za4ym5jkatgzd2zspfcrc7gesjxjgcvhsua3jpyzpdan6mestyqsx5eatkmzv9zmpwkur3c34sjzc"; + + #[allow(dead_code)] + fn verifying_key_strings() { + let fee_private_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::FeePrivateVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let fee_public_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::FeePublicVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let inclusion_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::InclusionVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let join_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::JoinVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let split_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::SplitVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let transfer_private_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::TransferPrivateVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let transfer_private_to_public_verifier_bytes = VerifyingKey::from_bytes( + &snarkvm_parameters::testnet3::TransferPrivateToPublicVerifier::load_bytes().unwrap(), + ) + .unwrap() + .to_string(); + let transfer_public_verifier_bytes = + VerifyingKey::from_bytes(&snarkvm_parameters::testnet3::TransferPublicVerifier::load_bytes().unwrap()) + .unwrap() + .to_string(); + let transfer_public_to_private_verifier_bytes = VerifyingKey::from_bytes( + &snarkvm_parameters::testnet3::TransferPublicToPrivateVerifier::load_bytes().unwrap(), + ) + .unwrap() + .to_string(); + println!("fee_private_verifier: {}", fee_private_verifier_bytes); + println!("fee_public_verifier: {}", fee_public_verifier_bytes); + println!("inclusion_verifier: {}", inclusion_verifier_bytes); + println!("join_verifier: {}", join_verifier_bytes); + println!("split_verifier: {}", split_verifier_bytes); + println!("transfer_private_verifier: {}", transfer_private_verifier_bytes); + println!("transfer_private_to_public_verifier: {}", transfer_private_to_public_verifier_bytes); + println!("transfer_public_verifier: {}", transfer_public_verifier_bytes); + println!("transfer_public_to_private_verifier: {}", transfer_public_to_private_verifier_bytes); + } #[wasm_bindgen_test] async fn test_verifying_key_roundtrip() {