diff --git a/.github/workflows/algolia-search.yml b/.github/workflows/algolia-search.yml index 8d6e2dbfc..350162f2b 100644 --- a/.github/workflows/algolia-search.yml +++ b/.github/workflows/algolia-search.yml @@ -13,7 +13,7 @@ jobs: wait-for-vercel: runs-on: ubuntu-latest steps: - - run: sleep 210s + - run: sleep 300s shell: bash algolia-search: runs-on: ubuntu-latest diff --git a/algolia-config.json b/algolia-config.json index 188edfb52..c307fc0ce 100644 --- a/algolia-config.json +++ b/algolia-config.json @@ -8,21 +8,17 @@ "sitemap_urls": ["https://docs.minaprotocol.com/sitemap.xml"], "sitemap_alternate_links": true, "js_render": true, - "js_wait": 1, - "stop_urls": ["https://docs.minaprotocol.com/node-developers"], + "js_wait": 3, "selectors_exclude": ["footer"], "selectors": { - "lvl0": { - "selector": "", - "defaultValue": "Documentation" - }, - "lvl1": "header h1, article h1, main h1, h1, head > title", - "lvl2": "article h2, main h2, h2", - "lvl3": "article h3, main h3, h3", - "lvl4": "article h4, main h4, h4", - "lvl5": "article h5, main h5, h5", - "lvl6": "article h6, main h6, h6", - "text": "article p, article li, main p, main li, p, li" + "lvl0": "", + "lvl1": ".markdown h1", + "lvl2": ".markdown h2", + "lvl3": ".markdown h3", + "lvl4": ".markdown h4", + "lvl5": ".markdown h5", + "lvl6": ".markdown h6", + "text": ".markdown p, .markdown li" }, "strip_chars": " .,;:#", "custom_settings": { diff --git a/docs/node-operators/generating-a-keypair.mdx b/docs/node-operators/generating-a-keypair.mdx index aba6c5553..3ff30674d 100644 --- a/docs/node-operators/generating-a-keypair.mdx +++ b/docs/node-operators/generating-a-keypair.mdx @@ -108,7 +108,7 @@ Make sure to set a new and secure password for the following commands. Mina will ``` cd ~ - docker run --interactive --tty --rm --volume $(pwd)/keys:/keys minaprotocol/mina-generate-keypair:1.4.0-c980ba8 --privkey-path /keys/my-wallet + docker run --interactive --tty --rm --volume $(pwd)/keys:/keys minaprotocol/mina-generate-keypair:1.3.1-3e3abec --privkey-path /keys/my-wallet ``` 1. When prompted, type in the password you intend to use to secure this key. Do NOT forget this password. @@ -139,7 +139,7 @@ mina-validate-keypair --privkey-path On Docker: ``` -docker run --interactive --tty --rm --entrypoint=mina-validate-keypair --volume $(pwd)/keys:/keys minaprotocol/mina-generate-keypair:1.4.0-c980ba8 --privkey-path /keys/my-wallet +docker run --interactive --tty --rm --entrypoint=mina-validate-keypair --volume $(pwd)/keys:/keys minaprotocol/mina-generate-keypair:1.3.1-3e3abec --privkey-path /keys/my-wallet ``` ## Ledger Hardware Wallet diff --git a/docs/test-world-2/launching-a-node.mdx b/docs/test-world-2/launching-a-node.mdx index fb5390847..bff37866f 100644 --- a/docs/test-world-2/launching-a-node.mdx +++ b/docs/test-world-2/launching-a-node.mdx @@ -31,6 +31,8 @@ You must configure the node to restart automatically. Follow the instructions in Please refer to the [Discord testworld-2](https://discord.com/channels/484437221055922177/1103364666517901342) channel for questions or to find any configuration options. +Please note that the flag `--max-connections 200` has been removed for all types of nodes. + ::: ## Launching the Nodes @@ -71,7 +73,6 @@ You must configure the block producer node with the following flags: --enable-peer-exchange true --libp2p-keypair (**libp2p keypair pre-generated by the Node Operator**) --log-precomputed-blocks true ---max-connections 200 --peer-list-url (**seeds.txt URL will be distributed prior to launch**) --generate-genesis-proof true --block-producer-key (**keys will be distributed prior to launch**) @@ -112,7 +113,6 @@ You must configure Load Testing nodes with the following flags: --enable-peer-exchange true --libp2p-keypair (**libp2p keypair pre-generated by the Node Operator**) --log-precomputed-blocks true ---max-connections 200 --peer-list-url (**seeds.txt URL will be distributed prior to launch**) --generate-genesis-proof true --node-status-url https://nodestats-itn.minaprotocol.tools/submit/stats @@ -172,7 +172,6 @@ You must configure the SNARK coordinators with the following flags: --enable-peer-exchange true --libp2p-keypair (**libp2p keypair pre-generated by the Node Operator**) --log-precomputed-blocks true ---max-connections 200 --peer-list-url (**seeds.txt URL will be distributed prior to launch**) --node-status-url https://nodestats-itn.minaprotocol.tools/submit/stats --node-error-url https://nodestats-itn.minaprotocol.tools/submit/stats @@ -221,7 +220,6 @@ The non-block producing node must be configured with the following flags: --enable-peer-exchange true --libp2p-keypair (**libp2p keypair pre-generated by the Node Operator**) --log-precomputed-blocks true ---max-connections 200 --peer-list-url (**seeds.txt URL will be distributed prior to launch**) --generate-genesis-proof true --node-status-url https://nodestats-itn.minaprotocol.tools/submit/stats diff --git a/docs/zkapps/how-to-test-a-zkapp.mdx b/docs/zkapps/how-to-test-a-zkapp.mdx index fbd5aa454..77a8802c7 100644 --- a/docs/zkapps/how-to-test-a-zkapp.mdx +++ b/docs/zkapps/how-to-test-a-zkapp.mdx @@ -151,7 +151,6 @@ describe('Add smart contract integration test', () => { txn; beforeAll(async () => { - await isReady; // setup local blockchain let Local = Mina.LocalBlockchain(); Mina.setActiveInstance(Local); @@ -172,10 +171,6 @@ describe('Add smart contract integration test', () => { await txn.send(); }); - afterAll(async () => { - setTimeout(shutdown, 0); - }); - it('sets intitial state of num to 1', async () => { currentState = zkAppInstance.num.get(); expect(currentState).toEqual(Field(1)); diff --git a/docs/zkapps/o1js-reference/classes/AccountUpdate.md b/docs/zkapps/o1js-reference/classes/AccountUpdate.md index 377952614..60f6f9153 100644 --- a/docs/zkapps/o1js-reference/classes/AccountUpdate.md +++ b/docs/zkapps/o1js-reference/classes/AccountUpdate.md @@ -100,7 +100,7 @@ be authorized by either a [Signature](Signature.md) or [Proof](Proof.md). #### Defined in -[lib/account_update.ts:686](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L686) +[lib/account_update.ts:686](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L686) ## Properties @@ -110,7 +110,7 @@ be authorized by either a [Signature](Signature.md) or [Proof](Proof.md). #### Defined in -[lib/account_update.ts:667](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L667) +[lib/account_update.ts:667](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L667) ___ @@ -131,7 +131,7 @@ Types.AccountUpdate.authorization #### Defined in -[lib/account_update.ts:664](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L664) +[lib/account_update.ts:664](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L664) ___ @@ -145,7 +145,7 @@ Types.AccountUpdate.body #### Defined in -[lib/account_update.ts:663](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L663) +[lib/account_update.ts:663](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L663) ___ @@ -162,7 +162,7 @@ ___ #### Defined in -[lib/account_update.ts:670](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L670) +[lib/account_update.ts:670](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L670) ___ @@ -172,7 +172,7 @@ ___ #### Defined in -[lib/account_update.ts:669](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L669) +[lib/account_update.ts:669](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L669) ___ @@ -182,7 +182,7 @@ ___ #### Defined in -[lib/account_update.ts:657](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L657) +[lib/account_update.ts:657](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L657) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[lib/account_update.ts:682](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L682) +[lib/account_update.ts:682](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L682) ___ @@ -205,7 +205,7 @@ was created. Can be modified by applications to add richer information. #### Defined in -[lib/account_update.ts:662](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L662) +[lib/account_update.ts:662](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L662) ___ @@ -215,7 +215,7 @@ ___ #### Defined in -[lib/account_update.ts:665](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L665) +[lib/account_update.ts:665](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L665) ___ @@ -225,7 +225,7 @@ ___ #### Defined in -[lib/account_update.ts:668](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L668) +[lib/account_update.ts:668](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L668) ___ @@ -235,7 +235,7 @@ ___ #### Defined in -[lib/account_update.ts:680](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L680) +[lib/account_update.ts:680](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L680) ___ @@ -265,7 +265,7 @@ ___ #### Defined in -[lib/account_update.ts:684](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L684) +[lib/account_update.ts:684](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L684) ___ @@ -308,7 +308,7 @@ StaticChildren(AnyChildren, StaticChildren(1)) #### Defined in -[lib/account_update.ts:1395](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1395) +[lib/account_update.ts:1395](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1395) ___ @@ -332,7 +332,7 @@ ___ #### Defined in -[lib/account_update.ts:1280](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1280) +[lib/account_update.ts:1280](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1280) ___ @@ -342,7 +342,7 @@ ___ #### Defined in -[lib/account_update.ts:1016](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1016) +[lib/account_update.ts:1016](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1016) ___ @@ -360,7 +360,7 @@ ___ #### Defined in -[lib/account_update.ts:1259](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1259) +[lib/account_update.ts:1259](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1259) ___ @@ -384,7 +384,7 @@ ___ #### Defined in -[lib/account_update.ts:1260](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1260) +[lib/account_update.ts:1260](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1260) ___ @@ -408,7 +408,7 @@ ___ #### Defined in -[lib/account_update.ts:1279](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1279) +[lib/account_update.ts:1279](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1279) ## Accessors @@ -427,7 +427,7 @@ ___ #### Defined in -[lib/account_update.ts:877](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L877) +[lib/account_update.ts:877](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L877) ___ @@ -441,7 +441,7 @@ ___ #### Defined in -[lib/account_update.ts:960](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L960) +[lib/account_update.ts:960](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L960) ___ @@ -455,7 +455,7 @@ ___ #### Defined in -[lib/account_update.ts:817](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L817) +[lib/account_update.ts:817](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L817) ___ @@ -477,7 +477,7 @@ use `this.account.tokenSymbol` #### Defined in -[lib/account_update.ts:824](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L824) +[lib/account_update.ts:824](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L824) ___ @@ -540,7 +540,7 @@ ___ #### Defined in -[lib/account_update.ts:892](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L892) +[lib/account_update.ts:892](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L892) ___ @@ -570,7 +570,7 @@ ___ #### Defined in -[lib/account_update.ts:1409](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1409) +[lib/account_update.ts:1409](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1409) ## Methods @@ -594,7 +594,7 @@ approves it. #### Defined in -[lib/account_update.ts:869](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L869) +[lib/account_update.ts:869](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L869) ___ @@ -608,7 +608,7 @@ ___ #### Defined in -[lib/account_update.ts:1076](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1076) +[lib/account_update.ts:1076](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1076) ___ @@ -622,7 +622,7 @@ ___ #### Defined in -[lib/account_update.ts:1105](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1105) +[lib/account_update.ts:1105](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1105) ___ @@ -650,7 +650,7 @@ be (can be) authorized by a signature. #### Defined in -[lib/account_update.ts:979](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L979) +[lib/account_update.ts:979](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L979) ___ @@ -672,7 +672,7 @@ ___ #### Defined in -[lib/account_update.ts:834](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L834) +[lib/account_update.ts:834](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L834) ___ @@ -696,7 +696,7 @@ ___ #### Defined in -[lib/account_update.ts:985](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L985) +[lib/account_update.ts:985](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L985) ___ @@ -710,7 +710,7 @@ ___ #### Defined in -[lib/account_update.ts:1065](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1065) +[lib/account_update.ts:1065](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1065) ___ @@ -727,7 +727,7 @@ default [AccountUpdate](AccountUpdate.md). #### Defined in -[lib/account_update.ts:1441](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1441) +[lib/account_update.ts:1441](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1441) ___ @@ -741,7 +741,7 @@ ___ #### Defined in -[lib/account_update.ts:1093](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1093) +[lib/account_update.ts:1093](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1093) ___ @@ -764,7 +764,7 @@ ___ #### Defined in -[lib/account_update.ts:723](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L723) +[lib/account_update.ts:723](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L723) ___ @@ -794,7 +794,7 @@ Constrain a property to lie between lower and upper bounds. #### Defined in -[lib/account_update.ts:920](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L920) +[lib/account_update.ts:920](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L920) ___ @@ -823,7 +823,7 @@ Fix a property to a certain value. #### Defined in -[lib/account_update.ts:947](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L947) +[lib/account_update.ts:947](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L947) ___ @@ -846,7 +846,7 @@ Attach account update to the current transaction #### Defined in -[lib/account_update.ts:1149](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1149) +[lib/account_update.ts:1149](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1149) ___ @@ -868,7 +868,7 @@ Clones the [AccountUpdate](AccountUpdate.md). #### Defined in -[lib/account_update.ts:704](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L704) +[lib/account_update.ts:704](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L704) ___ @@ -895,7 +895,7 @@ becomes part of the proof. #### Defined in -[lib/account_update.ts:1130](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1130) +[lib/account_update.ts:1130](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1130) ___ @@ -930,7 +930,7 @@ be (can be) authorized by a signature. #### Defined in -[lib/account_update.ts:1196](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1196) +[lib/account_update.ts:1196](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1196) ▸ `Static` **createSigned**(`signer`, `tokenId?`): [`AccountUpdate`](AccountUpdate.md) @@ -951,7 +951,7 @@ in favor of calling this function with a `PublicKey` as `signer` #### Defined in -[lib/account_update.ts:1200](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1200) +[lib/account_update.ts:1200](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1200) ___ @@ -972,7 +972,7 @@ ___ #### Defined in -[lib/account_update.ts:1099](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1099) +[lib/account_update.ts:1099](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1099) ___ @@ -993,7 +993,7 @@ ___ #### Defined in -[lib/account_update.ts:1109](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1109) +[lib/account_update.ts:1109](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1109) ___ @@ -1007,7 +1007,7 @@ ___ #### Defined in -[lib/account_update.ts:1102](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1102) +[lib/account_update.ts:1102](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1102) ___ @@ -1021,7 +1021,7 @@ ___ #### Defined in -[lib/account_update.ts:1118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1118) +[lib/account_update.ts:1118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1118) ___ @@ -1042,7 +1042,7 @@ ___ #### Defined in -[lib/account_update.ts:1281](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1281) +[lib/account_update.ts:1281](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1281) ___ @@ -1062,7 +1062,7 @@ ___ #### Defined in -[lib/account_update.ts:1071](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1071) +[lib/account_update.ts:1071](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1071) ___ @@ -1091,7 +1091,7 @@ they [AccountUpdate](AccountUpdate.md) for the account which pays the fee #### Defined in -[lib/account_update.ts:1228](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1228) +[lib/account_update.ts:1228](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1228) ▸ `Static` **fundNewAccount**(`feePayer`, `options?`): [`AccountUpdate`](AccountUpdate.md) @@ -1117,7 +1117,7 @@ feePayerUpdate.send({ to: receiverAddress, amount: initialBalance }); #### Defined in -[lib/account_update.ts:1240](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1240) +[lib/account_update.ts:1240](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1240) ___ @@ -1137,7 +1137,7 @@ ___ #### Defined in -[lib/account_update.ts:1012](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1012) +[lib/account_update.ts:1012](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1012) ___ @@ -1162,7 +1162,7 @@ ___ #### Defined in -[lib/account_update.ts:1021](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1021) +[lib/account_update.ts:1021](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1021) ___ @@ -1187,7 +1187,7 @@ ___ #### Defined in -[lib/account_update.ts:1029](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1029) +[lib/account_update.ts:1029](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1029) ___ @@ -1214,7 +1214,7 @@ ___ #### Defined in -[lib/account_update.ts:896](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L896) +[lib/account_update.ts:896](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L896) ___ @@ -1235,7 +1235,7 @@ ___ #### Defined in -[lib/account_update.ts:1003](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1003) +[lib/account_update.ts:1003](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1003) ___ @@ -1255,7 +1255,7 @@ ___ #### Defined in -[lib/account_update.ts:1261](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1261) +[lib/account_update.ts:1261](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1261) ___ @@ -1275,7 +1275,7 @@ ___ #### Defined in -[lib/account_update.ts:1068](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1068) +[lib/account_update.ts:1068](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1068) ___ @@ -1297,7 +1297,7 @@ Disattach an account update from where it's currently located in the transaction #### Defined in -[lib/account_update.ts:1169](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1169) +[lib/account_update.ts:1169](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1169) ___ @@ -1331,7 +1331,7 @@ ___ #### Defined in -[lib/account_update.ts:1289](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1289) +[lib/account_update.ts:1289](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1289) ___ @@ -1354,7 +1354,7 @@ ___ #### Defined in -[lib/account_update.ts:1305](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1305) +[lib/account_update.ts:1305](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1305) ___ @@ -1392,4 +1392,4 @@ accountUpdate's children, which also get witnessed #### Defined in -[lib/account_update.ts:1350](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1350) +[lib/account_update.ts:1350](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1350) diff --git a/docs/zkapps/o1js-reference/classes/Bool.md b/docs/zkapps/o1js-reference/classes/Bool.md index 1840baf19..fe5a15086 100644 --- a/docs/zkapps/o1js-reference/classes/Bool.md +++ b/docs/zkapps/o1js-reference/classes/Bool.md @@ -74,7 +74,7 @@ Use [[assertEquals]] to enforce the value of a Bool. #### Defined in -[lib/bool.ts:36](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L36) +[lib/bool.ts:36](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L36) ## Properties @@ -84,7 +84,7 @@ Use [[assertEquals]] to enforce the value of a Bool. #### Defined in -[lib/bool.ts:34](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L34) +[lib/bool.ts:34](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L34) ___ @@ -100,7 +100,7 @@ ___ #### Defined in -[lib/bool.ts:325](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L325) +[lib/bool.ts:325](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L325) ## Methods @@ -123,7 +123,7 @@ this [Bool](Bool.md) and `y` are also true. #### Defined in -[lib/bool.ts:74](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L74) +[lib/bool.ts:74](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L74) ___ @@ -146,7 +146,7 @@ Proves that this [Bool](Bool.md) is equal to `y`. #### Defined in -[lib/bool.ts:97](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L97) +[lib/bool.ts:97](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L97) ___ @@ -168,7 +168,7 @@ Proves that this [Bool](Bool.md) is `false`. #### Defined in -[lib/bool.ts:128](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L128) +[lib/bool.ts:128](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L128) ___ @@ -190,7 +190,7 @@ Proves that this [Bool](Bool.md) is `true`. #### Defined in -[lib/bool.ts:114](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L114) +[lib/bool.ts:114](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L114) ___ @@ -212,7 +212,7 @@ Returns true if this [Bool](Bool.md) is equal to `y`. #### Defined in -[lib/bool.ts:143](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L143) +[lib/bool.ts:143](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L143) ___ @@ -226,7 +226,7 @@ this is Object #### Defined in -[lib/bool.ts:48](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L48) +[lib/bool.ts:48](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L48) ___ @@ -242,7 +242,7 @@ a new [Bool](Bool.md) that is the negation of this [Bool](Bool.md). #### Defined in -[lib/bool.ts:62](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L62) +[lib/bool.ts:62](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L62) ___ @@ -265,7 +265,7 @@ this [Bool](Bool.md) or `y` is true. #### Defined in -[lib/bool.ts:86](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L86) +[lib/bool.ts:86](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L86) ___ @@ -281,7 +281,7 @@ Returns the size of this type. #### Defined in -[lib/bool.ts:153](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L153) +[lib/bool.ts:153](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L153) ___ @@ -298,7 +298,7 @@ This can only be called on non-witness values. #### Defined in -[lib/bool.ts:184](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L184) +[lib/bool.ts:184](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L184) ___ @@ -314,7 +314,7 @@ Converts a [Bool](Bool.md) to a [Field](Field.md). `false` becomes 0 and `true` #### Defined in -[lib/bool.ts:55](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L55) +[lib/bool.ts:55](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L55) ___ @@ -330,7 +330,7 @@ Serializes this [Bool](Bool.md) into [Field](Field.md) elements. #### Defined in -[lib/bool.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L160) +[lib/bool.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L160) ___ @@ -347,7 +347,7 @@ This operation does _not_ affect the circuit and can't be used to prove anything #### Defined in -[lib/bool.ts:176](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L176) +[lib/bool.ts:176](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L176) ___ @@ -364,7 +364,7 @@ This operation does _not_ affect the circuit and can't be used to prove anything #### Defined in -[lib/bool.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L168) +[lib/bool.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L168) ___ @@ -384,7 +384,7 @@ x is Bool #### Defined in -[lib/bool.ts:344](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L344) +[lib/bool.ts:344](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L344) ___ @@ -404,7 +404,7 @@ ___ #### Defined in -[lib/bool.ts:348](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L348) +[lib/bool.ts:348](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L348) ___ @@ -427,7 +427,7 @@ Boolean AND operation. #### Defined in -[lib/bool.ts:213](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L213) +[lib/bool.ts:213](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L213) ___ @@ -450,7 +450,7 @@ Asserts if both [Bool](Bool.md) are equal. #### Defined in -[lib/bool.ts:233](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L233) +[lib/bool.ts:233](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L233) ___ @@ -470,7 +470,7 @@ ___ #### Defined in -[lib/bool.ts:321](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L321) +[lib/bool.ts:321](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L321) ___ @@ -493,7 +493,7 @@ Checks two [Bool](Bool.md) for equality. #### Defined in -[lib/bool.ts:244](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L244) +[lib/bool.ts:244](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L244) ___ @@ -513,7 +513,7 @@ ___ #### Defined in -[lib/bool.ts:306](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L306) +[lib/bool.ts:306](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L306) ___ @@ -535,7 +535,7 @@ Creates a data structure from an array of serialized [Field](Field.md) elements. #### Defined in -[lib/bool.ts:268](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L268) +[lib/bool.ts:268](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L268) ___ @@ -558,7 +558,7 @@ This operation does _not_ affect the circuit and can't be used to prove anything #### Defined in -[lib/bool.ts:287](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L287) +[lib/bool.ts:287](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L287) ___ @@ -580,7 +580,7 @@ Boolean negation. #### Defined in -[lib/bool.ts:203](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L203) +[lib/bool.ts:203](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L203) ___ @@ -603,7 +603,7 @@ Boolean OR operation. #### Defined in -[lib/bool.ts:223](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L223) +[lib/bool.ts:223](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L223) ___ @@ -630,7 +630,7 @@ ___ #### Defined in -[lib/bool.ts:310](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L310) +[lib/bool.ts:310](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L310) ___ @@ -644,7 +644,7 @@ ___ #### Defined in -[lib/bool.ts:317](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L317) +[lib/bool.ts:317](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L317) ___ @@ -660,7 +660,7 @@ Returns the size of this type. #### Defined in -[lib/bool.ts:294](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L294) +[lib/bool.ts:294](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L294) ___ @@ -682,7 +682,7 @@ Static method to serialize a [Bool](Bool.md) into its auxiliary data. #### Defined in -[lib/bool.ts:261](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L261) +[lib/bool.ts:261](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L261) ___ @@ -702,7 +702,7 @@ ___ #### Defined in -[lib/bool.ts:302](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L302) +[lib/bool.ts:302](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L302) ___ @@ -722,7 +722,7 @@ ___ #### Defined in -[lib/bool.ts:196](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L196) +[lib/bool.ts:196](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L196) ___ @@ -744,7 +744,7 @@ Static method to serialize a [Bool](Bool.md) into an array of [Field](Field.md) #### Defined in -[lib/bool.ts:254](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L254) +[lib/bool.ts:254](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L254) ___ @@ -768,7 +768,7 @@ ___ #### Defined in -[lib/bool.ts:298](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L298) +[lib/bool.ts:298](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L298) ___ @@ -791,4 +791,4 @@ This operation does _not_ affect the circuit and can't be used to prove anything #### Defined in -[lib/bool.ts:279](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L279) +[lib/bool.ts:279](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L279) diff --git a/docs/zkapps/o1js-reference/classes/Character.md b/docs/zkapps/o1js-reference/classes/Character.md index 3a1c23b37..fe97cc8c9 100644 --- a/docs/zkapps/o1js-reference/classes/Character.md +++ b/docs/zkapps/o1js-reference/classes/Character.md @@ -63,7 +63,7 @@ #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Properties @@ -73,7 +73,7 @@ #### Defined in -[lib/string.ts:11](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L11) +[lib/string.ts:11](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L11) ## Methods @@ -97,7 +97,7 @@ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -121,7 +121,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -139,7 +139,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -153,7 +153,7 @@ ___ #### Defined in -[lib/string.ts:13](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L13) +[lib/string.ts:13](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L13) ___ @@ -171,7 +171,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -185,7 +185,7 @@ ___ #### Defined in -[lib/string.ts:17](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L17) +[lib/string.ts:17](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L17) ___ @@ -203,7 +203,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -221,7 +221,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -235,7 +235,7 @@ ___ #### Defined in -[lib/string.ts:21](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L21) +[lib/string.ts:21](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L21) ___ @@ -259,7 +259,7 @@ ___ #### Defined in -[lib/string.ts:33](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L33) +[lib/string.ts:33](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L33) ___ @@ -290,7 +290,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -321,7 +321,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -352,7 +352,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -372,7 +372,7 @@ ___ #### Defined in -[lib/string.ts:26](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L26) +[lib/string.ts:26](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L26) ___ @@ -390,7 +390,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -408,7 +408,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -439,7 +439,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -470,7 +470,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -501,7 +501,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -532,4 +532,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/Circuit.md b/docs/zkapps/o1js-reference/classes/Circuit.md index 7ed491db5..fb09a09f8 100644 --- a/docs/zkapps/o1js-reference/classes/Circuit.md +++ b/docs/zkapps/o1js-reference/classes/Circuit.md @@ -45,7 +45,7 @@ #### Defined in -[lib/circuit.ts:14](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L14) +[lib/circuit.ts:14](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L14) ___ @@ -80,7 +80,7 @@ use [Array](../modules.md#array) #### Defined in -[lib/circuit.ts:110](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L110) +[lib/circuit.ts:110](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L110) ___ @@ -108,7 +108,7 @@ use [asProver](../modules.md#asprover) #### Defined in -[lib/circuit.ts:94](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L94) +[lib/circuit.ts:94](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L94) ___ @@ -167,7 +167,7 @@ use [assertEqual](../modules.md#assertequal) #### Defined in -[lib/circuit.ts:114](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L114) +[lib/circuit.ts:114](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L114) ___ @@ -209,7 +209,7 @@ use [constraintSystem](../modules.md#constraintsystem) #### Defined in -[lib/circuit.ts:106](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L106) +[lib/circuit.ts:106](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L106) ___ @@ -268,7 +268,7 @@ use [equal](../modules.md#equal) #### Defined in -[lib/circuit.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L118) +[lib/circuit.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L118) ___ @@ -329,7 +329,7 @@ use [if](../modules.md#if) #### Defined in -[lib/circuit.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L122) +[lib/circuit.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L122) ___ @@ -351,7 +351,7 @@ use [inCheckedComputation](../modules.md#incheckedcomputation) #### Defined in -[lib/circuit.ts:134](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L134) +[lib/circuit.ts:134](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L134) ___ @@ -373,7 +373,7 @@ use [inProver](../modules.md#inprover) #### Defined in -[lib/circuit.ts:130](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L130) +[lib/circuit.ts:130](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L130) ___ @@ -401,7 +401,7 @@ use [log](../modules.md#log) #### Defined in -[lib/circuit.ts:138](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L138) +[lib/circuit.ts:138](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L138) ___ @@ -429,7 +429,7 @@ use [runAndCheck](../modules.md#runandcheck) #### Defined in -[lib/circuit.ts:98](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L98) +[lib/circuit.ts:98](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L98) ___ @@ -457,7 +457,7 @@ use [runUnchecked](../modules.md#rununchecked) #### Defined in -[lib/circuit.ts:102](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L102) +[lib/circuit.ts:102](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L102) ___ @@ -494,7 +494,7 @@ use [switch](../modules.md#switch) #### Defined in -[lib/circuit.ts:126](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L126) +[lib/circuit.ts:126](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L126) ___ @@ -530,7 +530,7 @@ use [witness](../modules.md#witness) #### Defined in -[lib/circuit.ts:90](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L90) +[lib/circuit.ts:90](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L90) ## Methods @@ -552,7 +552,7 @@ const keypair = await MyCircuit.generateKeypair(); #### Defined in -[lib/circuit.ts:23](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L23) +[lib/circuit.ts:23](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L23) ___ @@ -583,7 +583,7 @@ const proof = await MyCircuit.prove(privateInput, publicInput, keypair); #### Defined in -[lib/circuit.ts:42](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L42) +[lib/circuit.ts:42](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L42) ___ @@ -615,4 +615,4 @@ const isValid = await MyCircuit.verify(publicInput, keypair.vk, proof); #### Defined in -[lib/circuit.ts:68](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L68) +[lib/circuit.ts:68](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L68) diff --git a/docs/zkapps/o1js-reference/classes/CircuitString.md b/docs/zkapps/o1js-reference/classes/CircuitString.md index 966133fa0..faf626ccc 100644 --- a/docs/zkapps/o1js-reference/classes/CircuitString.md +++ b/docs/zkapps/o1js-reference/classes/CircuitString.md @@ -70,7 +70,7 @@ #### Defined in -[lib/string.ts:45](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L45) +[lib/string.ts:45](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L45) ## Properties @@ -80,7 +80,7 @@ #### Defined in -[lib/string.ts:40](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L40) +[lib/string.ts:40](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L40) ___ @@ -90,7 +90,7 @@ ___ #### Defined in -[lib/string.ts:39](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L39) +[lib/string.ts:39](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L39) ## Methods @@ -113,7 +113,7 @@ within the `maxLength` of this string (the other string can have a different max #### Defined in -[lib/string.ts:88](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L88) +[lib/string.ts:88](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L88) ___ @@ -137,7 +137,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -156,7 +156,7 @@ ___ #### Defined in -[lib/string.ts:58](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L58) +[lib/string.ts:58](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L58) ___ @@ -180,7 +180,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -196,7 +196,7 @@ returns true if `str` is found in this `CircuitString` #### Defined in -[lib/string.ts:124](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L124) +[lib/string.ts:124](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L124) ___ @@ -214,7 +214,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -228,7 +228,7 @@ ___ #### Defined in -[lib/string.ts:80](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L80) +[lib/string.ts:80](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L80) ___ @@ -242,7 +242,7 @@ ___ #### Defined in -[lib/string.ts:77](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L77) +[lib/string.ts:77](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L77) ___ @@ -256,7 +256,7 @@ ___ #### Defined in -[lib/string.ts:53](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L53) +[lib/string.ts:53](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L53) ___ @@ -277,7 +277,7 @@ ___ #### Defined in -[lib/string.ts:128](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L128) +[lib/string.ts:128](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L128) ___ @@ -295,7 +295,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -313,7 +313,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -331,7 +331,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -345,7 +345,7 @@ ___ #### Defined in -[lib/string.ts:132](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L132) +[lib/string.ts:132](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L132) ___ @@ -376,7 +376,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -396,7 +396,7 @@ ___ #### Defined in -[lib/string.ts:49](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L49) +[lib/string.ts:49](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L49) ___ @@ -427,7 +427,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -458,7 +458,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -489,7 +489,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -509,7 +509,7 @@ ___ #### Defined in -[lib/string.ts:139](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/string.ts#L139) +[lib/string.ts:139](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/string.ts#L139) ___ @@ -527,7 +527,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -545,7 +545,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -576,7 +576,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -607,7 +607,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -638,7 +638,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -669,4 +669,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/CircuitValue.md b/docs/zkapps/o1js-reference/classes/CircuitValue.md index bf3181e4b..e97fc8389 100644 --- a/docs/zkapps/o1js-reference/classes/CircuitValue.md +++ b/docs/zkapps/o1js-reference/classes/CircuitValue.md @@ -69,7 +69,7 @@ #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Methods @@ -89,7 +89,7 @@ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -109,7 +109,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -123,7 +123,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -137,7 +137,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -151,7 +151,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -165,7 +165,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -219,7 +219,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -246,7 +246,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -273,7 +273,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -287,7 +287,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -301,7 +301,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -328,7 +328,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -355,7 +355,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -382,7 +382,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -409,4 +409,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/Field.md b/docs/zkapps/o1js-reference/classes/Field.md index d6292cf9f..716d98ebe 100644 --- a/docs/zkapps/o1js-reference/classes/Field.md +++ b/docs/zkapps/o1js-reference/classes/Field.md @@ -122,7 +122,7 @@ Coerce anything "field-like" (bigint, number, string, and [Field](Field.md)) to #### Defined in -[lib/field.ts:141](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L141) +[lib/field.ts:141](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L141) ## Properties @@ -132,7 +132,7 @@ Coerce anything "field-like" (bigint, number, string, and [Field](Field.md)) to #### Defined in -[lib/field.ts:130](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L130) +[lib/field.ts:130](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L130) ___ @@ -145,7 +145,7 @@ Order of the [Field](Field.md) is 2894802230932904885589274625217197696336305648 #### Defined in -[lib/field.ts:136](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L136) +[lib/field.ts:136](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L136) ## Methods @@ -170,7 +170,7 @@ Order of the [Field](Field.md) is 2894802230932904885589274625217197696336305648 #### Defined in -[lib/field.ts:651](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L651) +[lib/field.ts:651](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L651) ___ @@ -190,7 +190,7 @@ ___ #### Defined in -[lib/field.ts:202](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L202) +[lib/field.ts:202](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L202) ___ @@ -238,7 +238,7 @@ A [Field](Field.md) element equivalent to the modular addition of the two value. #### Defined in -[lib/field.ts:310](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L310) +[lib/field.ts:310](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L310) ___ @@ -263,7 +263,7 @@ Calling this function is equivalent to `Bool.or(Field(...).equals(1), Field(...) #### Defined in -[lib/field.ts:910](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L910) +[lib/field.ts:910](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L910) ___ @@ -290,7 +290,7 @@ See [equals](Field.md#equals) for more details. #### Defined in -[lib/field.ts:268](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L268) +[lib/field.ts:268](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L268) ___ @@ -320,7 +320,7 @@ The method will throw if one of the inputs exceeds 253 bits. #### Defined in -[lib/field.ts:851](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L851) +[lib/field.ts:851](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L851) ___ @@ -350,7 +350,7 @@ The method will throw if one of the inputs exceeds 253 bits. #### Defined in -[lib/field.ts:868](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L868) +[lib/field.ts:868](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L868) ___ @@ -380,7 +380,7 @@ The method will throw if one of the inputs exceeds 253 bits. #### Defined in -[lib/field.ts:795](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L795) +[lib/field.ts:795](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L795) ___ @@ -410,7 +410,7 @@ The method will throw if one of the inputs exceeds 253 bits. #### Defined in -[lib/field.ts:823](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L823) +[lib/field.ts:823](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L823) ___ @@ -441,7 +441,7 @@ x.assertNotEquals(0, "expect x to be non-zero"); #### Defined in -[lib/field.ts:885](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L885) +[lib/field.ts:885](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L885) ___ @@ -492,7 +492,7 @@ A [Field](Field.md) element equivalent to the modular division of the two value. #### Defined in -[lib/field.ts:523](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L523) +[lib/field.ts:523](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L523) ___ @@ -523,7 +523,7 @@ A [Bool](Bool.md) representing if this [Field](Field.md) is equal another "field #### Defined in -[lib/field.ts:636](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L636) +[lib/field.ts:636](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L636) ___ @@ -565,7 +565,7 @@ A [Bool](Bool.md) representing if this [Field](Field.md) is greater than another #### Defined in -[lib/field.ts:751](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L751) +[lib/field.ts:751](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L751) ___ @@ -607,7 +607,7 @@ A [Bool](Bool.md) representing if this [Field](Field.md) is greater than or equa #### Defined in -[lib/field.ts:778](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L778) +[lib/field.ts:778](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L778) ___ @@ -638,7 +638,7 @@ A [Field](Field.md) element that is equivalent to one divided by this element. #### Defined in -[lib/field.ts:475](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L475) +[lib/field.ts:475](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L475) ___ @@ -671,7 +671,7 @@ A `boolean` showing if this [Field](Field.md) is a constant or not. #### Defined in -[lib/field.ts:198](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L198) +[lib/field.ts:198](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L198) ___ @@ -699,7 +699,7 @@ b.isEven().assertTrue(); // does not throw, as expected! #### Defined in -[lib/field.ts:392](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L392) +[lib/field.ts:392](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L392) ___ @@ -717,7 +717,7 @@ use `x.equals(0)` which is equivalent #### Defined in -[lib/field.ts:596](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L596) +[lib/field.ts:596](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L596) ___ @@ -759,7 +759,7 @@ A [Bool](Bool.md) representing if this [Field](Field.md) is less than another "f #### Defined in -[lib/field.ts:691](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L691) +[lib/field.ts:691](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L691) ___ @@ -801,7 +801,7 @@ A [Bool](Bool.md) representing if this [Field](Field.md) is less than or equal a #### Defined in -[lib/field.ts:721](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L721) +[lib/field.ts:721](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L721) ___ @@ -834,7 +834,7 @@ A [Field](Field.md) element equivalent to the modular difference of the two valu #### Defined in -[lib/field.ts:436](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L436) +[lib/field.ts:436](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L436) ___ @@ -868,7 +868,7 @@ A [Field](Field.md) element that is equivalent to the element multiplied by -1. #### Defined in -[lib/field.ts:338](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L338) +[lib/field.ts:338](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L338) ___ @@ -897,7 +897,7 @@ A [Field](Field.md) element that is equal to the `length` of this [Field](Field. #### Defined in -[lib/field.ts:1002](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1002) +[lib/field.ts:1002](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1002) ___ @@ -921,7 +921,7 @@ A [Field](Field.md) element that is equal to the result of AST that was previous #### Defined in -[lib/field.ts:1030](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1030) +[lib/field.ts:1030](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1030) ___ @@ -952,7 +952,7 @@ A [Field](Field.md) element equivalent to the square root of the [Field](Field.m #### Defined in -[lib/field.ts:574](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L574) +[lib/field.ts:574](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L574) ___ @@ -981,7 +981,7 @@ A [Field](Field.md) element equivalent to the multiplication of the [Field](Fiel #### Defined in -[lib/field.ts:544](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L544) +[lib/field.ts:544](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L544) ___ @@ -1027,7 +1027,7 @@ A [Field](Field.md) element equivalent to the modular difference of the two valu #### Defined in -[lib/field.ts:374](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L374) +[lib/field.ts:374](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L374) ___ @@ -1045,7 +1045,7 @@ As the primitive [Field](Field.md) type has no auxiliary data associated with it #### Defined in -[lib/field.ts:1136](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1136) +[lib/field.ts:1136](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1136) ___ @@ -1072,7 +1072,7 @@ A bigint equivalent to the bigint representation of the Field. #### Defined in -[lib/field.ts:236](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L236) +[lib/field.ts:236](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L236) ___ @@ -1102,7 +1102,7 @@ An array of [Bool](Bool.md) element representing little endian binary representa #### Defined in -[lib/field.ts:947](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L947) +[lib/field.ts:947](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L947) ___ @@ -1129,7 +1129,7 @@ A constant [Field](Field.md) element equivalent to this [Field](Field.md) elemen #### Defined in -[lib/field.ts:219](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L219) +[lib/field.ts:219](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L219) ___ @@ -1149,7 +1149,7 @@ A [Field](Field.md) array of length 1 created from this [Field](Field.md). #### Defined in -[lib/field.ts:1127](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1127) +[lib/field.ts:1127](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1127) ___ @@ -1176,7 +1176,7 @@ A string equivalent to the JSON representation of the [Field](Field.md). #### Defined in -[lib/field.ts:1155](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1155) +[lib/field.ts:1155](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1155) ___ @@ -1203,7 +1203,7 @@ A string equivalent to the string representation of the Field. #### Defined in -[lib/field.ts:254](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L254) +[lib/field.ts:254](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L254) ___ @@ -1224,7 +1224,7 @@ ___ #### Defined in -[lib/field.ts:925](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L925) +[lib/field.ts:925](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L925) ___ @@ -1244,7 +1244,7 @@ x is Field #### Defined in -[lib/field.ts:162](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L162) +[lib/field.ts:162](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L162) ___ @@ -1264,7 +1264,7 @@ ___ #### Defined in -[lib/field.ts:167](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L167) +[lib/field.ts:167](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L167) ___ @@ -1284,7 +1284,7 @@ ___ #### Defined in -[lib/field.ts:171](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L171) +[lib/field.ts:171](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L171) ___ @@ -1302,7 +1302,7 @@ As any field element can be a [Field](Field.md), this function does not create a #### Defined in -[lib/field.ts:1118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1118) +[lib/field.ts:1118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1118) ___ @@ -1322,7 +1322,7 @@ ___ #### Defined in -[lib/field.ts:175](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L175) +[lib/field.ts:175](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L175) ___ @@ -1350,7 +1350,7 @@ A [Field](Field.md) element matching the [little endian binary representation](h #### Defined in -[lib/field.ts:973](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L973) +[lib/field.ts:973](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L973) ___ @@ -1377,7 +1377,7 @@ A new [Field](Field.md) element created using the [little-endian](https://en.wik #### Defined in -[lib/field.ts:1242](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1242) +[lib/field.ts:1242](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1242) ___ @@ -1405,7 +1405,7 @@ The first [Field](Field.md) element of the given array. #### Defined in -[lib/field.ts:1107](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1107) +[lib/field.ts:1107](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1107) ___ @@ -1431,7 +1431,7 @@ A [Field](Field.md) coerced from the given JSON string. #### Defined in -[lib/field.ts:1187](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1187) +[lib/field.ts:1187](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1187) ___ @@ -1455,7 +1455,7 @@ A random [Field](Field.md) element. #### Defined in -[lib/field.ts:1046](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1046) +[lib/field.ts:1046](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1046) ___ @@ -1486,7 +1486,7 @@ Part of the `Binable` interface. #### Defined in -[lib/field.ts:1225](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1225) +[lib/field.ts:1225](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1225) ___ @@ -1506,7 +1506,7 @@ The size of a [Field](Field.md) element in bits - 255. #### Defined in -[lib/field.ts:1264](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1264) +[lib/field.ts:1264](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1264) ___ @@ -1526,7 +1526,7 @@ The size of a [Field](Field.md) element - 32. #### Defined in -[lib/field.ts:1253](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1253) +[lib/field.ts:1253](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1253) ___ @@ -1553,7 +1553,7 @@ A number representing the size of the [Field](Field.md) type in terms of [Field] #### Defined in -[lib/field.ts:1092](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1092) +[lib/field.ts:1092](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1092) ___ @@ -1571,7 +1571,7 @@ As the primitive [Field](Field.md) type has no auxiliary data associated with it #### Defined in -[lib/field.ts:1075](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1075) +[lib/field.ts:1075](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1075) ___ @@ -1596,7 +1596,7 @@ An array of digits equal to the [little-endian](https://en.wikipedia.org/wiki/En #### Defined in -[lib/field.ts:1216](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1216) +[lib/field.ts:1216](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1216) ___ @@ -1623,7 +1623,7 @@ A [Field](Field.md) array of length 1 created from this [Field](Field.md). #### Defined in -[lib/field.ts:1064](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1064) +[lib/field.ts:1064](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1064) ___ @@ -1653,7 +1653,7 @@ An object where the `fields` key is a [Field](Field.md) array of length 1 create #### Defined in -[lib/field.ts:1201](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1201) +[lib/field.ts:1201](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1201) ___ @@ -1686,4 +1686,4 @@ A string equivalent to the JSON representation of the given [Field](Field.md). #### Defined in -[lib/field.ts:1174](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1174) +[lib/field.ts:1174](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1174) diff --git a/docs/zkapps/o1js-reference/classes/Group.md b/docs/zkapps/o1js-reference/classes/Group.md index 4120cac2d..9d9e61a8f 100644 --- a/docs/zkapps/o1js-reference/classes/Group.md +++ b/docs/zkapps/o1js-reference/classes/Group.md @@ -69,7 +69,7 @@ Coerces anything group-like to a [Group](Group.md). #### Defined in -[lib/group.ts:44](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L44) +[lib/group.ts:44](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L44) ## Properties @@ -79,7 +79,7 @@ Coerces anything group-like to a [Group](Group.md). #### Defined in -[lib/group.ts:15](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L15) +[lib/group.ts:15](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L15) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[lib/group.ts:16](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L16) +[lib/group.ts:16](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L16) ## Accessors @@ -105,7 +105,7 @@ The generator `g` of the Group. #### Defined in -[lib/group.ts:21](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L21) +[lib/group.ts:21](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L21) ___ @@ -130,7 +130,7 @@ g.add(zero).assertEquals(g); #### Defined in -[lib/group.ts:37](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L37) +[lib/group.ts:37](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L37) ## Methods @@ -144,7 +144,7 @@ g.add(zero).assertEquals(g); #### Defined in -[lib/group.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L96) +[lib/group.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L96) ___ @@ -164,7 +164,7 @@ ___ #### Defined in -[lib/group.ts:100](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L100) +[lib/group.ts:100](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L100) ___ @@ -178,7 +178,7 @@ ___ #### Defined in -[lib/group.ts:92](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L92) +[lib/group.ts:92](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L92) ___ @@ -205,7 +205,7 @@ let g2 = g1.add(g1) #### Defined in -[lib/group.ts:124](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L124) +[lib/group.ts:124](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L124) ___ @@ -233,7 +233,7 @@ g1.assertEquals(g2); #### Defined in -[lib/group.ts:246](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L246) +[lib/group.ts:246](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L246) ___ @@ -260,7 +260,7 @@ g1.equals(g1); // Bool(true) #### Defined in -[lib/group.ts:262](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L262) +[lib/group.ts:262](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L262) ___ @@ -276,7 +276,7 @@ Checks if this element is the `zero` element `{x: 0, y: 0}`. #### Defined in -[lib/group.ts:111](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L111) +[lib/group.ts:111](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L111) ___ @@ -292,7 +292,7 @@ Negates this [Group](Group.md). Under the hood, it simply negates the `y` coordi #### Defined in -[lib/group.ts:210](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L210) +[lib/group.ts:210](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L210) ___ @@ -319,7 +319,7 @@ let 5g = g.scale(s); #### Defined in -[lib/group.ts:224](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L224) +[lib/group.ts:224](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L224) ___ @@ -341,7 +341,7 @@ Subtracts another [Group](Group.md) element from this one. #### Defined in -[lib/group.ts:203](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L203) +[lib/group.ts:203](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L203) ___ @@ -359,7 +359,7 @@ Returns an array containing this [Group](Group.md) element as an array of [Field #### Defined in -[lib/group.ts:289](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L289) +[lib/group.ts:289](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L289) ___ @@ -382,7 +382,7 @@ This operation does NOT affect the circuit and can't be used to prove anything a #### Defined in -[lib/group.ts:274](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L274) +[lib/group.ts:274](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L274) ___ @@ -405,7 +405,7 @@ ___ #### Defined in -[lib/group.ts:76](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L76) +[lib/group.ts:76](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L76) ___ @@ -428,7 +428,7 @@ ___ #### Defined in -[lib/group.ts:88](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L88) +[lib/group.ts:88](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L88) ___ @@ -455,7 +455,7 @@ Adds a [Group](Group.md) element to another one. #### Defined in -[lib/group.ts:308](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L308) +[lib/group.ts:308](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L308) ___ @@ -487,7 +487,7 @@ Group.assertEquals(g1, g2); #### Defined in -[lib/group.ts:358](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L358) +[lib/group.ts:358](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L358) ___ @@ -509,7 +509,7 @@ Checks that a [Group](Group.md) element is constraint properly by checking that #### Defined in -[lib/group.ts:439](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L439) +[lib/group.ts:439](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L439) ___ @@ -541,7 +541,7 @@ Group.equal(g1, g2); // Bool(true) #### Defined in -[lib/group.ts:372](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L372) +[lib/group.ts:372](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L372) ___ @@ -564,7 +564,7 @@ Coerces two x and y coordinates into a [Group](Group.md) element. #### Defined in -[lib/group.ts:296](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L296) +[lib/group.ts:296](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L296) ___ @@ -588,7 +588,7 @@ Deserializes a [Group](Group.md) element from a list of field elements. #### Defined in -[lib/group.ts:399](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L399) +[lib/group.ts:399](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L399) ___ @@ -614,7 +614,7 @@ This operation does NOT affect the circuit and can't be used to prove anything a #### Defined in -[lib/group.ts:426](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L426) +[lib/group.ts:426](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L426) ___ @@ -644,7 +644,7 @@ let gNeg = Group.neg(g); #### Defined in -[lib/group.ts:330](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L330) +[lib/group.ts:330](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L330) ___ @@ -676,7 +676,7 @@ let 5g = Group.scale(g, s); #### Defined in -[lib/group.ts:344](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L344) +[lib/group.ts:344](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L344) ___ @@ -694,7 +694,7 @@ Returns 2. #### Defined in -[lib/group.ts:408](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L408) +[lib/group.ts:408](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L408) ___ @@ -721,7 +721,7 @@ Subtracts a [Group](Group.md) element from another one. #### Defined in -[lib/group.ts:317](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L317) +[lib/group.ts:317](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L317) ___ @@ -745,7 +745,7 @@ Returns an empty array. #### Defined in -[lib/group.ts:390](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L390) +[lib/group.ts:390](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L390) ___ @@ -769,7 +769,7 @@ Returns an array containing a [Group](Group.md) element as an array of [Field](F #### Defined in -[lib/group.ts:381](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L381) +[lib/group.ts:381](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L381) ___ @@ -798,4 +798,4 @@ This operation does NOT affect the circuit and can't be used to prove anything a #### Defined in -[lib/group.ts:417](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/group.ts#L417) +[lib/group.ts:417](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/group.ts#L417) diff --git a/docs/zkapps/o1js-reference/classes/Int64.md b/docs/zkapps/o1js-reference/classes/Int64.md index 79b40c5f5..77836f3d4 100644 --- a/docs/zkapps/o1js-reference/classes/Int64.md +++ b/docs/zkapps/o1js-reference/classes/Int64.md @@ -82,7 +82,7 @@ A 64 bit signed integer with values ranging from -18,446,744,073,709,551,615 to #### Defined in -[lib/int.ts:788](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L788) +[lib/int.ts:788](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L788) ## Properties @@ -96,7 +96,7 @@ BalanceChange.magnitude #### Defined in -[lib/int.ts:765](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L765) +[lib/int.ts:765](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L765) ___ @@ -110,7 +110,7 @@ BalanceChange.sgn #### Defined in -[lib/int.ts:766](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L766) +[lib/int.ts:766](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L766) ## Accessors @@ -126,7 +126,7 @@ Static method to create a [Int64](Int64.md) with value `-1`. #### Defined in -[lib/int.ts:863](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L863) +[lib/int.ts:863](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L863) ___ @@ -142,7 +142,7 @@ Static method to create a [Int64](Int64.md) with value `1`. #### Defined in -[lib/int.ts:857](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L857) +[lib/int.ts:857](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L857) ___ @@ -158,7 +158,7 @@ Static method to create a [Int64](Int64.md) with value `0`. #### Defined in -[lib/int.ts:851](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L851) +[lib/int.ts:851](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L851) ## Methods @@ -180,7 +180,7 @@ Addition with overflow checking. #### Defined in -[lib/int.ts:897](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L897) +[lib/int.ts:897](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L897) ___ @@ -207,7 +207,7 @@ Asserts that two values are equal. #### Defined in -[lib/int.ts:951](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L951) +[lib/int.ts:951](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L951) ___ @@ -232,7 +232,7 @@ Integer division. #### Defined in -[lib/int.ts:922](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L922) +[lib/int.ts:922](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L922) ___ @@ -258,7 +258,7 @@ Checks if two values are equal. #### Defined in -[lib/int.ts:944](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L944) +[lib/int.ts:944](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L944) ___ @@ -276,7 +276,7 @@ ___ #### Defined in -[lib/int.ts:840](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L840) +[lib/int.ts:840](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L840) ___ @@ -292,7 +292,7 @@ Checks if the value is postive. #### Defined in -[lib/int.ts:961](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L961) +[lib/int.ts:961](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L961) ___ @@ -317,7 +317,7 @@ Integer remainder. #### Defined in -[lib/int.ts:934](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L934) +[lib/int.ts:934](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L934) ___ @@ -339,7 +339,7 @@ Multiplication with overflow checking. #### Defined in -[lib/int.ts:911](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L911) +[lib/int.ts:911](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L911) ___ @@ -357,7 +357,7 @@ Negates the value. #### Defined in -[lib/int.ts:890](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L890) +[lib/int.ts:890](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L890) ___ @@ -379,7 +379,7 @@ Subtraction with underflow checking. #### Defined in -[lib/int.ts:904](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L904) +[lib/int.ts:904](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L904) ___ @@ -397,7 +397,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -413,7 +413,7 @@ Returns the [Field](../modules.md#field-1) value. #### Defined in -[lib/int.ts:870](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L870) +[lib/int.ts:870](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L870) ___ @@ -431,7 +431,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -449,7 +449,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -465,7 +465,7 @@ Turns the [Int64](Int64.md) into a string. #### Defined in -[lib/int.ts:835](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L835) +[lib/int.ts:835](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L835) ___ @@ -496,7 +496,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -520,7 +520,7 @@ Check the range if the argument is a constant. #### Defined in -[lib/int.ts:825](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L825) +[lib/int.ts:825](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L825) ___ @@ -542,7 +542,7 @@ Static method to create a [Int64](Int64.md) from a [Field](../modules.md#field-1 #### Defined in -[lib/int.ts:876](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L876) +[lib/int.ts:876](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L876) ___ @@ -566,7 +566,7 @@ Does check if the [Field](../modules.md#field-1) is within range. #### Defined in -[lib/int.ts:797](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L797) +[lib/int.ts:797](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L797) ___ @@ -597,7 +597,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -628,7 +628,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -659,7 +659,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -683,7 +683,7 @@ Creates a new [Int64](Int64.md) from a [Field](../modules.md#field-1). #### Defined in -[lib/int.ts:815](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L815) +[lib/int.ts:815](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L815) ___ @@ -701,7 +701,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -719,7 +719,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -750,7 +750,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -781,7 +781,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -812,7 +812,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -843,4 +843,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/Keypair.md b/docs/zkapps/o1js-reference/classes/Keypair.md index 010cc4704..177fc329d 100644 --- a/docs/zkapps/o1js-reference/classes/Keypair.md +++ b/docs/zkapps/o1js-reference/classes/Keypair.md @@ -31,7 +31,7 @@ #### Defined in -[lib/circuit.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L144) +[lib/circuit.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L144) ## Properties @@ -41,7 +41,7 @@ #### Defined in -[lib/circuit.ts:142](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L142) +[lib/circuit.ts:142](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L142) ## Methods @@ -65,7 +65,7 @@ const json = MyProvable.witnessFromKeypair(keypair); #### Defined in -[lib/circuit.ts:163](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L163) +[lib/circuit.ts:163](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L163) ___ @@ -79,4 +79,4 @@ ___ #### Defined in -[lib/circuit.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L148) +[lib/circuit.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L148) diff --git a/docs/zkapps/o1js-reference/classes/Ledger.md b/docs/zkapps/o1js-reference/classes/Ledger.md index ce71a498c..bf95e69e9 100644 --- a/docs/zkapps/o1js-reference/classes/Ledger.md +++ b/docs/zkapps/o1js-reference/classes/Ledger.md @@ -44,7 +44,7 @@ Adds an account and its balance to the ledger. #### Defined in -[snarky.d.ts:475](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L475) +[snarky.d.ts:615](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L615) ___ @@ -68,7 +68,7 @@ Applies a JSON transaction to the ledger. #### Defined in -[snarky.d.ts:480](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L480) +[snarky.d.ts:620](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L620) ___ @@ -91,7 +91,7 @@ Returns an account. #### Defined in -[snarky.d.ts:489](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L489) +[snarky.d.ts:629](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L629) ___ @@ -107,4 +107,4 @@ Creates a fresh ledger. #### Defined in -[snarky.d.ts:470](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L470) +[snarky.d.ts:610](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L610) diff --git a/docs/zkapps/o1js-reference/classes/MerkleMap.md b/docs/zkapps/o1js-reference/classes/MerkleMap.md index 2a4cad9d6..2facb5966 100644 --- a/docs/zkapps/o1js-reference/classes/MerkleMap.md +++ b/docs/zkapps/o1js-reference/classes/MerkleMap.md @@ -30,7 +30,7 @@ Creates a new, empty Merkle Map. #### Defined in -[lib/merkle_map.ts:19](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L19) +[lib/merkle_map.ts:19](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L19) ## Properties @@ -40,7 +40,7 @@ Creates a new, empty Merkle Map. #### Defined in -[lib/merkle_map.ts:11](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L11) +[lib/merkle_map.ts:11](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L11) ## Methods @@ -60,7 +60,7 @@ Creates a new, empty Merkle Map. #### Defined in -[lib/merkle_map.ts:34](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L34) +[lib/merkle_map.ts:34](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L34) ___ @@ -84,7 +84,7 @@ The value stored at the key. #### Defined in -[lib/merkle_map.ts:70](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L70) +[lib/merkle_map.ts:70](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L70) ___ @@ -102,7 +102,7 @@ The root of the Merkle Map. #### Defined in -[lib/merkle_map.ts:81](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L81) +[lib/merkle_map.ts:81](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L81) ___ @@ -126,7 +126,7 @@ A MerkleMapWitness, which can be used to assert changes to the MerkleMap, and th #### Defined in -[lib/merkle_map.ts:90](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L90) +[lib/merkle_map.ts:90](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L90) ___ @@ -149,4 +149,4 @@ Sets a key of the merkle map to a given value. #### Defined in -[lib/merkle_map.ts:58](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L58) +[lib/merkle_map.ts:58](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L58) diff --git a/docs/zkapps/o1js-reference/classes/MerkleMapWitness.md b/docs/zkapps/o1js-reference/classes/MerkleMapWitness.md index d4b5290cb..e18bef7cf 100644 --- a/docs/zkapps/o1js-reference/classes/MerkleMapWitness.md +++ b/docs/zkapps/o1js-reference/classes/MerkleMapWitness.md @@ -62,7 +62,7 @@ #### Defined in -[lib/merkle_map.ts:121](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L121) +[lib/merkle_map.ts:121](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L121) ## Properties @@ -72,7 +72,7 @@ #### Defined in -[lib/merkle_map.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L118) +[lib/merkle_map.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L118) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[lib/merkle_map.ts:119](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L119) +[lib/merkle_map.ts:119](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L119) ## Methods @@ -106,7 +106,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -130,7 +130,7 @@ A tuple of the computed merkle root, and the key that is connected to the path u #### Defined in -[lib/merkle_map.ts:132](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_map.ts#L132) +[lib/merkle_map.ts:132](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_map.ts#L132) ___ @@ -154,7 +154,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -172,7 +172,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -190,7 +190,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -208,7 +208,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -226,7 +226,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -257,7 +257,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -288,7 +288,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -319,7 +319,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -350,7 +350,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -368,7 +368,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -386,7 +386,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -417,7 +417,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -448,7 +448,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -479,7 +479,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -510,4 +510,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/MerkleTree.md b/docs/zkapps/o1js-reference/classes/MerkleTree.md index 81d087783..d6946d80d 100644 --- a/docs/zkapps/o1js-reference/classes/MerkleTree.md +++ b/docs/zkapps/o1js-reference/classes/MerkleTree.md @@ -53,7 +53,7 @@ Creates a new, empty [Merkle Tree](https://en.wikipedia.org/wiki/Merkle_tree). #### Defined in -[lib/merkle_tree.ts:38](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L38) +[lib/merkle_tree.ts:38](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L38) ## Properties @@ -65,7 +65,7 @@ The height of Merkle Tree. #### Defined in -[lib/merkle_tree.ts:38](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L38) +[lib/merkle_tree.ts:38](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L38) ___ @@ -75,7 +75,7 @@ ___ #### Defined in -[lib/merkle_tree.ts:30](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L30) +[lib/merkle_tree.ts:30](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L30) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[lib/merkle_tree.ts:31](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L31) +[lib/merkle_tree.ts:31](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L31) ## Accessors @@ -103,7 +103,7 @@ Amount of leaf nodes. #### Defined in -[lib/merkle_tree.ts:147](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L147) +[lib/merkle_tree.ts:147](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L147) ## Methods @@ -125,7 +125,7 @@ Fills all leaves of the tree. #### Defined in -[lib/merkle_tree.ts:137](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L137) +[lib/merkle_tree.ts:137](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L137) ___ @@ -150,7 +150,7 @@ The data of the node. #### Defined in -[lib/merkle_tree.ts:52](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L52) +[lib/merkle_tree.ts:52](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L52) ___ @@ -168,7 +168,7 @@ The root of the Merkle Tree. #### Defined in -[lib/merkle_tree.ts:60](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L60) +[lib/merkle_tree.ts:60](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L60) ___ @@ -192,7 +192,7 @@ The witness that belongs to the leaf. #### Defined in -[lib/merkle_tree.ts:98](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L98) +[lib/merkle_tree.ts:98](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L98) ___ @@ -215,7 +215,7 @@ Sets the value of a leaf node at a given index to a given value. #### Defined in -[lib/merkle_tree.ts:75](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L75) +[lib/merkle_tree.ts:75](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L75) ___ @@ -237,7 +237,7 @@ ___ #### Defined in -[lib/merkle_tree.ts:65](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L65) +[lib/merkle_tree.ts:65](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L65) ___ @@ -261,4 +261,4 @@ True if the witness for the leaf node is valid. #### Defined in -[lib/merkle_tree.ts:120](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L120) +[lib/merkle_tree.ts:120](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L120) diff --git a/docs/zkapps/o1js-reference/classes/Nullifier.md b/docs/zkapps/o1js-reference/classes/Nullifier.md index 065f44ad8..c7297e36f 100644 --- a/docs/zkapps/o1js-reference/classes/Nullifier.md +++ b/docs/zkapps/o1js-reference/classes/Nullifier.md @@ -78,7 +78,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L366) +[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L366) ## Properties @@ -111,7 +111,7 @@ Struct({ #### Defined in -[lib/nullifier.ts:26](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L26) +[lib/nullifier.ts:26](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L26) ___ @@ -143,7 +143,7 @@ Struct({ #### Defined in -[lib/nullifier.ts:22](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L22) +[lib/nullifier.ts:22](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L22) ___ @@ -168,7 +168,7 @@ Struct({ #### Defined in -[lib/nullifier.ts:21](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L21) +[lib/nullifier.ts:21](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L21) ___ @@ -193,7 +193,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L366) +[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L366) ___ @@ -240,7 +240,7 @@ Struct({ #### Defined in -[snarky.d.ts:142](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L142) +[snarky.d.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L156) ___ @@ -291,7 +291,7 @@ Struct({ #### Defined in -[snarky.d.ts:123](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L123) +[snarky.d.ts:137](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L137) ___ @@ -338,7 +338,7 @@ Struct({ #### Defined in -[snarky.d.ts:112](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L112) +[snarky.d.ts:126](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L126) ___ @@ -384,7 +384,7 @@ Struct({ #### Defined in -[snarky.d.ts:102](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L102) +[snarky.d.ts:116](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L116) ___ @@ -431,7 +431,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:369](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L369) +[lib/circuit_value.ts:369](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L369) ___ @@ -481,7 +481,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:373](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L373) +[lib/circuit_value.ts:373](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L373) ## Methods @@ -511,7 +511,7 @@ nullifier.assertUnused(); #### Defined in -[lib/nullifier.ts:141](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L141) +[lib/nullifier.ts:141](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L141) ___ @@ -533,7 +533,7 @@ let pk = nullifier.getPublicKey(); #### Defined in -[lib/nullifier.ts:170](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L170) +[lib/nullifier.ts:170](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L170) ___ @@ -563,7 +563,7 @@ let isUnused = nullifier.isUnused(); #### Defined in -[lib/nullifier.ts:121](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L121) +[lib/nullifier.ts:121](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L121) ___ @@ -587,7 +587,7 @@ let key = nullifier.key(); #### Defined in -[lib/nullifier.ts:108](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L108) +[lib/nullifier.ts:108](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L108) ___ @@ -616,7 +616,7 @@ let newRoot = nullifier.setUsed(witness); #### Defined in -[lib/nullifier.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L156) +[lib/nullifier.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L156) ___ @@ -646,7 +646,7 @@ nullifier.verify(nullifierMessage); #### Defined in -[lib/nullifier.ts:47](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L47) +[lib/nullifier.ts:47](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L47) ___ @@ -674,7 +674,7 @@ https://eprint.iacr.org/2022/1255.pdf chapter 3 page 14 #### Defined in -[lib/nullifier.ts:183](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L183) +[lib/nullifier.ts:183](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L183) ___ @@ -709,7 +709,7 @@ Struct({ #### Defined in -[lib/nullifier.ts:32](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/nullifier.ts#L32) +[lib/nullifier.ts:32](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/nullifier.ts#L32) ___ @@ -744,4 +744,4 @@ Struct({ #### Defined in -[snarky.d.ts:132](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L132) +[snarky.d.ts:146](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L146) diff --git a/docs/zkapps/o1js-reference/classes/PrivateKey.md b/docs/zkapps/o1js-reference/classes/PrivateKey.md index 5f694655f..b7c6b9d4e 100644 --- a/docs/zkapps/o1js-reference/classes/PrivateKey.md +++ b/docs/zkapps/o1js-reference/classes/PrivateKey.md @@ -65,7 +65,7 @@ A signing key. You can generate one via [random](PrivateKey.md#random). #### Defined in -[lib/signature.ts:30](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L30) +[lib/signature.ts:30](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L30) ## Properties @@ -75,7 +75,7 @@ A signing key. You can generate one via [random](PrivateKey.md#random). #### Defined in -[lib/signature.ts:28](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L28) +[lib/signature.ts:28](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L28) ## Methods @@ -99,7 +99,7 @@ A signing key. You can generate one via [random](PrivateKey.md#random). #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -123,7 +123,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -141,7 +141,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -159,7 +159,7 @@ a base58 encoded string #### Defined in -[lib/signature.ts:95](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L95) +[lib/signature.ts:95](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L95) ___ @@ -175,7 +175,7 @@ Convert this [PrivateKey](PrivateKey.md) to a bigint #### Defined in -[lib/signature.ts:58](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L58) +[lib/signature.ts:58](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L58) ___ @@ -193,7 +193,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -211,7 +211,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -229,7 +229,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -247,7 +247,7 @@ a [PublicKey](Types.PublicKey.md). #### Defined in -[lib/signature.ts:77](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L77) +[lib/signature.ts:77](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L77) ___ @@ -278,7 +278,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -302,7 +302,7 @@ a [PrivateKey](PrivateKey.md). #### Defined in -[lib/signature.ts:86](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L86) +[lib/signature.ts:86](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L86) ___ @@ -327,7 +327,7 @@ Be careful that you don't use this method to create private keys that were sampl #### Defined in -[lib/signature.ts:68](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L68) +[lib/signature.ts:68](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L68) ___ @@ -351,7 +351,7 @@ a [PrivateKey](PrivateKey.md). #### Defined in -[lib/signature.ts:51](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L51) +[lib/signature.ts:51](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L51) ___ @@ -382,7 +382,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -413,7 +413,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -444,7 +444,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -464,7 +464,7 @@ a new [PrivateKey](PrivateKey.md). #### Defined in -[lib/signature.ts:41](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L41) +[lib/signature.ts:41](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L41) ___ @@ -482,7 +482,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -500,7 +500,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -525,7 +525,7 @@ a base58 encoded string #### Defined in -[lib/signature.ts:104](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L104) +[lib/signature.ts:104](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L104) ___ @@ -556,7 +556,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -587,7 +587,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -618,7 +618,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -649,4 +649,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/Proof.md b/docs/zkapps/o1js-reference/classes/Proof.md index 9952264b6..c51228627 100644 --- a/docs/zkapps/o1js-reference/classes/Proof.md +++ b/docs/zkapps/o1js-reference/classes/Proof.md @@ -65,7 +65,7 @@ #### Defined in -[lib/proof_system.ts:127](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L127) +[lib/proof_system.ts:134](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L134) ## Properties @@ -75,7 +75,7 @@ #### Defined in -[lib/proof_system.ts:85](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L85) +[lib/proof_system.ts:92](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L92) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[lib/proof_system.ts:84](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L84) +[lib/proof_system.ts:91](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L91) ___ @@ -95,7 +95,7 @@ ___ #### Defined in -[lib/proof_system.ts:82](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L82) +[lib/proof_system.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L89) ___ @@ -105,7 +105,7 @@ ___ #### Defined in -[lib/proof_system.ts:83](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L83) +[lib/proof_system.ts:90](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L90) ___ @@ -115,7 +115,7 @@ ___ #### Defined in -[lib/proof_system.ts:86](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L86) +[lib/proof_system.ts:93](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L93) ___ @@ -125,7 +125,7 @@ ___ #### Defined in -[lib/proof_system.ts:74](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L74) +[lib/proof_system.ts:81](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L81) ___ @@ -135,7 +135,7 @@ ___ #### Defined in -[lib/proof_system.ts:75](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L75) +[lib/proof_system.ts:82](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L82) ___ @@ -157,7 +157,7 @@ ___ #### Defined in -[lib/proof_system.ts:76](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L76) +[lib/proof_system.ts:83](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L83) ## Methods @@ -171,7 +171,7 @@ ___ #### Defined in -[lib/proof_system.ts:94](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L94) +[lib/proof_system.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L101) ___ @@ -185,7 +185,7 @@ ___ #### Defined in -[lib/proof_system.ts:88](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L88) +[lib/proof_system.ts:95](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L95) ___ @@ -205,7 +205,7 @@ ___ #### Defined in -[lib/proof_system.ts:91](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L91) +[lib/proof_system.ts:98](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L98) ___ @@ -255,7 +255,7 @@ must match your ZkProgram. `maxProofsVerified` is the maximum number of proofs t #### Defined in -[lib/proof_system.ts:165](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L165) +[lib/proof_system.ts:172](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L172) ___ @@ -282,4 +282,4 @@ ___ #### Defined in -[lib/proof_system.ts:103](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L103) +[lib/proof_system.ts:110](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L110) diff --git a/docs/zkapps/o1js-reference/classes/Scalar.md b/docs/zkapps/o1js-reference/classes/Scalar.md index 9977e2eeb..c8ef31bdc 100644 --- a/docs/zkapps/o1js-reference/classes/Scalar.md +++ b/docs/zkapps/o1js-reference/classes/Scalar.md @@ -59,7 +59,7 @@ Represents a [Scalar](Scalar.md). #### Defined in -[lib/scalar.ts:37](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L37) +[lib/scalar.ts:37](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L37) ## Properties @@ -69,7 +69,7 @@ Represents a [Scalar](Scalar.md). #### Defined in -[lib/scalar.ts:33](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L33) +[lib/scalar.ts:33](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L33) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[lib/scalar.ts:32](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L32) +[lib/scalar.ts:32](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L32) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[lib/scalar.ts:35](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L35) +[lib/scalar.ts:35](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L35) ## Methods @@ -109,7 +109,7 @@ ___ #### Defined in -[lib/scalar.ts:115](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L115) +[lib/scalar.ts:115](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L115) ___ @@ -133,7 +133,7 @@ Add scalar field elements. #### Defined in -[lib/scalar.ts:135](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L135) +[lib/scalar.ts:135](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L135) ___ @@ -158,7 +158,7 @@ Throws if the denominator is zero. #### Defined in -[lib/scalar.ts:172](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L172) +[lib/scalar.ts:172](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L172) ___ @@ -175,7 +175,7 @@ this is Scalar & Object #### Defined in -[lib/scalar.ts:62](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L62) +[lib/scalar.ts:62](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L62) ___ @@ -199,7 +199,7 @@ Multiply scalar field elements. #### Defined in -[lib/scalar.ts:159](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L159) +[lib/scalar.ts:159](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L159) ___ @@ -217,7 +217,7 @@ Negate a scalar field element. #### Defined in -[lib/scalar.ts:124](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L124) +[lib/scalar.ts:124](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L124) ___ @@ -231,7 +231,7 @@ ___ #### Defined in -[lib/scalar.ts:181](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L181) +[lib/scalar.ts:181](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L181) ___ @@ -255,7 +255,7 @@ Subtract scalar field elements. #### Defined in -[lib/scalar.ts:147](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L147) +[lib/scalar.ts:147](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L147) ___ @@ -271,7 +271,7 @@ Convert this [Scalar](Scalar.md) into a bigint #### Defined in -[lib/scalar.ts:90](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L90) +[lib/scalar.ts:90](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L90) ___ @@ -291,7 +291,7 @@ See [FieldVar](../modules.md#fieldvar-1) for an explanation of constants vs. var #### Defined in -[lib/scalar.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L73) +[lib/scalar.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L73) ___ @@ -314,7 +314,7 @@ that can be used outside proofs. #### Defined in -[lib/scalar.ts:236](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L236) +[lib/scalar.ts:236](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L236) ___ @@ -340,7 +340,7 @@ is needed to represent all Scalars. However, for a random Scalar, the high bit w #### Defined in -[lib/scalar.ts:198](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L198) +[lib/scalar.ts:198](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L198) ___ @@ -356,7 +356,7 @@ Serializes this Scalar to a string #### Defined in -[lib/scalar.ts:302](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L302) +[lib/scalar.ts:302](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L302) ___ @@ -370,7 +370,7 @@ ___ #### Defined in -[lib/scalar.ts:185](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L185) +[lib/scalar.ts:185](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L185) ___ @@ -388,7 +388,7 @@ Does nothing. #### Defined in -[lib/scalar.ts:272](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L272) +[lib/scalar.ts:272](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L272) ___ @@ -412,7 +412,7 @@ If the input is too large, it is reduced modulo the scalar field size. #### Defined in -[lib/scalar.ts:50](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L50) +[lib/scalar.ts:50](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L50) ___ @@ -436,7 +436,7 @@ use [from](Scalar.md#from) #### Defined in -[lib/scalar.ts:83](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L83) +[lib/scalar.ts:83](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L83) ___ @@ -460,7 +460,7 @@ Creates a data structure from an array of serialized [Bool](Bool.md). #### Defined in -[lib/scalar.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L101) +[lib/scalar.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L101) ___ @@ -484,7 +484,7 @@ Creates a data structure from an array of serialized [Field](Field.md) elements. #### Defined in -[lib/scalar.ts:254](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L254) +[lib/scalar.ts:254](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L254) ___ @@ -507,7 +507,7 @@ This operation does _not_ affect the circuit and can't be used to prove anything #### Defined in -[lib/scalar.ts:310](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L310) +[lib/scalar.ts:310](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L310) ___ @@ -524,7 +524,7 @@ Randomness can not be proven inside a circuit! #### Defined in -[lib/scalar.ts:109](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L109) +[lib/scalar.ts:109](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L109) ___ @@ -542,7 +542,7 @@ Returns the size of this type in [Field](Field.md) elements. #### Defined in -[lib/scalar.ts:263](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L263) +[lib/scalar.ts:263](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L263) ___ @@ -560,7 +560,7 @@ Serialize a [Scalar](Scalar.md) into its auxiliary data, which are empty. #### Defined in -[lib/scalar.ts:245](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L245) +[lib/scalar.ts:245](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L245) ___ @@ -588,7 +588,7 @@ The fields are not constrained to be boolean. #### Defined in -[lib/scalar.ts:221](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L221) +[lib/scalar.ts:221](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L221) ___ @@ -611,4 +611,4 @@ This operation does _not_ affect the circuit and can't be used to prove anything #### Defined in -[lib/scalar.ts:294](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/scalar.ts#L294) +[lib/scalar.ts:294](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/scalar.ts#L294) diff --git a/docs/zkapps/o1js-reference/classes/SelfProof.md b/docs/zkapps/o1js-reference/classes/SelfProof.md index 41a84b478..03d7c4a38 100644 --- a/docs/zkapps/o1js-reference/classes/SelfProof.md +++ b/docs/zkapps/o1js-reference/classes/SelfProof.md @@ -69,7 +69,7 @@ #### Defined in -[lib/proof_system.ts:127](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L127) +[lib/proof_system.ts:134](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L134) ## Properties @@ -83,7 +83,7 @@ #### Defined in -[lib/proof_system.ts:85](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L85) +[lib/proof_system.ts:92](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L92) ___ @@ -97,7 +97,7 @@ ___ #### Defined in -[lib/proof_system.ts:84](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L84) +[lib/proof_system.ts:91](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L91) ___ @@ -111,7 +111,7 @@ ___ #### Defined in -[lib/proof_system.ts:82](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L82) +[lib/proof_system.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L89) ___ @@ -125,7 +125,7 @@ ___ #### Defined in -[lib/proof_system.ts:83](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L83) +[lib/proof_system.ts:90](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L90) ___ @@ -139,7 +139,7 @@ ___ #### Defined in -[lib/proof_system.ts:86](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L86) +[lib/proof_system.ts:93](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L93) ___ @@ -153,7 +153,7 @@ ___ #### Defined in -[lib/proof_system.ts:74](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L74) +[lib/proof_system.ts:81](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L81) ___ @@ -167,7 +167,7 @@ ___ #### Defined in -[lib/proof_system.ts:75](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L75) +[lib/proof_system.ts:82](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L82) ___ @@ -193,7 +193,7 @@ ___ #### Defined in -[lib/proof_system.ts:76](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L76) +[lib/proof_system.ts:83](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L83) ## Methods @@ -211,7 +211,7 @@ ___ #### Defined in -[lib/proof_system.ts:94](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L94) +[lib/proof_system.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L101) ___ @@ -229,7 +229,7 @@ ___ #### Defined in -[lib/proof_system.ts:88](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L88) +[lib/proof_system.ts:95](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L95) ___ @@ -253,7 +253,7 @@ ___ #### Defined in -[lib/proof_system.ts:91](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L91) +[lib/proof_system.ts:98](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L98) ___ @@ -307,7 +307,7 @@ must match your ZkProgram. `maxProofsVerified` is the maximum number of proofs t #### Defined in -[lib/proof_system.ts:165](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L165) +[lib/proof_system.ts:172](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L172) ___ @@ -338,4 +338,4 @@ ___ #### Defined in -[lib/proof_system.ts:103](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L103) +[lib/proof_system.ts:110](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L110) diff --git a/docs/zkapps/o1js-reference/classes/Sign.md b/docs/zkapps/o1js-reference/classes/Sign.md index 378bac248..4bbbbd222 100644 --- a/docs/zkapps/o1js-reference/classes/Sign.md +++ b/docs/zkapps/o1js-reference/classes/Sign.md @@ -69,7 +69,7 @@ #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Properties @@ -79,7 +79,7 @@ #### Defined in -[lib/int.ts:714](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L714) +[lib/int.ts:714](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L714) ## Accessors @@ -93,7 +93,7 @@ #### Defined in -[lib/int.ts:719](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L719) +[lib/int.ts:719](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L719) ___ @@ -107,7 +107,7 @@ ___ #### Defined in -[lib/int.ts:716](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L716) +[lib/int.ts:716](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L716) ## Methods @@ -131,7 +131,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -155,7 +155,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -173,7 +173,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -187,7 +187,7 @@ ___ #### Defined in -[lib/int.ts:748](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L748) +[lib/int.ts:748](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L748) ___ @@ -207,7 +207,7 @@ ___ #### Defined in -[lib/int.ts:745](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L745) +[lib/int.ts:745](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L745) ___ @@ -221,7 +221,7 @@ ___ #### Defined in -[lib/int.ts:742](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L742) +[lib/int.ts:742](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L742) ___ @@ -239,7 +239,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -257,7 +257,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -275,7 +275,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -289,7 +289,7 @@ ___ #### Defined in -[lib/int.ts:751](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L751) +[lib/int.ts:751](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L751) ___ @@ -313,7 +313,7 @@ ___ #### Defined in -[lib/int.ts:722](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L722) +[lib/int.ts:722](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L722) ___ @@ -327,7 +327,7 @@ ___ #### Defined in -[lib/int.ts:726](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L726) +[lib/int.ts:726](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L726) ___ @@ -358,7 +358,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -388,7 +388,7 @@ ___ #### Defined in -[lib/int.ts:737](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L737) +[lib/int.ts:737](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L737) ___ @@ -419,7 +419,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -437,7 +437,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -455,7 +455,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -486,7 +486,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -517,7 +517,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -541,7 +541,7 @@ ___ #### Defined in -[lib/int.ts:729](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L729) +[lib/int.ts:729](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L729) ___ @@ -565,4 +565,4 @@ ___ #### Defined in -[lib/int.ts:732](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L732) +[lib/int.ts:732](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L732) diff --git a/docs/zkapps/o1js-reference/classes/Signature.md b/docs/zkapps/o1js-reference/classes/Signature.md index b9d7aae6f..f63ea57d8 100644 --- a/docs/zkapps/o1js-reference/classes/Signature.md +++ b/docs/zkapps/o1js-reference/classes/Signature.md @@ -62,7 +62,7 @@ A Schnorr [Signature](Signature.md) over the Pasta Curves. #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Properties @@ -72,7 +72,7 @@ A Schnorr [Signature](Signature.md) over the Pasta Curves. #### Defined in -[lib/signature.ts:231](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L231) +[lib/signature.ts:231](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L231) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[lib/signature.ts:232](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L232) +[lib/signature.ts:232](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L232) ## Methods @@ -106,7 +106,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -130,7 +130,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -148,7 +148,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -164,7 +164,7 @@ Encodes a [Signature](Signature.md) in base58 format. #### Defined in -[lib/signature.ts:292](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L292) +[lib/signature.ts:292](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L292) ___ @@ -182,7 +182,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -200,7 +200,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -218,7 +218,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -243,7 +243,7 @@ a [Bool](../modules.md#bool-1) #### Defined in -[lib/signature.ts:266](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L266) +[lib/signature.ts:266](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L266) ___ @@ -274,7 +274,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -299,7 +299,7 @@ a [Signature](Signature.md) #### Defined in -[lib/signature.ts:238](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L238) +[lib/signature.ts:238](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L238) ___ @@ -321,7 +321,7 @@ Decodes a base58 encoded signature into a [Signature](Signature.md). #### Defined in -[lib/signature.ts:282](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L282) +[lib/signature.ts:282](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L282) ___ @@ -352,7 +352,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -383,7 +383,7 @@ ___ #### Defined in -[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L226) +[lib/circuit_value.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L226) ___ @@ -414,7 +414,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -432,7 +432,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -450,7 +450,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -481,7 +481,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -512,7 +512,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -543,7 +543,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -574,4 +574,4 @@ ___ #### Defined in -[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L215) +[lib/circuit_value.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L215) diff --git a/docs/zkapps/o1js-reference/classes/SmartContract.md b/docs/zkapps/o1js-reference/classes/SmartContract.md index ddcfcb82d..122aaef3c 100644 --- a/docs/zkapps/o1js-reference/classes/SmartContract.md +++ b/docs/zkapps/o1js-reference/classes/SmartContract.md @@ -75,7 +75,7 @@ class YourSmartContract extends SmartContract { #### Defined in -[lib/zkapp.ts:637](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L637) +[lib/zkapp.ts:638](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L638) ## Properties @@ -92,7 +92,7 @@ class YourSmartContract extends SmartContract { #### Defined in -[lib/zkapp.ts:887](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L887) +[lib/zkapp.ts:889](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L889) ___ @@ -102,7 +102,7 @@ ___ #### Defined in -[lib/zkapp.ts:604](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L604) +[lib/zkapp.ts:605](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L605) ___ @@ -112,7 +112,7 @@ ___ #### Defined in -[lib/zkapp.ts:601](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L601) +[lib/zkapp.ts:602](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L602) ___ @@ -128,7 +128,7 @@ A list of event types that can be emitted using this.emitEvent()`. #### Defined in -[lib/zkapp.ts:998](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L998) +[lib/zkapp.ts:1000](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1000) ___ @@ -138,7 +138,7 @@ ___ #### Defined in -[lib/zkapp.ts:602](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L602) +[lib/zkapp.ts:603](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L603) ___ @@ -148,7 +148,7 @@ ___ #### Defined in -[lib/zkapp.ts:622](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L622) +[lib/zkapp.ts:623](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L623) ___ @@ -158,7 +158,7 @@ ___ #### Defined in -[lib/zkapp.ts:611](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L611) +[lib/zkapp.ts:612](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L612) ___ @@ -168,7 +168,7 @@ ___ #### Defined in -[lib/zkapp.ts:610](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L610) +[lib/zkapp.ts:611](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L611) ___ @@ -178,7 +178,7 @@ ___ #### Defined in -[lib/zkapp.ts:621](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L621) +[lib/zkapp.ts:622](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L622) ___ @@ -195,7 +195,7 @@ ___ #### Defined in -[lib/zkapp.ts:623](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L623) +[lib/zkapp.ts:624](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L624) ## Accessors @@ -211,7 +211,7 @@ Current account of the [SmartContract](SmartContract.md). #### Defined in -[lib/zkapp.ts:918](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L918) +[lib/zkapp.ts:920](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L920) ___ @@ -232,7 +232,7 @@ Balance of this [SmartContract](SmartContract.md). #### Defined in -[lib/zkapp.ts:992](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L992) +[lib/zkapp.ts:994](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L994) ___ @@ -250,7 +250,7 @@ or `assertEquals()` (confusing, because the developer can't know the exact slot #### Defined in -[lib/zkapp.ts:932](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L932) +[lib/zkapp.ts:934](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L934) ___ @@ -266,7 +266,7 @@ Current network state of the [SmartContract](SmartContract.md). #### Defined in -[lib/zkapp.ts:924](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L924) +[lib/zkapp.ts:926](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L926) ___ @@ -282,7 +282,7 @@ Returns the current [AccountUpdate](AccountUpdate.md) associated to this [SmartC #### Defined in -[lib/zkapp.ts:844](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L844) +[lib/zkapp.ts:846](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L846) ___ @@ -303,7 +303,7 @@ A malicious prover could use any other public key without affecting the validity #### Defined in -[lib/zkapp.ts:897](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L897) +[lib/zkapp.ts:899](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L899) ___ @@ -328,7 +328,7 @@ Token of the [SmartContract](SmartContract.md). #### Defined in -[lib/zkapp.ts:938](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L938) +[lib/zkapp.ts:940](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L940) ___ @@ -350,7 +350,7 @@ use `this.account.tokenSymbol` #### Defined in -[lib/zkapp.ts:986](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L986) +[lib/zkapp.ts:988](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L988) ## Methods @@ -390,7 +390,7 @@ The account update that was approved (needed when passing in a Callback) #### Defined in -[lib/zkapp.ts:964](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L964) +[lib/zkapp.ts:966](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L966) ___ @@ -424,7 +424,7 @@ tx.sign([senderKey, zkAppKey]); #### Defined in -[lib/zkapp.ts:728](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L728) +[lib/zkapp.ts:730](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L730) ___ @@ -453,7 +453,7 @@ Emits an event. Events will be emitted as a part of the transaction and can be c #### Defined in -[lib/zkapp.ts:1004](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1004) +[lib/zkapp.ts:1006](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1006) ___ @@ -493,7 +493,7 @@ A promise that resolves to an array of objects, each containing the event type a #### Defined in -[lib/zkapp.ts:1050](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1050) +[lib/zkapp.ts:1052](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1052) ___ @@ -519,7 +519,7 @@ class MyContract extends SmartContract { #### Defined in -[lib/zkapp.ts:799](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L799) +[lib/zkapp.ts:801](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L801) ___ @@ -535,7 +535,7 @@ Same as `SmartContract.self` but explicitly creates a new [AccountUpdate](Accoun #### Defined in -[lib/zkapp.ts:879](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L879) +[lib/zkapp.ts:881](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L881) ___ @@ -559,7 +559,7 @@ with the only difference being that quick mock proofs are filled in instead of r #### Defined in -[lib/zkapp.ts:820](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L820) +[lib/zkapp.ts:822](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L822) ___ @@ -581,7 +581,7 @@ ___ #### Defined in -[lib/zkapp.ts:976](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L976) +[lib/zkapp.ts:978](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L978) ___ @@ -605,7 +605,7 @@ use `this.account.permissions.set()` #### Defined in -[lib/zkapp.ts:1230](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1230) +[lib/zkapp.ts:1232](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1232) ___ @@ -636,7 +636,7 @@ use `this.account..set()` #### Defined in -[lib/zkapp.ts:1223](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1223) +[lib/zkapp.ts:1225](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1225) ___ @@ -660,7 +660,7 @@ ___ #### Defined in -[lib/zkapp.ts:826](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L826) +[lib/zkapp.ts:828](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L828) ___ @@ -681,7 +681,7 @@ authorization flow. #### Defined in -[lib/zkapp.ts:837](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L837) +[lib/zkapp.ts:839](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L839) ___ @@ -697,7 +697,7 @@ typeof `__class` #### Defined in -[lib/zkapp.ts:628](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L628) +[lib/zkapp.ts:629](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L629) ___ @@ -730,13 +730,13 @@ an object, keyed by method name, each entry containing: #### Defined in -[lib/zkapp.ts:1170](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1170) +[lib/zkapp.ts:1172](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1172) ___ ### compile -▸ `Static` **compile**(): `Promise`<{ `provers`: [`Prover`](../modules/Pickles.md#prover)[] ; `verificationKey`: { `data`: `string` = verificationKey\_.data; `hash`: [`Field`](Field.md) } ; `verify`: (`statement`: [`Statement`](../modules/Pickles.md#statement)<[`FieldConst`](../modules.md#fieldconst-1)\>, `proof`: `unknown`) => `Promise`<`boolean`\> }\> +▸ `Static` **compile**(`«destructured»?`): `Promise`<{ `provers`: [`Prover`](../modules/Pickles.md#prover)[] ; `verificationKey`: { `data`: `string` = verificationKey\_.data; `hash`: [`Field`](Field.md) } ; `verify`: (`statement`: [`Statement`](../modules/Pickles.md#statement)<[`FieldConst`](../modules.md#fieldconst-1)\>, `proof`: `unknown`) => `Promise`<`boolean`\> }\> Compile your smart contract. @@ -751,13 +751,20 @@ create multiple prover & verifier indices (one for each smart contract method as it so that proofs end up in the original finite field). These are fairly expensive operations, so **expect compiling to take at least 20 seconds**, up to several minutes if your circuit is large or your hardware is not optimal for these operations. +#### Parameters + +| Name | Type | +| :------ | :------ | +| `«destructured»` | `Object` | +| › `cache` | `undefined` \| [`Cache`](../modules.md#cache-1) | + #### Returns `Promise`<{ `provers`: [`Prover`](../modules/Pickles.md#prover)[] ; `verificationKey`: { `data`: `string` = verificationKey\_.data; `hash`: [`Field`](Field.md) } ; `verify`: (`statement`: [`Statement`](../modules/Pickles.md#statement)<[`FieldConst`](../modules.md#fieldconst-1)\>, `proof`: `unknown`) => `Promise`<`boolean`\> }\> #### Defined in -[lib/zkapp.ts:664](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L664) +[lib/zkapp.ts:665](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L665) ___ @@ -777,7 +784,7 @@ the digest, as a hex string #### Defined in -[lib/zkapp.ts:708](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L708) +[lib/zkapp.ts:710](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L710) ___ @@ -797,4 +804,4 @@ ___ #### Defined in -[lib/zkapp.ts:1144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1144) +[lib/zkapp.ts:1146](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1146) diff --git a/docs/zkapps/o1js-reference/classes/Token.md b/docs/zkapps/o1js-reference/classes/Token.md index a9bbd54db..20e2ac5b2 100644 --- a/docs/zkapps/o1js-reference/classes/Token.md +++ b/docs/zkapps/o1js-reference/classes/Token.md @@ -39,7 +39,7 @@ use `TokenId` instead of `Token.Id` and `TokenId.derive()` instead of `Token.get #### Defined in -[lib/account_update.ts:632](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L632) +[lib/account_update.ts:632](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L632) ## Properties @@ -49,7 +49,7 @@ use `TokenId` instead of `Token.Id` and `TokenId.derive()` instead of `Token.get #### Defined in -[lib/account_update.ts:629](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L629) +[lib/account_update.ts:629](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L629) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[lib/account_update.ts:630](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L630) +[lib/account_update.ts:630](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L630) ___ @@ -69,7 +69,7 @@ ___ #### Defined in -[lib/account_update.ts:631](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L631) +[lib/account_update.ts:631](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L631) ___ @@ -97,7 +97,7 @@ ___ #### Defined in -[lib/account_update.ts:623](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L623) +[lib/account_update.ts:623](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L623) ## Methods @@ -118,4 +118,4 @@ ___ #### Defined in -[lib/account_update.ts:625](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L625) +[lib/account_update.ts:625](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L625) diff --git a/docs/zkapps/o1js-reference/classes/TokenSymbol.md b/docs/zkapps/o1js-reference/classes/TokenSymbol.md index af5d67864..4a78de413 100644 --- a/docs/zkapps/o1js-reference/classes/TokenSymbol.md +++ b/docs/zkapps/o1js-reference/classes/TokenSymbol.md @@ -56,7 +56,7 @@ Struct(TokenSymbolPure).constructor #### Defined in -[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L366) +[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L366) ## Properties @@ -70,7 +70,7 @@ Struct(TokenSymbolPure).field #### Defined in -[lib/hash.ts:153](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/hash.ts#L153) +[lib/hash.ts:153](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/hash.ts#L153) ___ @@ -84,7 +84,7 @@ Struct(TokenSymbolPure).symbol #### Defined in -[lib/hash.ts:153](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/hash.ts#L153) +[lib/hash.ts:153](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/hash.ts#L153) ___ @@ -98,7 +98,7 @@ Struct(TokenSymbolPure).\_isStruct #### Defined in -[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L366) +[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L366) ___ @@ -133,7 +133,7 @@ Struct(TokenSymbolPure).check #### Defined in -[snarky.d.ts:83](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L83) +[snarky.d.ts:97](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L97) ___ @@ -173,7 +173,7 @@ Struct(TokenSymbolPure).fromFields #### Defined in -[snarky.d.ts:64](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L64) +[snarky.d.ts:78](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L78) ___ @@ -206,7 +206,7 @@ Struct(TokenSymbolPure).fromJSON #### Defined in -[lib/circuit_value.ts:374](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L374) +[lib/circuit_value.ts:374](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L374) ___ @@ -240,7 +240,7 @@ Struct(TokenSymbolPure).toAuxiliary #### Defined in -[snarky.d.ts:52](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L52) +[snarky.d.ts:66](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L66) ___ @@ -274,7 +274,7 @@ Struct(TokenSymbolPure).toFields #### Defined in -[snarky.d.ts:43](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L43) +[snarky.d.ts:57](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L57) ___ @@ -309,7 +309,7 @@ Struct(TokenSymbolPure).toInput #### Defined in -[lib/circuit_value.ts:369](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L369) +[lib/circuit_value.ts:369](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L369) ___ @@ -339,7 +339,7 @@ Struct(TokenSymbolPure).toJSON #### Defined in -[lib/circuit_value.ts:373](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L373) +[lib/circuit_value.ts:373](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L373) ## Accessors @@ -358,7 +358,7 @@ Struct(TokenSymbolPure).toJSON #### Defined in -[lib/hash.ts:184](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/hash.ts#L184) +[lib/hash.ts:184](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/hash.ts#L184) ## Methods @@ -378,7 +378,7 @@ Struct(TokenSymbolPure).toJSON #### Defined in -[lib/hash.ts:188](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/hash.ts#L188) +[lib/hash.ts:188](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/hash.ts#L188) ___ @@ -402,4 +402,4 @@ Struct(TokenSymbolPure).sizeInFields #### Defined in -[snarky.d.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L73) +[snarky.d.ts:87](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L87) diff --git a/docs/zkapps/o1js-reference/classes/Types.PublicKey.md b/docs/zkapps/o1js-reference/classes/Types.PublicKey.md index ea18f14ef..568b76993 100644 --- a/docs/zkapps/o1js-reference/classes/Types.PublicKey.md +++ b/docs/zkapps/o1js-reference/classes/Types.PublicKey.md @@ -70,7 +70,7 @@ You can derive a [PublicKey](Types.PublicKey.md) directly from a [PrivateKey](Pr #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Properties @@ -80,7 +80,7 @@ You can derive a [PublicKey](Types.PublicKey.md) directly from a [PrivateKey](Pr #### Defined in -[lib/signature.ts:119](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L119) +[lib/signature.ts:119](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L119) ___ @@ -90,7 +90,7 @@ ___ #### Defined in -[lib/signature.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L118) +[lib/signature.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L118) ## Methods @@ -114,7 +114,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -138,7 +138,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -156,7 +156,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -174,7 +174,7 @@ a [Bool](../modules.md#bool-1) #### Defined in -[lib/signature.ts:176](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L176) +[lib/signature.ts:176](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L176) ___ @@ -192,7 +192,7 @@ a base58 encoded [PublicKey](Types.PublicKey.md) #### Defined in -[lib/signature.ts:194](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L194) +[lib/signature.ts:194](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L194) ___ @@ -210,7 +210,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -228,7 +228,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -246,7 +246,7 @@ A [Group](../modules.md#group-1) #### Defined in -[lib/signature.ts:125](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L125) +[lib/signature.ts:125](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L125) ___ @@ -264,7 +264,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -295,7 +295,7 @@ ___ #### Defined in -[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L193) +[lib/circuit_value.ts:193](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L193) ___ @@ -313,7 +313,7 @@ an empty [PublicKey](Types.PublicKey.md) #### Defined in -[lib/signature.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L168) +[lib/signature.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L168) ___ @@ -339,7 +339,7 @@ a [PublicKey](Types.PublicKey.md). #### Defined in -[lib/signature.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L160) +[lib/signature.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L160) ___ @@ -363,7 +363,7 @@ a [PublicKey](Types.PublicKey.md) #### Defined in -[lib/signature.ts:185](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L185) +[lib/signature.ts:185](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L185) ___ @@ -394,7 +394,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -418,7 +418,7 @@ a [PublicKey](Types.PublicKey.md). #### Defined in -[lib/signature.ts:143](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L143) +[lib/signature.ts:143](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L143) ___ @@ -453,7 +453,7 @@ a JSON string #### Defined in -[lib/signature.ts:222](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L222) +[lib/signature.ts:222](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L222) ___ @@ -484,7 +484,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -508,7 +508,7 @@ a [PublicKey](Types.PublicKey.md). #### Defined in -[lib/signature.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L152) +[lib/signature.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L152) ___ @@ -526,7 +526,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -544,7 +544,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -568,7 +568,7 @@ a base58 encoded [PublicKey](Types.PublicKey.md) #### Defined in -[lib/signature.ts:202](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L202) +[lib/signature.ts:202](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L202) ___ @@ -599,7 +599,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -630,7 +630,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -661,7 +661,7 @@ ___ #### Defined in -[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L122) +[lib/circuit_value.ts:122](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L122) ___ @@ -689,4 +689,4 @@ a JSON string #### Defined in -[lib/signature.ts:214](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L214) +[lib/signature.ts:214](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L214) diff --git a/docs/zkapps/o1js-reference/classes/UInt32.md b/docs/zkapps/o1js-reference/classes/UInt32.md index e4bb070c5..3a4d6f202 100644 --- a/docs/zkapps/o1js-reference/classes/UInt32.md +++ b/docs/zkapps/o1js-reference/classes/UInt32.md @@ -91,7 +91,7 @@ A 32 bit unsigned integer with values ranging from 0 to 4,294,967,295. #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Properties @@ -101,7 +101,7 @@ A 32 bit unsigned integer with values ranging from 0 to 4,294,967,295. #### Defined in -[lib/int.ts:379](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L379) +[lib/int.ts:379](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L379) ___ @@ -111,7 +111,7 @@ ___ #### Defined in -[lib/int.ts:380](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L380) +[lib/int.ts:380](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L380) ## Accessors @@ -127,7 +127,7 @@ Static method to create a [UInt32](UInt32.md) with value `0`. #### Defined in -[lib/int.ts:392](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L392) +[lib/int.ts:392](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L392) ___ @@ -143,7 +143,7 @@ Static method to create a [UInt32](UInt32.md) with value `0`. #### Defined in -[lib/int.ts:385](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L385) +[lib/int.ts:385](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L385) ## Methods @@ -165,7 +165,7 @@ Addition with overflow checking. #### Defined in -[lib/int.ts:532](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L532) +[lib/int.ts:532](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L532) ___ @@ -189,7 +189,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -212,7 +212,7 @@ Asserts that a [UInt32](UInt32.md) is greater than another one. #### Defined in -[lib/int.ts:675](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L675) +[lib/int.ts:675](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L675) ___ @@ -235,7 +235,7 @@ Asserts that a [UInt32](UInt32.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:708](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L708) +[lib/int.ts:708](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L708) ___ @@ -262,7 +262,7 @@ Asserts that a [UInt32](UInt32.md) is greater than another one. #### Defined in -[lib/int.ts:668](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L668) +[lib/int.ts:668](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L668) ___ @@ -289,7 +289,7 @@ Asserts that a [UInt32](UInt32.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:701](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L701) +[lib/int.ts:701](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L701) ___ @@ -312,7 +312,7 @@ Asserts that a [UInt32](UInt32.md) is less than another one. #### Defined in -[lib/int.ts:643](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L643) +[lib/int.ts:643](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L643) ___ @@ -335,7 +335,7 @@ Asserts that a [UInt32](UInt32.md) is less than or equal to another one. #### Defined in -[lib/int.ts:601](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L601) +[lib/int.ts:601](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L601) ___ @@ -362,7 +362,7 @@ Asserts that a [UInt32](UInt32.md) is less than another one. #### Defined in -[lib/int.ts:636](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L636) +[lib/int.ts:636](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L636) ___ @@ -389,7 +389,7 @@ Asserts that a [UInt32](UInt32.md) is less than or equal to another one. #### Defined in -[lib/int.ts:594](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L594) +[lib/int.ts:594](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L594) ___ @@ -414,7 +414,7 @@ Integer division. #### Defined in -[lib/int.ts:509](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L509) +[lib/int.ts:509](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L509) ___ @@ -443,7 +443,7 @@ Integer division with remainder. #### Defined in -[lib/int.ts:467](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L467) +[lib/int.ts:467](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L467) ___ @@ -467,7 +467,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -489,7 +489,7 @@ Checks if a [UInt32](UInt32.md) is greater than another one. #### Defined in -[lib/int.ts:659](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L659) +[lib/int.ts:659](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L659) ___ @@ -511,7 +511,7 @@ Checks if a [UInt32](UInt32.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:691](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L691) +[lib/int.ts:691](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L691) ___ @@ -537,7 +537,7 @@ Checks if a [UInt32](UInt32.md) is greater than another one. #### Defined in -[lib/int.ts:652](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L652) +[lib/int.ts:652](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L652) ___ @@ -563,7 +563,7 @@ Checks if a [UInt32](UInt32.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:684](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L684) +[lib/int.ts:684](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L684) ___ @@ -581,7 +581,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -603,7 +603,7 @@ Checks if a [UInt32](UInt32.md) is less than another one. #### Defined in -[lib/int.ts:627](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L627) +[lib/int.ts:627](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L627) ___ @@ -625,7 +625,7 @@ Checks if a [UInt32](UInt32.md) is less than or equal to another one. #### Defined in -[lib/int.ts:571](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L571) +[lib/int.ts:571](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L571) ___ @@ -651,7 +651,7 @@ Checks if a [UInt32](UInt32.md) is less than another one. #### Defined in -[lib/int.ts:620](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L620) +[lib/int.ts:620](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L620) ___ @@ -677,7 +677,7 @@ Checks if a [UInt32](UInt32.md) is less than or equal to another one. #### Defined in -[lib/int.ts:550](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L550) +[lib/int.ts:550](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L550) ___ @@ -702,7 +702,7 @@ Integer remainder. #### Defined in -[lib/int.ts:518](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L518) +[lib/int.ts:518](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L518) ___ @@ -724,7 +724,7 @@ Multiplication with overflow checking. #### Defined in -[lib/int.ts:524](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L524) +[lib/int.ts:524](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L524) ___ @@ -746,7 +746,7 @@ Subtraction with underflow checking. #### Defined in -[lib/int.ts:540](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L540) +[lib/int.ts:540](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L540) ___ @@ -762,7 +762,7 @@ Turns the [UInt32](UInt32.md) into a BigInt. #### Defined in -[lib/int.ts:404](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L404) +[lib/int.ts:404](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L404) ___ @@ -780,7 +780,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -798,7 +798,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -816,7 +816,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -832,7 +832,7 @@ Turns the [UInt32](UInt32.md) into a string. #### Defined in -[lib/int.ts:398](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L398) +[lib/int.ts:398](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L398) ___ @@ -848,7 +848,7 @@ Turns the [UInt32](UInt32.md) into a [UInt64](UInt64.md). #### Defined in -[lib/int.ts:410](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L410) +[lib/int.ts:410](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L410) ___ @@ -864,7 +864,7 @@ Creates a [UInt32](UInt32.md) with a value of 4,294,967,295. #### Defined in -[lib/int.ts:458](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L458) +[lib/int.ts:458](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L458) ___ @@ -888,7 +888,7 @@ ___ #### Defined in -[lib/int.ts:415](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L415) +[lib/int.ts:415](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L415) ___ @@ -908,7 +908,7 @@ ___ #### Defined in -[lib/int.ts:436](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L436) +[lib/int.ts:436](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L436) ___ @@ -930,7 +930,7 @@ Creates a new [UInt32](UInt32.md). #### Defined in -[lib/int.ts:451](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L451) +[lib/int.ts:451](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L451) ___ @@ -961,7 +961,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -993,7 +993,7 @@ Decodes a JSON-like object into this structure. #### Defined in -[lib/int.ts:432](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L432) +[lib/int.ts:432](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L432) ___ @@ -1024,7 +1024,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -1042,7 +1042,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -1060,7 +1060,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -1091,7 +1091,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -1122,7 +1122,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -1146,7 +1146,7 @@ ___ #### Defined in -[lib/int.ts:419](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L419) +[lib/int.ts:419](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L419) ___ @@ -1172,4 +1172,4 @@ Encodes this structure into a JSON-like object. #### Defined in -[lib/int.ts:425](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L425) +[lib/int.ts:425](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L425) diff --git a/docs/zkapps/o1js-reference/classes/UInt64.md b/docs/zkapps/o1js-reference/classes/UInt64.md index a380224d9..749d326f3 100644 --- a/docs/zkapps/o1js-reference/classes/UInt64.md +++ b/docs/zkapps/o1js-reference/classes/UInt64.md @@ -92,7 +92,7 @@ A 64 bit unsigned integer with values ranging from 0 to 18,446,744,073,709,551,6 #### Defined in -[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L72) +[lib/circuit_value.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L72) ## Properties @@ -102,7 +102,7 @@ A 64 bit unsigned integer with values ranging from 0 to 18,446,744,073,709,551,6 #### Defined in -[lib/int.ts:14](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L14) +[lib/int.ts:14](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L14) ___ @@ -112,7 +112,7 @@ ___ #### Defined in -[lib/int.ts:15](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L15) +[lib/int.ts:15](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L15) ## Accessors @@ -128,7 +128,7 @@ Static method to create a [UInt64](UInt64.md) with value `1`. #### Defined in -[lib/int.ts:26](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L26) +[lib/int.ts:26](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L26) ___ @@ -144,7 +144,7 @@ Static method to create a [UInt64](UInt64.md) with value `0`. #### Defined in -[lib/int.ts:20](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L20) +[lib/int.ts:20](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L20) ## Methods @@ -166,7 +166,7 @@ Addition with overflow checking. #### Defined in -[lib/int.ts:192](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L192) +[lib/int.ts:192](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L192) ___ @@ -190,7 +190,7 @@ ___ #### Defined in -[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L160) +[lib/circuit_value.ts:160](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L160) ___ @@ -213,7 +213,7 @@ Asserts that a [UInt64](UInt64.md) is greater than another one. #### Defined in -[lib/int.ts:339](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L339) +[lib/int.ts:339](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L339) ___ @@ -236,7 +236,7 @@ Asserts that a [UInt64](UInt64.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:371](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L371) +[lib/int.ts:371](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L371) ___ @@ -263,7 +263,7 @@ Asserts that a [UInt64](UInt64.md) is greater than another one. #### Defined in -[lib/int.ts:332](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L332) +[lib/int.ts:332](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L332) ___ @@ -290,7 +290,7 @@ Asserts that a [UInt64](UInt64.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:364](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L364) +[lib/int.ts:364](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L364) ___ @@ -313,7 +313,7 @@ Asserts that a [UInt64](UInt64.md) is less than another one. #### Defined in -[lib/int.ts:307](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L307) +[lib/int.ts:307](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L307) ___ @@ -336,7 +336,7 @@ Asserts that a [UInt64](UInt64.md) is less than or equal to another one. #### Defined in -[lib/int.ts:263](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L263) +[lib/int.ts:263](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L263) ___ @@ -363,7 +363,7 @@ Asserts that a [UInt64](UInt64.md) is less than another one. #### Defined in -[lib/int.ts:300](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L300) +[lib/int.ts:300](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L300) ___ @@ -390,7 +390,7 @@ Asserts that a [UInt64](UInt64.md) is less than or equal to another one. #### Defined in -[lib/int.ts:256](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L256) +[lib/int.ts:256](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L256) ___ @@ -415,7 +415,7 @@ Integer division. #### Defined in -[lib/int.ts:166](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L166) +[lib/int.ts:166](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L166) ___ @@ -444,7 +444,7 @@ Integer division with remainder. #### Defined in -[lib/int.ts:123](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L123) +[lib/int.ts:123](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L123) ___ @@ -468,7 +468,7 @@ ___ #### Defined in -[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L156) +[lib/circuit_value.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L156) ___ @@ -490,7 +490,7 @@ Checks if a [UInt64](UInt64.md) is greater than another one. #### Defined in -[lib/int.ts:323](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L323) +[lib/int.ts:323](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L323) ___ @@ -512,7 +512,7 @@ Checks if a [UInt64](UInt64.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:355](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L355) +[lib/int.ts:355](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L355) ___ @@ -538,7 +538,7 @@ Checks if a [UInt64](UInt64.md) is greater than another one. #### Defined in -[lib/int.ts:316](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L316) +[lib/int.ts:316](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L316) ___ @@ -564,7 +564,7 @@ Checks if a [UInt64](UInt64.md) is greater than or equal to another one. #### Defined in -[lib/int.ts:348](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L348) +[lib/int.ts:348](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L348) ___ @@ -582,7 +582,7 @@ ___ #### Defined in -[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L164) +[lib/circuit_value.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L164) ___ @@ -604,7 +604,7 @@ Checks if a [UInt64](UInt64.md) is less than another one. #### Defined in -[lib/int.ts:290](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L290) +[lib/int.ts:290](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L290) ___ @@ -626,7 +626,7 @@ Checks if a [UInt64](UInt64.md) is less than or equal to another one. #### Defined in -[lib/int.ts:233](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L233) +[lib/int.ts:233](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L233) ___ @@ -652,7 +652,7 @@ Checks if a [UInt64](UInt64.md) is less than another one. #### Defined in -[lib/int.ts:282](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L282) +[lib/int.ts:282](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L282) ___ @@ -678,7 +678,7 @@ Checks if a [UInt64](UInt64.md) is less than or equal to another one. #### Defined in -[lib/int.ts:212](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L212) +[lib/int.ts:212](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L212) ___ @@ -703,7 +703,7 @@ Integer remainder. #### Defined in -[lib/int.ts:176](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L176) +[lib/int.ts:176](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L176) ___ @@ -725,7 +725,7 @@ Multiplication with overflow checking. #### Defined in -[lib/int.ts:183](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L183) +[lib/int.ts:183](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L183) ___ @@ -747,7 +747,7 @@ Subtraction with underflow checking. #### Defined in -[lib/int.ts:201](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L201) +[lib/int.ts:201](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L201) ___ @@ -763,7 +763,7 @@ Turns the [UInt64](UInt64.md) into a BigInt. #### Defined in -[lib/int.ts:40](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L40) +[lib/int.ts:40](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L40) ___ @@ -781,7 +781,7 @@ ___ #### Defined in -[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L152) +[lib/circuit_value.ts:152](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L152) ___ @@ -799,7 +799,7 @@ ___ #### Defined in -[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L144) +[lib/circuit_value.ts:144](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L144) ___ @@ -817,7 +817,7 @@ ___ #### Defined in -[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L148) +[lib/circuit_value.ts:148](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L148) ___ @@ -833,7 +833,7 @@ Turns the [UInt64](UInt64.md) into a string. #### Defined in -[lib/int.ts:33](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L33) +[lib/int.ts:33](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L33) ___ @@ -849,7 +849,7 @@ Turns the [UInt64](UInt64.md) into a [UInt32](UInt32.md), asserting that it fits #### Defined in -[lib/int.ts:47](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L47) +[lib/int.ts:47](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L47) ___ @@ -868,7 +868,7 @@ UInt64.from(4294967296).toUInt32Clamped().toString(); // "4294967295" #### Defined in -[lib/int.ts:59](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L59) +[lib/int.ts:59](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L59) ___ @@ -884,7 +884,7 @@ Creates a [UInt64](UInt64.md) with a value of 18,446,744,073,709,551,615. #### Defined in -[lib/int.ts:114](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L114) +[lib/int.ts:114](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L114) ___ @@ -908,7 +908,7 @@ ___ #### Defined in -[lib/int.ts:68](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L68) +[lib/int.ts:68](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L68) ___ @@ -928,7 +928,7 @@ ___ #### Defined in -[lib/int.ts:91](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L91) +[lib/int.ts:91](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L91) ___ @@ -950,7 +950,7 @@ Creates a new [UInt64](UInt64.md). #### Defined in -[lib/int.ts:106](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L106) +[lib/int.ts:106](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L106) ___ @@ -981,7 +981,7 @@ ___ #### Defined in -[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L168) +[lib/circuit_value.ts:168](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L168) ___ @@ -1013,7 +1013,7 @@ Decodes a JSON-like object into this structure. #### Defined in -[lib/int.ts:87](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L87) +[lib/int.ts:87](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L87) ___ @@ -1044,7 +1044,7 @@ ___ #### Defined in -[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L89) +[lib/circuit_value.ts:89](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L89) ___ @@ -1062,7 +1062,7 @@ ___ #### Defined in -[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L96) +[lib/circuit_value.ts:96](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L96) ___ @@ -1080,7 +1080,7 @@ ___ #### Defined in -[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L118) +[lib/circuit_value.ts:118](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L118) ___ @@ -1111,7 +1111,7 @@ ___ #### Defined in -[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L207) +[lib/circuit_value.ts:207](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L207) ___ @@ -1142,7 +1142,7 @@ ___ #### Defined in -[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L101) +[lib/circuit_value.ts:101](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L101) ___ @@ -1166,7 +1166,7 @@ ___ #### Defined in -[lib/int.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L73) +[lib/int.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L73) ___ @@ -1192,4 +1192,4 @@ Encodes this structure into a JSON-like object. #### Defined in -[lib/int.ts:80](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/int.ts#L80) +[lib/int.ts:80](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/int.ts#L80) diff --git a/docs/zkapps/o1js-reference/classes/VerificationKey.md b/docs/zkapps/o1js-reference/classes/VerificationKey.md index 934926a47..8c28de3e9 100644 --- a/docs/zkapps/o1js-reference/classes/VerificationKey.md +++ b/docs/zkapps/o1js-reference/classes/VerificationKey.md @@ -56,7 +56,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L366) +[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L366) ## Properties @@ -75,7 +75,7 @@ Struct({ #### Defined in -[lib/zkapp.ts:1486](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1486) +[lib/zkapp.ts:1488](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1488) ___ @@ -94,7 +94,7 @@ Struct({ #### Defined in -[lib/zkapp.ts:1486](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1486) +[lib/zkapp.ts:1488](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1488) ___ @@ -113,7 +113,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L366) +[lib/circuit_value.ts:366](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L366) ___ @@ -153,7 +153,7 @@ Struct({ #### Defined in -[snarky.d.ts:83](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L83) +[snarky.d.ts:97](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L97) ___ @@ -198,7 +198,7 @@ Struct({ #### Defined in -[snarky.d.ts:64](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L64) +[snarky.d.ts:78](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L78) ___ @@ -236,7 +236,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:374](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L374) +[lib/circuit_value.ts:374](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L374) ___ @@ -275,7 +275,7 @@ Struct({ #### Defined in -[snarky.d.ts:52](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L52) +[snarky.d.ts:66](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L66) ___ @@ -314,7 +314,7 @@ Struct({ #### Defined in -[snarky.d.ts:43](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L43) +[snarky.d.ts:57](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L57) ___ @@ -354,7 +354,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:369](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L369) +[lib/circuit_value.ts:369](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L369) ___ @@ -389,7 +389,7 @@ Struct({ #### Defined in -[lib/circuit_value.ts:373](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L373) +[lib/circuit_value.ts:373](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L373) ## Methods @@ -418,4 +418,4 @@ Struct({ #### Defined in -[snarky.d.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L73) +[snarky.d.ts:87](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L87) diff --git a/docs/zkapps/o1js-reference/enums/FieldType.md b/docs/zkapps/o1js-reference/enums/FieldType.md index d7b9dfcf5..9c3a8ade8 100644 --- a/docs/zkapps/o1js-reference/enums/FieldType.md +++ b/docs/zkapps/o1js-reference/enums/FieldType.md @@ -19,7 +19,7 @@ #### Defined in -[lib/field.ts:48](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L48) +[lib/field.ts:48](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L48) ___ @@ -29,7 +29,7 @@ ___ #### Defined in -[lib/field.ts:46](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L46) +[lib/field.ts:46](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L46) ___ @@ -39,7 +39,7 @@ ___ #### Defined in -[lib/field.ts:49](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L49) +[lib/field.ts:49](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L49) ___ @@ -49,4 +49,4 @@ ___ #### Defined in -[lib/field.ts:47](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L47) +[lib/field.ts:47](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L47) diff --git a/docs/zkapps/o1js-reference/interfaces/Mina.TransactionId.md b/docs/zkapps/o1js-reference/interfaces/Mina.TransactionId.md index fb468e734..40e9d47d1 100644 --- a/docs/zkapps/o1js-reference/interfaces/Mina.TransactionId.md +++ b/docs/zkapps/o1js-reference/interfaces/Mina.TransactionId.md @@ -23,7 +23,7 @@ #### Defined in -[lib/mina.ts:69](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L69) +[lib/mina.ts:69](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L69) ## Methods @@ -37,7 +37,7 @@ #### Defined in -[lib/mina.ts:71](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L71) +[lib/mina.ts:71](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L71) ___ @@ -59,4 +59,4 @@ ___ #### Defined in -[lib/mina.ts:70](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L70) +[lib/mina.ts:70](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L70) diff --git a/docs/zkapps/o1js-reference/interfaces/Permissions.md b/docs/zkapps/o1js-reference/interfaces/Permissions.md index 3c8dd4f8f..5918b3a60 100644 --- a/docs/zkapps/o1js-reference/interfaces/Permissions.md +++ b/docs/zkapps/o1js-reference/interfaces/Permissions.md @@ -48,7 +48,7 @@ Permissions\_.access #### Defined in -[lib/account_update.ts:236](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L236) +[lib/account_update.ts:236](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L236) ___ @@ -64,7 +64,7 @@ Permissions\_.editActionState #### Defined in -[lib/account_update.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L215) +[lib/account_update.ts:215](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L215) ___ @@ -81,7 +81,7 @@ Permissions\_.editState #### Defined in -[lib/account_update.ts:171](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L171) +[lib/account_update.ts:171](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L171) ___ @@ -95,7 +95,7 @@ Permissions\_.incrementNonce #### Defined in -[lib/account_update.ts:224](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L224) +[lib/account_update.ts:224](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L224) ___ @@ -112,7 +112,7 @@ Permissions\_.receive #### Defined in -[lib/account_update.ts:183](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L183) +[lib/account_update.ts:183](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L183) ___ @@ -129,7 +129,7 @@ Permissions\_.send #### Defined in -[lib/account_update.ts:177](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L177) +[lib/account_update.ts:177](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L177) ___ @@ -146,7 +146,7 @@ Permissions\_.setDelegate #### Defined in -[lib/account_update.ts:189](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L189) +[lib/account_update.ts:189](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L189) ___ @@ -163,7 +163,7 @@ Permissions\_.setPermissions #### Defined in -[lib/account_update.ts:195](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L195) +[lib/account_update.ts:195](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L195) ___ @@ -177,7 +177,7 @@ Permissions\_.setTiming #### Defined in -[lib/account_update.ts:226](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L226) +[lib/account_update.ts:226](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L226) ___ @@ -194,7 +194,7 @@ Permissions\_.setTokenSymbol #### Defined in -[lib/account_update.ts:221](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L221) +[lib/account_update.ts:221](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L221) ___ @@ -212,7 +212,7 @@ Permissions\_.setVerificationKey #### Defined in -[lib/account_update.ts:202](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L202) +[lib/account_update.ts:202](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L202) ___ @@ -226,7 +226,7 @@ Permissions\_.setVotingFor #### Defined in -[lib/account_update.ts:225](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L225) +[lib/account_update.ts:225](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L225) ___ @@ -245,4 +245,4 @@ Permissions\_.setZkappUri #### Defined in -[lib/account_update.ts:210](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L210) +[lib/account_update.ts:210](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L210) diff --git a/docs/zkapps/o1js-reference/interfaces/Provable.md b/docs/zkapps/o1js-reference/interfaces/Provable.md index c9bc7b679..05c51be4f 100644 --- a/docs/zkapps/o1js-reference/interfaces/Provable.md +++ b/docs/zkapps/o1js-reference/interfaces/Provable.md @@ -60,7 +60,7 @@ For instance, calling check function on the type [Bool](../classes/Bool.md) asse #### Defined in -[snarky.d.ts:83](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L83) +[snarky.d.ts:97](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L97) ___ @@ -91,7 +91,7 @@ An element of type `T` generated from the given provable and "auxiliary" data. #### Defined in -[snarky.d.ts:64](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L64) +[snarky.d.ts:78](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L78) ___ @@ -119,7 +119,7 @@ An array of any type describing how this `T` element is made up of "auxiliary" ( #### Defined in -[snarky.d.ts:52](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L52) +[snarky.d.ts:66](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L66) ___ @@ -147,7 +147,7 @@ A [Field](../classes/Field.md) array describing how this `T` element is made up #### Defined in -[snarky.d.ts:43](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L43) +[snarky.d.ts:57](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L57) ## Methods @@ -167,4 +167,4 @@ A `number` representing the size of the `T` type in terms of [Field](../classes/ #### Defined in -[snarky.d.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L73) +[snarky.d.ts:87](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L87) diff --git a/docs/zkapps/o1js-reference/interfaces/ProvablePure.md b/docs/zkapps/o1js-reference/interfaces/ProvablePure.md index f50075ec5..92bad3b49 100644 --- a/docs/zkapps/o1js-reference/interfaces/ProvablePure.md +++ b/docs/zkapps/o1js-reference/interfaces/ProvablePure.md @@ -65,7 +65,7 @@ For instance, calling check function on the type [Bool](../classes/Bool.md) asse #### Defined in -[snarky.d.ts:142](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L142) +[snarky.d.ts:156](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L156) ___ @@ -99,7 +99,7 @@ An element of type `T` generated from the given provable data. #### Defined in -[snarky.d.ts:123](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L123) +[snarky.d.ts:137](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L137) ___ @@ -132,7 +132,7 @@ An empty array, as any element of the interface `ProvablePure` includes no "a #### Defined in -[snarky.d.ts:112](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L112) +[snarky.d.ts:126](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L126) ___ @@ -164,7 +164,7 @@ A [Field](../classes/Field.md) array describing how this `T` element is made up #### Defined in -[snarky.d.ts:102](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L102) +[snarky.d.ts:116](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L116) ## Methods @@ -188,4 +188,4 @@ A `number` representing the size of the `T` type in terms of [Field](../classes/ #### Defined in -[snarky.d.ts:132](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L132) +[snarky.d.ts:146](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L146) diff --git a/docs/zkapps/o1js-reference/modules.md b/docs/zkapps/o1js-reference/modules.md index 3acd633f5..c7d64b71a 100644 --- a/docs/zkapps/o1js-reference/modules.md +++ b/docs/zkapps/o1js-reference/modules.md @@ -60,6 +60,8 @@ - [Bool](modules.md#bool) - [BoolVar](modules.md#boolvar) +- [Cache](modules.md#cache) +- [CacheHeader](modules.md#cacheheader) - [ConstantField](modules.md#constantfield) - [DeployArgs](modules.md#deployargs) - [Empty](modules.md#empty) @@ -90,6 +92,7 @@ ### Variables +- [Cache](modules.md#cache-1) - [Empty](modules.md#empty-1) - [FieldConst](modules.md#fieldconst-1) - [FieldVar](modules.md#fieldvar-1) @@ -127,6 +130,7 @@ - [fetchEvents](modules.md#fetchevents) - [fetchLastBlock](modules.md#fetchlastblock) - [fetchTransactionStatus](modules.md#fetchtransactionstatus) +- [getWasm](modules.md#getwasm) - [isBool](modules.md#isbool) - [isField](modules.md#isfield) - [matrixProp](modules.md#matrixprop) @@ -156,9 +160,9 @@ #### Defined in -[lib/core.ts:70](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L70) +[lib/core.ts:70](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L70) -[lib/core.ts:71](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L71) +[lib/core.ts:71](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L71) ___ @@ -168,7 +172,56 @@ ___ #### Defined in -[lib/bool.ts:17](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L17) +[lib/bool.ts:17](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L17) + +___ + +### Cache + +Ƭ **Cache**: `Object` + +Interface for storing and retrieving values, for caching. +`read()` and `write()` can just throw errors on failure. + +The data that will be passed to the cache for writing is exhaustively described by the [CacheHeader](modules.md#cacheheader) type. +It represents one of the following: +- The SRS. This is a deterministic lists of curve points (one per curve) that needs to be generated just once, + to be used for polynomial commitments. +- Lagrange basis commitments. Similar to the SRS, this will be created once for every power-of-2 circuit size. +- Prover and verifier keys for every compiled circuit. + +Per smart contract or ZkProgram, several different keys are created: +- a step prover key (`step-pk`) and verification key (`step-vk`) _for every method_. +- a wrap prover key (`wrap-pk`) and verification key (`wrap-vk`) for the entire contract. + +#### Type declaration + +| Name | Type | Description | +| :------ | :------ | :------ | +| `canWrite` | `boolean` | Indicates whether the cache is writable. | +| `debug?` | `boolean` | If `debug` is toggled, `read()` and `write()` errors are logged to the console. By default, cache errors are silent, because they don't necessarily represent an error condition, but could just be a cache miss, or file system permissions incompatible with writing data. | +| `read` | (`header`: [`CacheHeader`](modules.md#cacheheader)) => `undefined` \| `Uint8Array` | Read a value from the cache. | +| `write` | (`header`: [`CacheHeader`](modules.md#cacheheader), `value`: `Uint8Array`) => `void` | Write a value to the cache. | + +#### Defined in + +[lib/proof-system/cache.ts:31](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof-system/cache.ts#L31) + +[lib/proof-system/cache.ts:199](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof-system/cache.ts#L199) + +___ + +### CacheHeader + +Ƭ **CacheHeader**: `StepKeyHeader`<``"step-pk"``\> \| `StepKeyHeader`<``"step-vk"``\> \| `WrapKeyHeader`<``"wrap-pk"``\> \| `WrapKeyHeader`<``"wrap-vk"``\> \| `PlainHeader`<``"srs"``\> \| `PlainHeader`<``"lagrange-basis"``\> & `CommonHeader` + +A header that is passed to the caching layer, to support rich caching strategies. + +Both `uniqueId` and `programId` can safely be used as a file path. + +#### Defined in + +[lib/proof-system/cache.ts:98](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof-system/cache.ts#L98) ___ @@ -178,7 +231,7 @@ ___ #### Defined in -[lib/field.ts:94](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L94) +[lib/field.ts:94](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L94) ___ @@ -188,7 +241,7 @@ ___ #### Defined in -[lib/zkapp.ts:1507](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1507) +[lib/zkapp.ts:1509](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1509) ___ @@ -198,9 +251,9 @@ ___ #### Defined in -[lib/proof_system.ts:68](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L68) +[lib/proof_system.ts:75](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L75) -[lib/proof_system.ts:69](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L69) +[lib/proof_system.ts:76](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L76) ___ @@ -223,7 +276,7 @@ ___ #### Defined in -[snarky.d.ts:578](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L578) +[snarky.d.ts:718](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L718) ___ @@ -233,9 +286,9 @@ ___ #### Defined in -[lib/core.ts:42](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L42) +[lib/core.ts:42](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L42) -[lib/core.ts:43](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L43) +[lib/core.ts:43](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L43) ___ @@ -245,9 +298,9 @@ ___ #### Defined in -[lib/field.ts:25](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L25) +[lib/field.ts:25](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L25) -[lib/field.ts:34](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L34) +[lib/field.ts:34](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L34) ___ @@ -269,9 +322,9 @@ Both constants and variables can be combined into an AST using the Add and Scale #### Defined in -[lib/field.ts:65](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L65) +[lib/field.ts:65](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L65) -[lib/field.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L73) +[lib/field.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L73) ___ @@ -287,7 +340,7 @@ ___ #### Defined in -[lib/circuit_value.ts:62](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L62) +[lib/circuit_value.ts:62](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L62) ___ @@ -303,7 +356,7 @@ ___ #### Defined in -[lib/circuit_value.ts:63](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L63) +[lib/circuit_value.ts:63](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L63) ___ @@ -321,7 +374,7 @@ ___ #### Defined in -[snarky.d.ts:447](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L447) +[snarky.d.ts:587](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L587) ___ @@ -331,7 +384,7 @@ ___ #### Defined in -[snarky.d.ts:424](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L424) +[snarky.d.ts:564](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L564) ___ @@ -341,9 +394,9 @@ ___ #### Defined in -[lib/core.ts:76](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L76) +[lib/core.ts:76](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L76) -[lib/core.ts:77](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L77) +[lib/core.ts:77](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L77) ___ @@ -377,7 +430,7 @@ ___ #### Defined in -[snarky.d.ts:440](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L440) +[snarky.d.ts:580](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L580) ___ @@ -396,7 +449,7 @@ ___ #### Defined in -[lib/proof_system.ts:215](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L215) +[lib/proof_system.ts:222](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L222) ___ @@ -406,7 +459,7 @@ ___ #### Defined in -[snarky.d.ts:589](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L589) +[snarky.d.ts:729](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L729) ___ @@ -416,7 +469,7 @@ ___ #### Defined in -[snarky.d.ts:460](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L460) +[snarky.d.ts:600](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L600) ___ @@ -426,7 +479,7 @@ ___ #### Defined in -[snarky.d.ts:461](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L461) +[snarky.d.ts:601](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L601) ___ @@ -446,9 +499,9 @@ You will find this as the required input type in a few places in o1js. One conve #### Defined in -[lib/provable.ts:45](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/provable.ts#L45) +[lib/provable.ts:45](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/provable.ts#L45) -[lib/provable.ts:47](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/provable.ts#L47) +[lib/provable.ts:47](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/provable.ts#L47) ___ @@ -465,7 +518,7 @@ ___ #### Defined in -[lib/circuit_value.ts:52](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L52) +[lib/circuit_value.ts:52](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L52) ___ @@ -487,9 +540,9 @@ ___ #### Defined in -[lib/zkapp.ts:1235](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1235) +[lib/zkapp.ts:1237](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1237) -[lib/zkapp.ts:1554](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1554) +[lib/zkapp.ts:1556](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1556) ___ @@ -519,9 +572,9 @@ Gettable and settable state that can be checked for equality. #### Defined in -[lib/state.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/state.ts#L73) +[lib/state.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/state.ts#L73) -[lib/state.ts:20](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/state.ts#L20) +[lib/state.ts:20](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/state.ts#L20) ___ @@ -537,9 +590,9 @@ ___ #### Defined in -[lib/circuit_value.ts:359](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L359) +[lib/circuit_value.ts:359](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L359) -[lib/circuit_value.ts:57](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L57) +[lib/circuit_value.ts:57](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L57) ___ @@ -555,7 +608,7 @@ UNKNOWN: The transaction has either been snarked, reached finality through conse #### Defined in -[lib/fetch.ts:668](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L668) +[lib/fetch.ts:668](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L668) ___ @@ -565,9 +618,9 @@ ___ #### Defined in -[lib/proof_system.ts:65](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L65) +[lib/proof_system.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L72) -[lib/proof_system.ts:66](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L66) +[lib/proof_system.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L73) ___ @@ -577,9 +630,9 @@ ___ #### Defined in -[lib/proof_system.ts:70](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L70) +[lib/proof_system.ts:77](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L77) -[lib/proof_system.ts:71](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L71) +[lib/proof_system.ts:78](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L78) ___ @@ -609,21 +662,41 @@ transaction. #### Defined in -[lib/account_update.ts:1961](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1961) +[lib/account_update.ts:1961](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1961) -[lib/account_update.ts:1965](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1965) +[lib/account_update.ts:1965](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1965) ## Variables +### Cache + +• **Cache**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `FileSystem` | (`cacheDirectory`: `string`, `debug?`: `boolean`) => [`Cache`](modules.md#cache-1) | +| `FileSystemDefault` | [`Cache`](modules.md#cache-1) | +| `None` | [`Cache`](modules.md#cache-1) | + +#### Defined in + +[lib/proof-system/cache.ts:31](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof-system/cache.ts#L31) + +[lib/proof-system/cache.ts:199](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof-system/cache.ts#L199) + +___ + ### Empty • **Empty**: `ProvablePureExtended`<`undefined`, ``null``\> #### Defined in -[lib/proof_system.ts:68](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L68) +[lib/proof_system.ts:75](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L75) -[lib/proof_system.ts:69](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L69) +[lib/proof_system.ts:76](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L76) ___ @@ -644,9 +717,9 @@ ___ #### Defined in -[lib/field.ts:25](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L25) +[lib/field.ts:25](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L25) -[lib/field.ts:34](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L34) +[lib/field.ts:34](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L34) ___ @@ -668,9 +741,9 @@ ___ #### Defined in -[lib/field.ts:65](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L65) +[lib/field.ts:65](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L65) -[lib/field.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L73) +[lib/field.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L73) ___ @@ -682,13 +755,14 @@ ___ | Name | Type | | :------ | :------ | +| `and` | (`a`: [`Field`](classes/Field.md), `b`: [`Field`](classes/Field.md), `length`: `number`) => [`Field`](classes/Field.md) | | `rangeCheck64` | (`x`: [`Field`](classes/Field.md)) => `void` | | `rotate` | (`field`: [`Field`](classes/Field.md), `bits`: `number`, `direction`: ``"left"`` \| ``"right"``) => [`Field`](classes/Field.md) | | `xor` | (`a`: [`Field`](classes/Field.md), `b`: [`Field`](classes/Field.md), `length`: `number`) => [`Field`](classes/Field.md) | #### Defined in -[lib/gadgets/gadgets.ts:10](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/gadgets/gadgets.ts#L10) +[lib/gadgets/gadgets.ts:10](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/gadgets/gadgets.ts#L10) ___ @@ -714,9 +788,9 @@ ___ #### Defined in -[lib/account_update.ts:166](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L166) +[lib/account_update.ts:166](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L166) -[lib/account_update.ts:238](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L238) +[lib/account_update.ts:238](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L238) ___ @@ -728,19 +802,26 @@ ___ | Name | Type | | :------ | :------ | -| `compile` | (`rules`: `MlArray`<[`Rule`](modules/Pickles.md#rule)\>, `signature`: { `overrideWrapDomain?`: ``0`` \| ``2`` \| ``1`` ; `publicInputSize`: `number` ; `publicOutputSize`: `number` }) => { `getVerificationKey`: () => [\_: 0, data: string, hash: FieldConst] ; `provers`: `MlArray`<[`Prover`](modules/Pickles.md#prover)\> ; `tag`: `unknown` ; `verify`: (`statement`: [`Statement`](modules/Pickles.md#statement)<[`FieldConst`](modules.md#fieldconst-1)\>, `proof`: `unknown`) => `Promise`<`boolean`\> } | +| `compile` | (`rules`: `MlArray`<[`Rule`](modules/Pickles.md#rule)\>, `config`: { `overrideWrapDomain?`: ``0`` \| ``2`` \| ``1`` ; `publicInputSize`: `number` ; `publicOutputSize`: `number` ; `storable?`: [`Cache`](modules/Pickles.md#cache) }) => { `getVerificationKey`: () => [\_: 0, data: string, hash: FieldConst] ; `provers`: `MlArray`<[`Prover`](modules/Pickles.md#prover)\> ; `tag`: `unknown` ; `verify`: (`statement`: [`Statement`](modules/Pickles.md#statement)<[`FieldConst`](modules.md#fieldconst-1)\>, `proof`: `unknown`) => `Promise`<`boolean`\> } | +| `decodeVerificationKey` | (`vk`: `string`) => `MlWrapVerificationKey` | | `dummyProof` | (`maxProofsVerified`: `N`, `domainLog2`: `number`) => [`N`, `unknown`] | | `dummyVerificationKey` | () => [\_: 0, data: string, hash: FieldConst] | +| `encodeVerificationKey` | (`vk`: `MlWrapVerificationKey`) => `string` | | `proofOfBase64` | (`base64`: `string`, `maxProofsVerified`: `N`) => [`N`, `unknown`] | | `proofToBase64` | (`proof`: [``0`` \| ``2`` \| ``1``, `unknown`]) => `string` | | `proofToBase64Transaction` | (`proof`: `unknown`) => `string` | +| `util` | { `fromMlString`: (`s`: `MlBytes`) => `string` ; `toMlString`: (`s`: `string`) => `MlBytes` } | +| `util.fromMlString` | [object Object] | +| `util.toMlString` | [object Object] | +| `loadSrsFp` | () => `WasmFpSrs` | +| `loadSrsFq` | () => `WasmFqSrs` | | `verify` | (`statement`: [`Statement`](modules/Pickles.md#statement)<[`FieldConst`](modules.md#fieldconst-1)\>, `proof`: `unknown`, `verificationKey`: `string`) => `Promise`<`boolean`\> | #### Defined in -[snarky.d.ts:601](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L601) +[snarky.d.ts:741](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L741) -[snarky.d.ts:634](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L634) +[snarky.d.ts:788](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L788) ___ @@ -760,7 +841,7 @@ ___ #### Defined in -[lib/hash.ts:42](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/hash.ts#L42) +[lib/hash.ts:42](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/hash.ts#L42) ___ @@ -788,9 +869,9 @@ ___ #### Defined in -[lib/provable.ts:45](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/provable.ts#L45) +[lib/provable.ts:45](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/provable.ts#L45) -[lib/provable.ts:47](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/provable.ts#L47) +[lib/provable.ts:47](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/provable.ts#L47) ___ @@ -819,7 +900,7 @@ Note for devs: This module is intended to closely mirror snarky-ml's core, low-l | `circuit.compile` | [object Object] | Generates a proving key and a verification key for the provable function `main` | | `circuit.prove` | [object Object] | Proves a statement using the private input, public input and the keypair of the circuit. | | `circuit.verify` | [object Object] | Verifies a proof using the public input, the proof and the verification key of the circuit. | -| `field` | { `add`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `assertBoolean`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `assertEqual`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `assertMul`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1), `z`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `assertSquare`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `compare`: (`bitLength`: `number`, `x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => [\_: 0, less: FieldVar, lessOrEqual: FieldVar] ; `fromBits`: (`bits`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => [`FieldVar`](modules.md#fieldvar-1) ; `mul`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `readVar`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldConst`](modules.md#fieldconst-1) ; `scale`: (`c`: [`FieldConst`](modules.md#fieldconst-1), `x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `seal`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `toBits`: (`length`: `number`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\> ; `toConstantAndTerms`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => [\_: 0, constant: MlOption, terms: MlList\>] ; `truncateToBits16`: (`lengthDiv16`: `number`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) } | APIs to add constraints on field variables | +| `field` | { `add`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `assertBoolean`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `assertEqual`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `assertMul`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1), `z`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `assertSquare`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `compare`: (`bitLength`: `number`, `x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => [\_: 0, less: FieldVar, lessOrEqual: FieldVar] ; `fromBits`: (`bits`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => [`FieldVar`](modules.md#fieldvar-1) ; `mul`: (`x`: [`FieldVar`](modules.md#fieldvar-1), `y`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `readVar`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldConst`](modules.md#fieldconst-1) ; `scale`: (`c`: [`FieldConst`](modules.md#fieldconst-1), `x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `seal`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) ; `toBits`: (`length`: `number`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\> ; `toConstantAndTerms`: (`x`: [`FieldVar`](modules.md#fieldvar-1)) => [\_: 0, constant: MlOption, terms: MlList\>] ; `truncateToBits16`: (`lengthDiv16`: `number`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => [`FieldVar`](modules.md#fieldvar-1) } | APIs to add constraints on field variables | | `field.add` | [object Object] | add x, y to get a new AST node Add(x, y); handles if x, y are constants | | `field.assertBoolean` | [object Object] | x*x === x without handling of constants | | `field.assertEqual` | [object Object] | x === y without handling of constants | @@ -834,15 +915,27 @@ Note for devs: This module is intended to closely mirror snarky-ml's core, low-l | `field.toBits` | [object Object] | | | `field.toConstantAndTerms` | [object Object] | Unfolds AST to get `x = c + c0*Var(i0) + ... + cn*Var(in)`, returns `(c, [(c0, i0), ..., (cn, in)])`; c is optional | | `field.truncateToBits16` | [object Object] | returns x truncated to the lowest `16 * lengthDiv16` bits => can be used to assert that x fits in `16 * lengthDiv16` bits. more efficient than `toBits()` because it uses the EC_endoscalar gate; does 16 bits per row (vs 1 bits per row that you can do with generic gates). | -| `gates` | { `rangeCheck0`: (`v0`: [`FieldVar`](modules.md#fieldvar-1), `v0p`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `v0c`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `compact`: [`FieldConst`](modules.md#fieldconst-1)) => `void` ; `rotate`: (`field`: [`FieldVar`](modules.md#fieldvar-1), `rotated`: [`FieldVar`](modules.md#fieldvar-1), `excess`: [`FieldVar`](modules.md#fieldvar-1), `limbs`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `crumbs`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `two_to_rot`: [`FieldConst`](modules.md#fieldconst-1)) => `void` ; `xor`: (`in1`: [`FieldVar`](modules.md#fieldvar-1), `in2`: [`FieldVar`](modules.md#fieldvar-1), `out`: [`FieldVar`](modules.md#fieldvar-1), `in1_0`: [`FieldVar`](modules.md#fieldvar-1), `in1_1`: [`FieldVar`](modules.md#fieldvar-1), `in1_2`: [`FieldVar`](modules.md#fieldvar-1), `in1_3`: [`FieldVar`](modules.md#fieldvar-1), `in2_0`: [`FieldVar`](modules.md#fieldvar-1), `in2_1`: [`FieldVar`](modules.md#fieldvar-1), `in2_2`: [`FieldVar`](modules.md#fieldvar-1), `in2_3`: [`FieldVar`](modules.md#fieldvar-1), `out_0`: [`FieldVar`](modules.md#fieldvar-1), `out_1`: [`FieldVar`](modules.md#fieldvar-1), `out_2`: [`FieldVar`](modules.md#fieldvar-1), `out_3`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `zero`: (`in1`: [`FieldVar`](modules.md#fieldvar-1), `in2`: [`FieldVar`](modules.md#fieldvar-1), `out`: [`FieldVar`](modules.md#fieldvar-1)) => `void` } | - | +| `gates` | { `addFixedLookupTable`: (`id`: `number`, `data`: `MlArray`<`MlArray`<[`FieldConst`](modules.md#fieldconst-1)\>\>) => `void` ; `addRuntimeTableConfig`: (`id`: `number`, `firstColumn`: `MlArray`<[`FieldConst`](modules.md#fieldconst-1)\>) => `void` ; `ecAdd`: (`p1`: `MlGroup`, `p2`: `MlGroup`, `p3`: `MlGroup`, `inf`: [`FieldVar`](modules.md#fieldvar-1), `same_x`: [`FieldVar`](modules.md#fieldvar-1), `slope`: [`FieldVar`](modules.md#fieldvar-1), `inf_z`: [`FieldVar`](modules.md#fieldvar-1), `x21_inv`: [`FieldVar`](modules.md#fieldvar-1)) => `MlGroup` ; `ecEndoscalar`: (`state`: `MlArray`<[\_: 0, n0: FieldVar, n8: FieldVar, a0: FieldVar, b0: FieldVar, a8: FieldVar, b8: FieldVar, x0: FieldVar, x1: FieldVar, x2: FieldVar, x3: FieldVar]\>) => `void` ; `ecEndoscale`: (`state`: `MlArray`<[\_: 0, xt: FieldVar, yt: FieldVar, xp: FieldVar, yp: FieldVar, nAcc: FieldVar, xr: FieldVar, yr: FieldVar, s1: FieldVar, s3: FieldVar, b1: FieldVar]\>, `xs`: [`FieldVar`](modules.md#fieldvar-1), `ys`: [`FieldVar`](modules.md#fieldvar-1), `nAcc`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `ecScale`: (`state`: `MlArray`<[\_: 0, accs: MlArray<[0, FieldVar, FieldVar]\>, bits: MlArray, ss: MlArray, base: MlGroup, nPrev: Field, nNext: Field]\>) => `void` ; `foreignFieldAdd`: (`left`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `right`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `fieldOverflow`: [`FieldVar`](modules.md#fieldvar-1), `carry`: [`FieldVar`](modules.md#fieldvar-1), `foreignFieldModulus`: [``0``, [`FieldConst`](modules.md#fieldconst-1), [`FieldConst`](modules.md#fieldconst-1), [`FieldConst`](modules.md#fieldconst-1)], `sign`: [`FieldConst`](modules.md#fieldconst-1)) => `void` ; `foreignFieldMul`: (`left`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `right`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `remainder`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `quotient`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `quotientHiBound`: [`FieldVar`](modules.md#fieldvar-1), `product1`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `carry0`: [`FieldVar`](modules.md#fieldvar-1), `carry1p`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `carry1c`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `foreignFieldModulus2`: [`FieldConst`](modules.md#fieldconst-1), `negForeignFieldModulus`: [``0``, [`FieldConst`](modules.md#fieldconst-1), [`FieldConst`](modules.md#fieldconst-1), [`FieldConst`](modules.md#fieldconst-1)]) => `void` ; `generic`: (`sl`: [`FieldConst`](modules.md#fieldconst-1), `l`: [`FieldVar`](modules.md#fieldvar-1), `sr`: [`FieldConst`](modules.md#fieldconst-1), `r`: [`FieldVar`](modules.md#fieldvar-1), `so`: [`FieldConst`](modules.md#fieldconst-1), `o`: [`FieldVar`](modules.md#fieldvar-1), `sm`: [`FieldConst`](modules.md#fieldconst-1), `sc`: [`FieldConst`](modules.md#fieldconst-1)) => `void` ; `lookup`: (`input`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)]) => `void` ; `poseidon`: (`state`: `MlArray`<[``0``, [`Field`](classes/Field.md), [`Field`](classes/Field.md), [`Field`](classes/Field.md)]\>) => `void` ; `rangeCheck0`: (`v0`: [`FieldVar`](modules.md#fieldvar-1), `v0p`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `v0c`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `compact`: [`FieldConst`](modules.md#fieldconst-1)) => `void` ; `rangeCheck1`: (`v2`: [`FieldVar`](modules.md#fieldvar-1), `v12`: [`FieldVar`](modules.md#fieldvar-1), `vCurr`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)], `vNext`: [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)]) => `void` ; `raw`: (`kind`: `KimchiGateType`, `values`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `coefficients`: `MlArray`<[`FieldConst`](modules.md#fieldconst-1)\>) => `void` ; `rotate`: (`field`: [`FieldVar`](modules.md#fieldvar-1), `rotated`: [`FieldVar`](modules.md#fieldvar-1), `excess`: [`FieldVar`](modules.md#fieldvar-1), `limbs`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `crumbs`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `two_to_rot`: [`FieldConst`](modules.md#fieldconst-1)) => `void` ; `xor`: (`in1`: [`FieldVar`](modules.md#fieldvar-1), `in2`: [`FieldVar`](modules.md#fieldvar-1), `out`: [`FieldVar`](modules.md#fieldvar-1), `in1_0`: [`FieldVar`](modules.md#fieldvar-1), `in1_1`: [`FieldVar`](modules.md#fieldvar-1), `in1_2`: [`FieldVar`](modules.md#fieldvar-1), `in1_3`: [`FieldVar`](modules.md#fieldvar-1), `in2_0`: [`FieldVar`](modules.md#fieldvar-1), `in2_1`: [`FieldVar`](modules.md#fieldvar-1), `in2_2`: [`FieldVar`](modules.md#fieldvar-1), `in2_3`: [`FieldVar`](modules.md#fieldvar-1), `out_0`: [`FieldVar`](modules.md#fieldvar-1), `out_1`: [`FieldVar`](modules.md#fieldvar-1), `out_2`: [`FieldVar`](modules.md#fieldvar-1), `out_3`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `zero`: (`in1`: [`FieldVar`](modules.md#fieldvar-1), `in2`: [`FieldVar`](modules.md#fieldvar-1), `out`: [`FieldVar`](modules.md#fieldvar-1)) => `void` } | - | +| `gates.addFixedLookupTable` | [object Object] | - | +| `gates.addRuntimeTableConfig` | [object Object] | - | +| `gates.ecAdd` | [object Object] | Low-level Elliptic Curve Addition gate. | +| `gates.ecEndoscalar` | [object Object] | - | +| `gates.ecEndoscale` | [object Object] | - | +| `gates.ecScale` | [object Object] | - | +| `gates.foreignFieldAdd` | [object Object] | - | +| `gates.foreignFieldMul` | [object Object] | - | +| `gates.generic` | [object Object] | - | +| `gates.lookup` | [object Object] | - | +| `gates.poseidon` | [object Object] | - | | `gates.rangeCheck0` | [object Object] | Range check gate | +| `gates.rangeCheck1` | [object Object] | - | +| `gates.raw` | [object Object] | - | | `gates.rotate` | [object Object] | - | | `gates.xor` | [object Object] | - | | `gates.zero` | [object Object] | - | -| `group` | { `ecadd`: (`p1`: `MlGroup`, `p2`: `MlGroup`, `p3`: `MlGroup`, `inf`: [`FieldVar`](modules.md#fieldvar-1), `same_x`: [`FieldVar`](modules.md#fieldvar-1), `slope`: [`FieldVar`](modules.md#fieldvar-1), `inf_z`: [`FieldVar`](modules.md#fieldvar-1), `x21_inv`: [`FieldVar`](modules.md#fieldvar-1)) => `MlGroup` ; `scale`: (`p`: `MlGroup`, `s`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => `MlGroup` } | - | -| `group.ecadd` | [object Object] | Low-level Elliptic Curve Addition gate. | +| `group` | { `scale`: (`p`: `MlGroup`, `s`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => `MlGroup` } | - | | `group.scale` | [object Object] | - | -| `poseidon` | { `sponge`: { `absorb`: (`sponge`: `unknown`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `create`: (`isChecked`: `boolean`) => `unknown` ; `squeeze`: (`sponge`: `unknown`) => [`FieldVar`](modules.md#fieldvar-1) } ; `hashToGroup`: (`input`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => `MlTuple`<[`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)\> ; `update`: (`state`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `input`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)] } | - | +| `poseidon` | { `sponge`: { `absorb`: (`sponge`: `unknown`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `create`: (`isChecked`: `boolean`) => `unknown` ; `squeeze`: (`sponge`: `unknown`) => [`FieldVar`](modules.md#fieldvar-1) } ; `hashToGroup`: (`input`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => `MlPair`<[`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)\> ; `update`: (`state`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>, `input`: `MlArray`<[`FieldVar`](modules.md#fieldvar-1)\>) => [``0``, [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1), [`FieldVar`](modules.md#fieldvar-1)] } | - | | `poseidon.sponge` | { `absorb`: (`sponge`: `unknown`, `x`: [`FieldVar`](modules.md#fieldvar-1)) => `void` ; `create`: (`isChecked`: `boolean`) => `unknown` ; `squeeze`: (`sponge`: `unknown`) => [`FieldVar`](modules.md#fieldvar-1) } | - | | `poseidon.sponge.absorb` | [object Object] | - | | `poseidon.sponge.create` | [object Object] | - | @@ -860,9 +953,9 @@ Note for devs: This module is intended to closely mirror snarky-ml's core, low-l #### Defined in -[snarky.d.ts:147](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L147) +[snarky.d.ts:161](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L161) -[snarky.d.ts:159](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L159) +[snarky.d.ts:173](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L173) ___ @@ -899,7 +992,7 @@ ___ | `hashInputFromJson.permissions` | [object Object] | | `hashInputFromJson.timing` | [object Object] | | `hashInputFromJson.update` | [object Object] | -| `poseidon` | { `hashToGroup`: (`input`: `MlArray`<[`FieldConst`](modules.md#fieldconst-1)\>) => `MlTuple`<[`FieldConst`](modules.md#fieldconst-1), [`FieldConst`](modules.md#fieldconst-1)\> } | +| `poseidon` | { `hashToGroup`: (`input`: `MlArray`<[`FieldConst`](modules.md#fieldconst-1)\>) => `MlPair`<[`FieldConst`](modules.md#fieldconst-1), [`FieldConst`](modules.md#fieldconst-1)\> } | | `poseidon.hashToGroup` | [object Object] | | `signature` | { `dummySignature`: () => `string` ; `signFieldElement`: (`messageHash`: [`FieldConst`](modules.md#fieldconst-1), `privateKey`: `ScalarConst`, `isMainnet`: `boolean`) => `string` } | | `signature.dummySignature` | [object Object] | @@ -917,7 +1010,7 @@ ___ #### Defined in -[snarky.d.ts:495](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L495) +[snarky.d.ts:635](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L635) ___ @@ -945,7 +1038,7 @@ ___ #### Defined in -[lib/account_update.ts:607](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L607) +[lib/account_update.ts:607](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L607) ___ @@ -955,9 +1048,9 @@ ___ #### Defined in -[lib/proof_system.ts:65](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L65) +[lib/proof_system.ts:72](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L72) -[lib/proof_system.ts:66](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L66) +[lib/proof_system.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L73) ___ @@ -967,9 +1060,9 @@ ___ #### Defined in -[lib/proof_system.ts:70](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L70) +[lib/proof_system.ts:77](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L77) -[lib/proof_system.ts:71](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L71) +[lib/proof_system.ts:78](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L78) ___ @@ -979,9 +1072,9 @@ ___ #### Defined in -[lib/account_update.ts:1961](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1961) +[lib/account_update.ts:1961](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1961) -[lib/account_update.ts:1965](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1965) +[lib/account_update.ts:1965](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1965) ___ @@ -995,7 +1088,7 @@ ___ #### Defined in -[index.ts:119](https://github.com/o1-labs/o1js/blob/42a18c8d/src/index.ts#L119) +[index.ts:120](https://github.com/o1-labs/o1js/blob/56975fc/src/index.ts#L120) ## Functions @@ -1016,7 +1109,7 @@ ___ #### Defined in -[lib/zkapp.ts:1514](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1514) +[lib/zkapp.ts:1516](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1516) ___ @@ -1062,7 +1155,7 @@ const b: Bool = Field(5).equals(6); #### Defined in -[lib/core.ts:81](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L81) +[lib/core.ts:81](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L81) ___ @@ -1117,7 +1210,7 @@ A [Field](modules.md#field-1) with the value converted from the argument #### Defined in -[lib/core.ts:81](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L81) +[lib/core.ts:81](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L81) ___ @@ -1139,7 +1232,7 @@ An element of a Group. #### Defined in -[lib/core.ts:81](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/core.ts#L81) +[lib/core.ts:81](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/core.ts#L81) ___ @@ -1163,7 +1256,7 @@ A circuit-compatible Merkle Witness. #### Defined in -[lib/merkle_tree.ts:238](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/merkle_tree.ts#L238) +[lib/merkle_tree.ts:238](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/merkle_tree.ts#L238) ___ @@ -1191,7 +1284,7 @@ ___ #### Defined in -[lib/zkapp.ts:1554](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1554) +[lib/zkapp.ts:1556](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1556) ___ @@ -1211,7 +1304,7 @@ ___ #### Defined in -[lib/state.ts:73](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/state.ts#L73) +[lib/state.ts:73](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/state.ts#L73) ___ @@ -1307,7 +1400,7 @@ Class which you can extend #### Defined in -[lib/circuit_value.ts:359](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L359) +[lib/circuit_value.ts:359](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L359) ___ @@ -1334,7 +1427,7 @@ ___ #### Defined in -[lib/proof_system.ts:233](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L233) +[lib/proof_system.ts:240](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L240) ___ @@ -1357,7 +1450,7 @@ Adds an account to the local cache, indexed by a GraphQL endpoint. #### Defined in -[lib/fetch.ts:369](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L369) +[lib/fetch.ts:369](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L369) ___ @@ -1397,7 +1490,7 @@ ___ #### Defined in -[lib/circuit_value.ts:264](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L264) +[lib/circuit_value.ts:264](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L264) ___ @@ -1417,7 +1510,7 @@ ___ #### Defined in -[lib/fetch.ts:516](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L516) +[lib/fetch.ts:516](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L516) ___ @@ -1439,7 +1532,7 @@ ___ #### Defined in -[lib/circuit.ts:232](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L232) +[lib/circuit.ts:232](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L232) ___ @@ -1481,7 +1574,7 @@ Note that a method of the same name must still be defined on the class, just wit #### Defined in -[lib/zkapp.ts:1540](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L1540) +[lib/zkapp.ts:1542](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L1542) ___ @@ -1541,7 +1634,7 @@ declareState(MyContract, { x: Field }); #### Defined in -[lib/state.ts:163](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/state.ts#L163) +[lib/state.ts:163](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/state.ts#L163) ___ @@ -1575,7 +1668,7 @@ zkapp information on the specified account or an error is thrown #### Defined in -[lib/fetch.ts:149](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L149) +[lib/fetch.ts:149](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L149) ___ @@ -1617,7 +1710,7 @@ A promise that resolves to an array of objects containing event data, block info #### Defined in -[lib/fetch.ts:838](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L838) +[lib/fetch.ts:838](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L838) ___ @@ -1639,7 +1732,7 @@ Fetches the last block on the Mina network. #### Defined in -[lib/fetch.ts:412](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L412) +[lib/fetch.ts:412](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L412) ___ @@ -1662,7 +1755,21 @@ Fetches the status of a transaction. #### Defined in -[lib/fetch.ts:643](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L643) +[lib/fetch.ts:643](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L643) + +___ + +### getWasm + +▸ **getWasm**(): `WasmModule` + +#### Returns + +`WasmModule` + +#### Defined in + +bindings/js/wrapper.d.ts:7 ___ @@ -1682,7 +1789,7 @@ ___ #### Defined in -[lib/bool.ts:371](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/bool.ts#L371) +[lib/bool.ts:371](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/bool.ts#L371) ___ @@ -1702,7 +1809,7 @@ x is Field #### Defined in -[lib/field.ts:1282](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1282) +[lib/field.ts:1282](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1282) ___ @@ -1743,7 +1850,7 @@ ___ #### Defined in -[lib/circuit_value.ts:273](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L273) +[lib/circuit_value.ts:273](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L273) ___ @@ -1780,7 +1887,7 @@ You can use inside your zkApp class as: #### Defined in -[lib/zkapp.ts:84](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/zkapp.ts#L84) +[lib/zkapp.ts:85](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/zkapp.ts#L85) ___ @@ -1802,7 +1909,7 @@ ___ #### Defined in -[lib/circuit_value.ts:249](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit_value.ts#L249) +[lib/circuit_value.ts:249](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit_value.ts#L249) ___ @@ -1878,7 +1985,7 @@ ___ #### Defined in -[lib/circuit.ts:196](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/circuit.ts#L196) +[lib/circuit.ts:196](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/circuit.ts#L196) ___ @@ -1900,7 +2007,7 @@ ___ #### Defined in -[lib/field.ts:1335](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1335) +[lib/field.ts:1335](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1335) ___ @@ -1921,7 +2028,7 @@ ___ #### Defined in -[lib/signature.ts:301](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/signature.ts#L301) +[lib/signature.ts:301](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/signature.ts#L301) ___ @@ -1946,7 +2053,7 @@ Sends a zkApp command (transaction) to the specified GraphQL endpoint. #### Defined in -[lib/fetch.ts:673](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L673) +[lib/fetch.ts:673](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L673) ___ @@ -1968,7 +2075,7 @@ Sets up a GraphQL endpoint to be used for fetching information from an Archive N #### Defined in -[lib/fetch.ts:104](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L104) +[lib/fetch.ts:104](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L104) ___ @@ -1988,7 +2095,7 @@ ___ #### Defined in -[lib/fetch.ts:82](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L82) +[lib/fetch.ts:82](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L82) ___ @@ -2008,7 +2115,7 @@ ___ #### Defined in -[lib/fetch.ts:75](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L75) +[lib/fetch.ts:75](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L75) ___ @@ -2026,7 +2133,7 @@ ___ #### Defined in -[index.ts:124](https://github.com/o1-labs/o1js/blob/42a18c8d/src/index.ts#L124) +[index.ts:125](https://github.com/o1-labs/o1js/blob/56975fc/src/index.ts#L125) ___ @@ -2074,7 +2181,7 @@ you can use the following in the declaration of your zkapp: #### Defined in -[lib/state.ts:87](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/state.ts#L87) +[lib/state.ts:87](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/state.ts#L87) ___ @@ -2097,7 +2204,7 @@ ___ #### Defined in -[lib/field.ts:1310](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1310) +[lib/field.ts:1310](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1310) ___ @@ -2117,7 +2224,7 @@ ___ #### Defined in -[lib/field.ts:1296](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1296) +[lib/field.ts:1296](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1296) ___ @@ -2138,7 +2245,7 @@ ___ #### Defined in -[lib/proof_system.ts:181](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L181) +[lib/proof_system.ts:188](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L188) ___ @@ -2159,4 +2266,4 @@ ___ #### Defined in -[lib/field.ts:1304](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/field.ts#L1304) +[lib/field.ts:1304](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/field.ts#L1304) diff --git a/docs/zkapps/o1js-reference/modules/Encryption.md b/docs/zkapps/o1js-reference/modules/Encryption.md index 5bd8f2165..8f70a0c9e 100644 --- a/docs/zkapps/o1js-reference/modules/Encryption.md +++ b/docs/zkapps/o1js-reference/modules/Encryption.md @@ -30,7 +30,7 @@ Decrypts a CipherText using a [PrivateKey](../classes/PrivateKey.md).^ #### Defined in -[lib/encryption.ts:45](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/encryption.ts#L45) +[lib/encryption.ts:45](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/encryption.ts#L45) ___ @@ -58,4 +58,4 @@ Public Key Encryption, using a given array of [Field](../modules.md#field-1) ele #### Defined in -[lib/encryption.ts:16](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/encryption.ts#L16) +[lib/encryption.ts:16](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/encryption.ts#L16) diff --git a/docs/zkapps/o1js-reference/modules/Experimental.md b/docs/zkapps/o1js-reference/modules/Experimental.md index 73412c43d..3ac8caf73 100644 --- a/docs/zkapps/o1js-reference/modules/Experimental.md +++ b/docs/zkapps/o1js-reference/modules/Experimental.md @@ -17,7 +17,6 @@ This module exposes APIs that are unstable, in the sense that the API surface is ### Functions -- [ZkProgram](Experimental.md#zkprogram) - [createChildAccountUpdate](Experimental.md#createchildaccountupdate) - [memoizeWitness](Experimental.md#memoizewitness) @@ -35,9 +34,9 @@ This module exposes APIs that are unstable, in the sense that the API surface is #### Defined in -[index.ts:107](https://github.com/o1-labs/o1js/blob/42a18c8d/src/index.ts#L107) +[index.ts:108](https://github.com/o1-labs/o1js/blob/56975fc/src/index.ts#L108) -[index.ts:108](https://github.com/o1-labs/o1js/blob/42a18c8d/src/index.ts#L108) +[index.ts:109](https://github.com/o1-labs/o1js/blob/56975fc/src/index.ts#L109) ## Variables @@ -47,9 +46,9 @@ This module exposes APIs that are unstable, in the sense that the API surface is #### Defined in -[index.ts:107](https://github.com/o1-labs/o1js/blob/42a18c8d/src/index.ts#L107) +[index.ts:108](https://github.com/o1-labs/o1js/blob/56975fc/src/index.ts#L108) -[index.ts:108](https://github.com/o1-labs/o1js/blob/42a18c8d/src/index.ts#L108) +[index.ts:109](https://github.com/o1-labs/o1js/blob/56975fc/src/index.ts#L109) ## Functions @@ -81,7 +80,7 @@ The old `Experimental.ZkProgram` API has been deprecated in favor of the new `Zk #### Defined in -[lib/proof_system.ts:1029](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L1029) +[lib/proof_system.ts:1064](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L1064) ___ @@ -103,7 +102,7 @@ ___ #### Defined in -[lib/account_update.ts:1703](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/account_update.ts#L1703) +[lib/account_update.ts:1703](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/account_update.ts#L1703) ___ @@ -133,4 +132,4 @@ for reuse by the prover. This is needed to witness non-deterministic values. #### Defined in -[lib/provable.ts:456](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/provable.ts#L456) +[lib/provable.ts:456](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/provable.ts#L456) diff --git a/docs/zkapps/o1js-reference/modules/Lightnet.md b/docs/zkapps/o1js-reference/modules/Lightnet.md index 8b3fced51..a2fc1acbb 100644 --- a/docs/zkapps/o1js-reference/modules/Lightnet.md +++ b/docs/zkapps/o1js-reference/modules/Lightnet.md @@ -37,7 +37,7 @@ Key pair #### Defined in -[lib/fetch.ts:1026](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L1026) +[lib/fetch.ts:1026](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L1026) ___ @@ -63,4 +63,4 @@ Response message from the account manager as string or null if the request faile #### Defined in -[lib/fetch.ts:1069](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/fetch.ts#L1069) +[lib/fetch.ts:1069](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/fetch.ts#L1069) diff --git a/docs/zkapps/o1js-reference/modules/Mina.md b/docs/zkapps/o1js-reference/modules/Mina.md index c517331d1..e72e634ef 100644 --- a/docs/zkapps/o1js-reference/modules/Mina.md +++ b/docs/zkapps/o1js-reference/modules/Mina.md @@ -60,7 +60,7 @@ #### Defined in -[lib/mina.ts:161](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L161) +[lib/mina.ts:161](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L161) ___ @@ -80,7 +80,7 @@ ___ #### Defined in -[lib/mina.ts:119](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L119) +[lib/mina.ts:119](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L119) ___ @@ -92,7 +92,7 @@ Allows you to specify information about the fee payer account and the transactio #### Defined in -[lib/mina.ts:132](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L132) +[lib/mina.ts:132](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L132) ___ @@ -114,9 +114,9 @@ ___ #### Defined in -[lib/mina.ts:74](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L74) +[lib/mina.ts:74](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L74) -[lib/mina.ts:111](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L111) +[lib/mina.ts:111](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L111) ## Variables @@ -132,9 +132,9 @@ ___ #### Defined in -[lib/mina.ts:74](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L74) +[lib/mina.ts:74](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L74) -[lib/mina.ts:111](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L111) +[lib/mina.ts:111](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L111) ___ @@ -144,7 +144,7 @@ ___ #### Defined in -[lib/mina.ts:996](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L996) +[lib/mina.ts:996](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L996) ## Functions @@ -169,7 +169,7 @@ The name `BerkeleyQANet` was misleading because it suggested that this is specif #### Defined in -[lib/mina.ts:992](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L992) +[lib/mina.ts:992](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L992) ___ @@ -217,7 +217,7 @@ A mock Mina blockchain running locally and useful for testing. #### Defined in -[lib/mina.ts:376](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L376) +[lib/mina.ts:376](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L376) ___ @@ -239,7 +239,7 @@ Represents the Mina blockchain running on a real network #### Defined in -[lib/mina.ts:679](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L679) +[lib/mina.ts:679](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L679) ▸ **Network**(`endpoints`): `Mina` @@ -258,7 +258,7 @@ Represents the Mina blockchain running on a real network #### Defined in -[lib/mina.ts:680](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L680) +[lib/mina.ts:680](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L680) ___ @@ -274,7 +274,7 @@ Returns the default account creation fee. #### Defined in -[lib/mina.ts:1197](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1197) +[lib/mina.ts:1197](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1197) ___ @@ -300,7 +300,7 @@ ___ #### Defined in -[lib/mina.ts:174](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L174) +[lib/mina.ts:174](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L174) ___ @@ -316,7 +316,7 @@ The current slot number, according to the active Mina instance. #### Defined in -[lib/mina.ts:1162](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1162) +[lib/mina.ts:1162](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1162) ___ @@ -330,7 +330,7 @@ ___ #### Defined in -[lib/global-context.ts:6](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/global-context.ts#L6) +[lib/global-context.ts:6](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/global-context.ts#L6) ___ @@ -353,7 +353,7 @@ Requests the [testnet faucet](https://faucet.minaprotocol.com/api/v1/faucet) to #### Defined in -[lib/mina.ts:1577](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1577) +[lib/mina.ts:1577](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1577) ___ @@ -377,7 +377,7 @@ A list of emitted sequencing actions associated to the given public key. #### Defined in -[lib/mina.ts:1219](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1219) +[lib/mina.ts:1219](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1219) ___ @@ -401,7 +401,7 @@ A list of emitted events associated to the given public key. #### Defined in -[lib/mina.ts:1208](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1208) +[lib/mina.ts:1208](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1208) ___ @@ -427,7 +427,7 @@ ___ #### Defined in -[lib/mina.ts:1534](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1534) +[lib/mina.ts:1534](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1534) ___ @@ -450,7 +450,7 @@ The account data associated to the given public key. #### Defined in -[lib/mina.ts:1169](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1169) +[lib/mina.ts:1169](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1169) ___ @@ -474,7 +474,7 @@ A list of emitted sequencing actions associated to the given public key. #### Defined in -[lib/mina.ts:1230](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1230) +[lib/mina.ts:1230](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1230) ___ @@ -497,7 +497,7 @@ The balance associated to the given public key. #### Defined in -[lib/mina.ts:1190](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1190) +[lib/mina.ts:1190](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1190) ___ @@ -513,7 +513,7 @@ Data associated with the current state of the Mina network. #### Defined in -[lib/mina.ts:1183](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1183) +[lib/mina.ts:1183](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1183) ___ @@ -527,7 +527,7 @@ ___ #### Defined in -[lib/mina.ts:1238](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1238) +[lib/mina.ts:1238](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1238) ___ @@ -550,7 +550,7 @@ Checks if an account exists within the ledger. #### Defined in -[lib/mina.ts:1176](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1176) +[lib/mina.ts:1176](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1176) ___ @@ -570,7 +570,7 @@ ___ #### Defined in -[lib/mina.ts:1201](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1201) +[lib/mina.ts:1201](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1201) ___ @@ -588,7 +588,7 @@ Throws an error if not inside a transaction, or the sender wasn't passed in. #### Defined in -[lib/mina.ts:1138](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1138) +[lib/mina.ts:1138](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1138) ___ @@ -610,7 +610,7 @@ Set the currently used Mina instance. #### Defined in -[lib/mina.ts:1078](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1078) +[lib/mina.ts:1078](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1078) ___ @@ -643,7 +643,7 @@ A transaction that can subsequently be submitted to the chain. #### Defined in -[lib/mina.ts:1095](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1095) +[lib/mina.ts:1095](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1095) ▸ **transaction**(`f`): `Promise`<[`Transaction`](Mina.md#transaction-1)\> @@ -659,7 +659,7 @@ A transaction that can subsequently be submitted to the chain. #### Defined in -[lib/mina.ts:1096](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1096) +[lib/mina.ts:1096](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1096) ▸ **transaction**(`sender`, `f`): `Promise`<[`Transaction`](Mina.md#transaction-1)\> @@ -689,7 +689,7 @@ Mina.transaction({ feePayerKey: privateKey }, ...); #### Defined in -[lib/mina.ts:1109](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1109) +[lib/mina.ts:1109](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1109) ___ @@ -709,4 +709,4 @@ ___ #### Defined in -[lib/mina.ts:1553](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/mina.ts#L1553) +[lib/mina.ts:1553](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/mina.ts#L1553) diff --git a/docs/zkapps/o1js-reference/modules/Pickles.md b/docs/zkapps/o1js-reference/modules/Pickles.md index af0bc665e..8a8bb344c 100644 --- a/docs/zkapps/o1js-reference/modules/Pickles.md +++ b/docs/zkapps/o1js-reference/modules/Pickles.md @@ -6,6 +6,7 @@ ### Type Aliases +- [Cache](Pickles.md#cache) - [Proof](Pickles.md#proof) - [Prover](Pickles.md#prover) - [Rule](Pickles.md#rule) @@ -13,13 +14,25 @@ ## Type Aliases +### Cache + +Ƭ **Cache**: [\_: 0, read: Function, write: Function, canWrite: MlBool] + +Type to configure how Pickles should cache prover keys + +#### Defined in + +[snarky.d.ts:771](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L771) + +___ + ### Proof Ƭ **Proof**: `unknown` #### Defined in -[snarky.d.ts:602](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L602) +[snarky.d.ts:742](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L742) ___ @@ -44,7 +57,7 @@ ___ #### Defined in -[snarky.d.ts:628](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L628) +[snarky.d.ts:782](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L782) ___ @@ -65,7 +78,7 @@ A "rule" is a circuit plus some metadata for `Pickles.compile` #### Defined in -[snarky.d.ts:608](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L608) +[snarky.d.ts:748](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L748) ___ @@ -81,4 +94,4 @@ ___ #### Defined in -[snarky.d.ts:603](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L603) +[snarky.d.ts:743](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L743) diff --git a/docs/zkapps/o1js-reference/modules/Snarky.md b/docs/zkapps/o1js-reference/modules/Snarky.md index fcf6ffd0f..d07523fc0 100644 --- a/docs/zkapps/o1js-reference/modules/Snarky.md +++ b/docs/zkapps/o1js-reference/modules/Snarky.md @@ -23,7 +23,7 @@ Note for devs: This module is intended to closely mirror snarky-ml's core, low-l #### Defined in -[snarky.d.ts:149](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L149) +[snarky.d.ts:163](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L163) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[snarky.d.ts:148](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L148) +[snarky.d.ts:162](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L162) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -[snarky.d.ts:151](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L151) +[snarky.d.ts:165](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L165) ___ @@ -67,4 +67,4 @@ ___ #### Defined in -[snarky.d.ts:150](https://github.com/o1-labs/o1js/blob/42a18c8d/src/snarky.d.ts#L150) +[snarky.d.ts:164](https://github.com/o1-labs/o1js/blob/56975fc/src/snarky.d.ts#L164) diff --git a/docs/zkapps/o1js-reference/modules/ZkProgram.md b/docs/zkapps/o1js-reference/modules/ZkProgram.md index 65cba635f..5e51257f9 100644 --- a/docs/zkapps/o1js-reference/modules/ZkProgram.md +++ b/docs/zkapps/o1js-reference/modules/ZkProgram.md @@ -36,4 +36,4 @@ typeof `ZkProgramProof` #### Defined in -[lib/proof_system.ts:867](https://github.com/o1-labs/o1js/blob/42a18c8d/src/lib/proof_system.ts#L867) +[lib/proof_system.ts:902](https://github.com/o1-labs/o1js/blob/56975fc/src/lib/proof_system.ts#L902) diff --git a/docs/zkapps/o1js/recursion.mdx b/docs/zkapps/o1js/recursion.mdx index 12e0389df..8cebb74b5 100644 --- a/docs/zkapps/o1js/recursion.mdx +++ b/docs/zkapps/o1js/recursion.mdx @@ -32,17 +32,15 @@ Kimchi, the proof system that backs o1js, supports arbitrary infinite recursive More generally, you can use recursion to verify any zero-knowledge program as part of your zkApp. -:::experimental +## ZkProgram Overview -The use of the ZkProgram API with recursion is experimental. This API may change. To learn more, see [Experimental Features](/zkapps/experimental). - -Specifically, ZkProgram methods could be refactored to explicitly return values rather than requiring them to be passed as further inputs. +:::note +zkProgram has been moved out of the Experimental namespace and is available as a top-level import directly. `Experimental.ZkProgram` is deprecated. +If you are experiencing issues with zkProgram, be sure to update o1js to the latest version. ::: -## Overview - -In o1js, you can use `ZkProgram()` to define the steps of our recursive program. Just like `SmartContract()` methods, `ZkProgram()` methods have any number of methods and execute off-chain. +In o1js, you can use `ZkProgram()` to define the steps of a recursive program. Just like `SmartContract()` methods, `ZkProgram()` methods have any number of methods and execute off-chain. After performing your desired recursive steps, you can settle the interaction on Mina's blockchain and by embedding the `ZkProgram` within a `SmartContract` method that verifies the underlying proof of execution and extracts the output that can be used elsewhere in the method (like storing the output in app-state, for example). @@ -53,10 +51,11 @@ Similar to methods within the `SmartContract` class, inputs to `ZkProgram` are _ This simple example has only one method that proves the public input it received is zero. ```typescript -import { Field, Experimental } from 'o1js'; +import { Field, ZkProgram } from 'o1js'; -const SimpleProgram = Experimental.ZkProgram({ - publicInput: Field, +const SimpleProgram = ZkProgram({ + name: "simple-program-example", + publicInputType: Field, methods: { run: { @@ -103,10 +102,11 @@ This example shows a recursive `ZkProgram` that you can use to create recursive This program describes a recursive operation of adding one repeatedly to a number. Note that you recursively depend on the older proof as a private argument to your method. ```typescript -import { SelfProof, Field, Experimental, verify } from 'o1js'; +import { SelfProof, Field, ZkProgram, verify } from 'o1js'; -const AddOne = Experimental.ZkProgram({ - publicInput: Field, +const AddOne = ZkProgram({ + name: "add-one-example", + publicInputType: Field, methods: { baseCase: { @@ -166,10 +166,11 @@ Tree recursion is even more rarely seen in other proof systems and zk toolkits. This example program describes a very simple rollup for adding numbers: ```typescript -import { SelfProof, Field, Experimental, verify } from 'o1js'; +import { SelfProof, Field, ZkProgram, verify } from 'o1js'; -let RollupAdd = Experimental.ZkProgram({ - publicInput: Field, +let RollupAdd = ZkProgram({ + name: "rollup-add-example", + publicInputType: Field, methods: { baseCase: { diff --git a/docs/zkapps/roadmap.mdx b/docs/zkapps/roadmap.mdx index 7008610e8..4eeffb262 100644 --- a/docs/zkapps/roadmap.mdx +++ b/docs/zkapps/roadmap.mdx @@ -1,17 +1,17 @@ --- -title: zkApps Roadmap +title: zkApps and o1js Roadmap hide_title: true sidebar_label: Roadmap -description: zkApps roadmap, zkApp features, enhancements, and future development plans. Insights on Mina zkApp CLI, o1js, data availability, and more. +description: zkApps and o1js roadmap, features, enhancements, and future development plans. keywords: - zkapps - - mina protocol - roadmap - o1js - zkapps development - zkapps features - smart contracts - - zero-knowledge proofs + - zero knowledge proofs + - zk --- import Subhead from '@site/src/components/common/Subhead'; @@ -22,85 +22,18 @@ zkApp programmability is not yet available on the Mina Mainnet. You can get star ::: -# zkApps Roadmap +# zkApps and o1js Roadmap High-level overview of features available now, next, and later -## Now +o1js banner -### Mina zkApp CLI +To stay up to date with zkApps and o1js, follow the [What's New in o1js](https://blog.o1labs.org/search?q=o1js) monthly updates. -- [Scaffold projects and files](/zkapps/how-to-write-a-zkapp) -- [Example projects](/zkapps/how-to-write-a-zkapp#option-a-start-with-an-example-recommended) -- [Deployment](/zkapps/how-to-deploy-a-zkapp) -- [Create a project with an accompanying UI](/zkapps/how-to-write-a-zkapp-ui) — SvelteKit, NextJS, or NuxtJS +Check out the [o1js roadmap](https://o1labs.notion.site/o1js-Roadmap-858b056c4efe4e7a8c42371d9e54848b?pvs=4). -To install the Mina zkApp CLI: -```sh -npm install -g zkapp-cli -``` - -To view all of the commands and start building, run `zk --help`. - -### o1js - -- [Built-in data types](/zkapps/how-to-write-a-zkapp#built-in-data-types) — Field, Bool, UInt32, UInt64, PublicKey, PrivateKey, Signature, Group, Scalar, and CircuitString -- [Custom data types](/zkapps/how-to-write-a-zkapp#custom-data-types) — a.k.a. Struct -- [Composability](/zkapps/how-to-write-a-zkapp#composing-zkapps) -- [Recursion](/zkapps/o1js/recursion) — a.k.a. ZkProgram -- [Events](/zkapps/o1js/events) — writing events and [reading them from an archive node](/zkapps/o1js/fetch-events-and-actions) -- [Actions & reducer](/zkapps/o1js/actions-and-reducer) -- [Encryption & decryption](/zkapps/o1js-reference/modules/Encryption) — using Mina’s curves -- [Merkle tree](/zkapps/o1js/merkle-tree) -- [Custom tokens](/zkapps/o1js/custom-tokens) -- [Using on-chain values](/zkapps/o1js/on-chain-values) — a.k.a. protocol & account preconditions -- [Local blockchain](/zkapps/o1js-reference/modules/Mina#localblockchain) -- [And more...](/zkapps/o1js-reference) - -### Mina zkApp CLI - -- [Third-party fee payer accounts for deployment transactions](https://github.com/o1-labs/zkapp-cli/issues/129) can be used across multiple projects - -### Data Availability - -- [On-chain state](/zkapps/how-to-write-a-zkapp#on-chain-state) — 8 x 32 bytes of arbitrary data per zkApp account -- [Off-chain storage](/zkapps/tutorials/offchain-storage) — for Merkle tree data; see Tutorial 6 - -### Other - -- [Oracles](/zkapps/tutorials/oracle) - -## Next - -### o1js - -- Remove need for a dev to use a service worker for their UI — ETA H1 2023 -- [Reduce KB file size, for aspects needed for UIs](https://github.com/o1-labs/o1js/issues/610) — ETA H1 2023 -- Improve error messages — ETA H1 2023 - -### Data Availability - -- Off-chain storage for Merkle tree data with better guarantees — WIP; two teams awarded grants by Mina Foundation - -### Other - -- Archive Node API — Phase I; ETA Q1 2023 - -## Later - -### o1js - -- [Dynamic array access](https://github.com/o1-labs/o1js/issues/90) — awaiting support in proof system for extended lookup tables -- [Dynamic-length strings](https://github.com/o1-labs/o1js/issues/730) — awaiting dynamic array access -- [JSON parsing](https://github.com/o1-labs/o1js/issues/91) — awaiting dynamic-length strings -- [secp256k1](https://github.com/o1-labs/o1js/issues/61) — awaiting support in Kimchi -- [keccak256](https://github.com/o1-labs/o1js/issues/62) — awaiting support in Kimchi -- [ECDSA](https://github.com/o1-labs/o1js/issues/732) — awaiting support in Kimchi -- [sha256](https://github.com/o1-labs/o1js/issues/731) — awaiting support in Kimchi - -### Other - -- Archive Node API — Phase II; for serverless hosts! -- zkOracles — with robust privacy guarantees diff --git a/docs/zkapps/tutorials/01-hello-world.mdx b/docs/zkapps/tutorials/01-hello-world.mdx index e5e6d898d..941d729d5 100644 --- a/docs/zkapps/tutorials/01-hello-world.mdx +++ b/docs/zkapps/tutorials/01-hello-world.mdx @@ -302,19 +302,15 @@ For this tutorial, the `import` statement brings in items from `o1js` that you u ```ts src/main.ts 1 import { Square } from './Square.js'; 2 import { -3 isReady, -4 shutdown, -5 Field, -6 Mina, -7 PrivateKey, -8 AccountUpdate, -9 } from 'o1js'; +3 Field, +4 Mina, +5 PrivateKey, +6 AccountUpdate, +7 } from 'o1js'; ``` These import items are: -- `isReady`: An asynchronous promise that resolves when o1js is loaded and ready. This field is required because o1js contains WebAssembly (Wasm). -- `shutdown`: A function that closes the program. - `Field`: The same o1js unsigned integer type that you learned earlier. - `Mina`: A local Mina blockchain to deploy the smart contract to so you can interact with it as a user would. - `PrivateKey`: A class with functions for manipulating private keys. @@ -327,20 +323,12 @@ Using a local blockchain speeds up development and tests the behavior of your sm To initialize your local blockchain, add the following code from the [main.ts](https://github.com/o1-labs/docs2/blob/main/examples/zkapps/01-hello-world/src/main.ts) example file to `src/main.ts`: ```ts src/main.ts -11 await isReady; -12 -13 console.log('o1js loaded'); -14 -15 const useProof = false; -16 -17 const Local = Mina.LocalBlockchain({ proofsEnabled: useProof }); -18 Mina.setActiveInstance(Local); -19 const { privateKey: deployerKey, publicKey: deployerAccount } = Local.testAccounts[0]; -20 const { privateKey: senderKey, publicKey: senderAccount } = Local.testAccounts[1]; -21 -22 console.log('Shutting down'); -23 -24 await shutdown(); + 9 const useProof = false; +10 +11 const Local = Mina.LocalBlockchain({ proofsEnabled: useProof }); +12 Mina.setActiveInstance(Local); +13 const { privateKey: deployerKey, publicKey: deployerAccount } = Local.testAccounts[0]; +14 const { privateKey: senderKey, publicKey: senderAccount } = Local.testAccounts[1]; ``` This local blockchain also provides pre-funded accounts. These lines create local test accounts with test MINA to use for this tutorial: @@ -411,12 +399,6 @@ Comments break down each stage: 36 // get the initial state of Square after deployment 37 const num0 = zkAppInstance.num.get(); 38 console.log('state after init:', num0.toString()); -39 -40 // ---------------------------------------------------- -41 -42 console.log('Shutting down') -43 -44 await shutdown(); ``` Try running this command again: @@ -453,12 +435,6 @@ To update your local zkApp account with a transaction, add the following code to 47 48 const num1 = zkAppInstance.num.get(); 49 console.log('state after txn1:', num1.toString()); -50 -51 // ---------------------------------------------------- -52 -53 console.log('Shutting down'); -54 -55 await shutdown(); ``` This code creates a new transaction that attempts to update the field to the value `9`. Because of the rules in the `update()` function that is called on the smart contract, this command succeeds when you run it again: @@ -496,12 +472,6 @@ To test a failure, update the state to 75 in `zkAppInstance.update(Field(75))`: 61 } 62 const num2 = zkAppInstance.num.get(); 63 console.log('state after txn2:', num2.toString()); -64 -65 // ---------------------------------------------------- -66 -67 console.log('Shutting down'); -68 -69 await shutdown(); ``` Try running this command again: @@ -538,12 +508,6 @@ And finally, be sure to change your `main.ts` file to include the correct update 72 73 const num3 = zkAppInstance.num.get(); 74 console.log('state after txn3:', num3.toString()); -75 -76 // ---------------------------------------------------- -77 -78 console.log('Shutting down'); -79 -80 await shutdown(); ``` Run this command again: diff --git a/docs/zkapps/tutorials/09-recursion.mdx b/docs/zkapps/tutorials/09-recursion.mdx index 06c848a8b..bb59dedd7 100644 --- a/docs/zkapps/tutorials/09-recursion.mdx +++ b/docs/zkapps/tutorials/09-recursion.mdx @@ -64,8 +64,9 @@ To create a ZkProgram, start with the `init()` method. - The first argument of a ZkProgram method is always the state of the ZkProgram, named `publicInput` since it is public. ```typescript -const Add = Experimental.ZkProgram({ - publicInput: Field, +const Add = ZkProgram({ + name: 'add-example', + publicInputType: Field, methods: { init: { @@ -263,8 +264,9 @@ class RollupState extends Struct({ ... } -const Rollup = Experimental.ZkProgram({ - publicInput: RollupState, +const Rollup = ZkProgram({ + name: "rollup-example", + publicInputType: Field, methods: { oneStep: { diff --git a/docs/zkapps/tutorials/10-account-updates.mdx b/docs/zkapps/tutorials/10-account-updates.mdx index 743534e06..84426541d 100644 --- a/docs/zkapps/tutorials/10-account-updates.mdx +++ b/docs/zkapps/tutorials/10-account-updates.mdx @@ -107,7 +107,7 @@ This zkApp has methods that call other methods to let you explore the impacts to deploy(args: DeployArgs) { super.deploy(args); - this.setPermissions({ + this.account.permissions.set({ ...Permissions.default(), setDelegate: Permissions.proof(), setPermissions: Permissions.proof(), diff --git a/docs/zkapps/tutorials/index.mdx b/docs/zkapps/tutorials/index.mdx index c6e8ddf28..2001df90f 100644 --- a/docs/zkapps/tutorials/index.mdx +++ b/docs/zkapps/tutorials/index.mdx @@ -29,16 +29,16 @@ To meet other developers building zkApps with o1js, participate in the [#zkapps- Each tutorial has been tested with the latest versions: -- [Mina zkApp CLI](https://github.com/o1-labs/zkapp-cli) +- [zkApp CLI](https://github.com/o1-labs/zkapp-cli) - [o1js](https://www.npmjs.com/package/o1js) - o1js is automatically included when you create a project using the Mina zkApp CLI. + o1js is automatically included when you create a project using the zkApp CLI. - Other dependencies as noted. -### Install the Mina zkApp CLI +### Install the zkApp CLI -To install the Mina zkApp CLI: +To install the zkApp CLI: ```sh $ npm install -g zkapp-cli diff --git a/docs/zkapps/tutorials/interacting-with-zkapps-server-side.mdx b/docs/zkapps/tutorials/interacting-with-zkapps-server-side.mdx index 853d700bb..88ad19906 100644 --- a/docs/zkapps/tutorials/interacting-with-zkapps-server-side.mdx +++ b/docs/zkapps/tutorials/interacting-with-zkapps-server-side.mdx @@ -48,20 +48,8 @@ Open up `main.ts` in a text editor. You can find the complete source for this [h To start, let's add the imports and o1js setup: ```ts - 1 import { Square } from './Square.js'; - 2 import { isReady, shutdown, Mina, PrivateKey } from 'o1js'; - 3 - 4 await isReady; - 5 - 6 console.log('o1js loaded'); - 7 - 8 // ---------------------------------------------------- - 9 - 10 // ---------------------------------------------------- - 11 - 12 console.log('Shutting down'); - 13 - 14 await shutdown(); + 1 import { Square } from './Square.js'; + 2 import { Mina, PrivateKey } from 'o1js'; ``` So far nothing new - but now, let's add connecting to Berkeley: @@ -100,7 +88,7 @@ Now, to finish setting up our code, let's add to our `main.ts`: ```ts ... - 2 import { isReady, shutdown, Mina, PrivateKey } from 'o1js'; + 2 import { Mina, PrivateKey } from 'o1js'; 3 4 import fs from 'fs'; 5 @@ -147,7 +135,6 @@ In main, we will import and use the `loopUntilAccountExists()` function from `ut 4 import fs from 'fs'; 5 import { loopUntilAccountExists } from './utils.js'; 6 - 7 await isReady; ... 33 // ---------------------------------------------------- 34 diff --git a/examples/zkapps/01-hello-world/.gitignore b/examples/zkapps/01-hello-world/.gitignore index dd87e2d73..b7dab5e9c 100644 --- a/examples/zkapps/01-hello-world/.gitignore +++ b/examples/zkapps/01-hello-world/.gitignore @@ -1,2 +1,2 @@ node_modules -build +build \ No newline at end of file diff --git a/examples/zkapps/01-hello-world/src/main.ts b/examples/zkapps/01-hello-world/src/main.ts index 7c2d00094..e7e49b7e6 100644 --- a/examples/zkapps/01-hello-world/src/main.ts +++ b/examples/zkapps/01-hello-world/src/main.ts @@ -1,17 +1,11 @@ import { Square } from './Square.js'; import { - isReady, - shutdown, Field, Mina, PrivateKey, AccountUpdate, } from 'o1js'; -await isReady; - -console.log('o1js loaded'); - const useProof = false; const Local = Mina.LocalBlockchain({ proofsEnabled: useProof }); @@ -76,5 +70,3 @@ console.log('state after txn3:', num3.toString()); // ---------------------------------------------------- console.log('Shutting down'); - -await shutdown(); diff --git a/examples/zkapps/02-private-inputs-and-hash-functions/.gitignore b/examples/zkapps/02-private-inputs-and-hash-functions/.gitignore index e0ff9109d..7b92547c2 100644 --- a/examples/zkapps/02-private-inputs-and-hash-functions/.gitignore +++ b/examples/zkapps/02-private-inputs-and-hash-functions/.gitignore @@ -1,6 +1,7 @@ # NodeJS node_modules build +package-lock.json coverage # Editor diff --git a/examples/zkapps/02-private-inputs-and-hash-functions/src/main.ts b/examples/zkapps/02-private-inputs-and-hash-functions/src/main.ts index 10da0178c..9d0dec2cc 100644 --- a/examples/zkapps/02-private-inputs-and-hash-functions/src/main.ts +++ b/examples/zkapps/02-private-inputs-and-hash-functions/src/main.ts @@ -1,16 +1,11 @@ import { IncrementSecret } from './IncrementSecret.js'; import { - isReady, - shutdown, Field, Mina, PrivateKey, AccountUpdate, } from 'o1js'; -await isReady; - -console.log('o1js loaded'); const useProof = false; @@ -52,9 +47,3 @@ await txn1.sign([senderKey]).send(); const num1 = zkAppInstance.x.get(); console.log('state after txn1:', num1.toString()); - -// ---------------------------------------------------- - -console.log('Shutting down'); - -await shutdown(); diff --git a/examples/zkapps/05-common-types-and-functions/src/main.ts b/examples/zkapps/05-common-types-and-functions/src/main.ts index 02b3a4862..b32e13045 100644 --- a/examples/zkapps/05-common-types-and-functions/src/main.ts +++ b/examples/zkapps/05-common-types-and-functions/src/main.ts @@ -1,7 +1,5 @@ import { Mina, - isReady, - shutdown, UInt32, UInt64, Int64, @@ -23,8 +21,6 @@ import { import { LedgerContract } from './LedgerContract.js'; import { BasicMerkleTreeContract } from './BasicMerkleTreeContract.js'; -await isReady; - // -------------------------------------- console.log('--------------------------------------'); @@ -389,7 +385,3 @@ const value = Field(50); map.set(key, value); console.log(`value for key ${key}: ${map.get(key)}`); - -// -------------------------------------- - -await shutdown(); diff --git a/examples/zkapps/06-offchain-storage/ui/pages/_app.page.tsx b/examples/zkapps/06-offchain-storage/ui/pages/_app.page.tsx deleted file mode 100644 index 7a61a383c..000000000 --- a/examples/zkapps/06-offchain-storage/ui/pages/_app.page.tsx +++ /dev/null @@ -1,281 +0,0 @@ -import '../styles/globals.css'; -import React, { useEffect, useState } from 'react'; -import './reactCOIServiceWorker'; - -import ZkappWorkerClient from './zkappWorkerClient'; - -import { - PublicKey, - PrivateKey, - Field, - CircuitString, - Character, - Group, -} from 'o1js'; - -const transactionFee = 100_000_000; - -const useLocalTestInstance = true; - -export default function App() { - let [state, setState] = useState({ - zkappWorkerClient: null as null | ZkappWorkerClient, - hasBeenSetup: false, - accountExists: false, - currentMessages: null as null | Map, - privateKey: null as null | PrivateKey, - publicKey: null as null | PublicKey, - zkappPublicKey: null as null | PublicKey, - creatingTransaction: false, - userMessages: {} as { [key: number]: string }, - }); - - // ------------------------------------------------------- - // Do Setup - - useEffect(() => { - (async () => { - if (!state.hasBeenSetup) { - const zkappWorkerClient = new ZkappWorkerClient(); - - console.log('Loading o1js...'); - await zkappWorkerClient.loadO1js(); - console.log('done'); - - if (useLocalTestInstance) { - await zkappWorkerClient.setActiveInstanceToLocal(); - } else { - await zkappWorkerClient.setActiveInstanceToBerkeley(); - } - - if (localStorage.privateKey == null) { - localStorage.privateKey = PrivateKey.random().toBase58(); - } - - let privateKey = PrivateKey.fromBase58(localStorage.privateKey); - if (useLocalTestInstance) { - privateKey = await zkappWorkerClient.getLocalPrivateKey(); - } - - await zkappWorkerClient.setStorageServer('http://localhost:3001'); - - let publicKey = privateKey.toPublicKey(); - - console.log('using key', publicKey.toBase58()); - - console.log('checking if account exists...'); - const res = await zkappWorkerClient.fetchAccount({ - publicKey: publicKey!, - }); - const accountExists = res.error == null; - - await zkappWorkerClient.loadContract(); - - console.log('compiling zkApp'); - await zkappWorkerClient.compileContract(); - console.log('zkApp compiled'); - - let localZkappPrivateKey = PrivateKey.random(); - - let zkappPublicKey; - if (useLocalTestInstance) { - zkappPublicKey = localZkappPrivateKey.toPublicKey(); - } else { - zkappPublicKey = PublicKey.fromBase58( - 'B62qrBBEARoG78KLD1bmYZeEirUfpNXoMPYQboTwqmGLtfqAGLXdWpU' - ); - } - - await zkappWorkerClient.initZkappInstance(zkappPublicKey); - - console.log('getting zkApp state...'); - const reszk = await zkappWorkerClient.fetchAccount({ - publicKey: zkappPublicKey, - }); - - if (useLocalTestInstance || reszk.error != null) { - await zkappWorkerClient.createDeployTransaction( - privateKey, - transactionFee, - localZkappPrivateKey - ); - await zkappWorkerClient.proveUpdateTransaction(); - const transactionHash = - await zkappWorkerClient.sendUpdateTransaction(); - console.log( - 'See transaction at https://berkeley.minaexplorer.com/transaction/' + - transactionHash - ); - } - const currentMessages = await zkappWorkerClient.getMessages(); - console.log('current state:', currentMessages.toString()); - - setState({ - ...state, - zkappWorkerClient, - hasBeenSetup: true, - publicKey, - privateKey, - zkappPublicKey, - accountExists, - currentMessages, - }); - } - })(); - }, []); - - // ------------------------------------------------------- - // Wait for account to exist, if it didn't - - useEffect(() => { - (async () => { - if (state.hasBeenSetup && !state.accountExists) { - for (;;) { - console.log('checking if account exists...'); - const res = await state.zkappWorkerClient!.fetchAccount({ - publicKey: state.publicKey!, - }); - const accountExists = res.error == null; - if (accountExists) { - break; - } - await new Promise((resolve) => setTimeout(resolve, 5000)); - } - setState({ ...state, accountExists: true }); - } - })(); - }, [state.hasBeenSetup]); - - // ------------------------------------------------------- - // Send a transaction - - const makeOnUpdate = (i: number) => { - return async () => { - setState({ ...state, creatingTransaction: true }); - - const message = state.userMessages[i]; - - console.log(message); - - await state.zkappWorkerClient!.fetchAccount({ - publicKey: state.publicKey!, - }); - await state.zkappWorkerClient!.createUpdateTransaction( - state.privateKey!, - transactionFee, - i, - message - ); - - console.log('creating proof...'); - await state.zkappWorkerClient!.proveUpdateTransaction(); - - const transactionHash = - await state.zkappWorkerClient!.sendUpdateTransaction(); - - console.log( - 'See transaction at https://berkeley.minaexplorer.com/transaction/' + - transactionHash - ); - - setState({ ...state, creatingTransaction: false }); - }; - }; - - // ------------------------------------------------------- - // Refresh the current state - - const onRefreshCurrentNum = async () => { - console.log('getting zkApp state...'); - await state.zkappWorkerClient!.fetchAccount({ - publicKey: state.zkappPublicKey!, - }); - const currentMessages = await state.zkappWorkerClient!.getMessages(); - console.log('current state:', currentMessages.toString()); - - setState({ ...state, currentMessages }); - }; - - // ------------------------------------------------------- - // Create UI elements - - let setupText = state.hasBeenSetup ? 'o1js Ready' : 'Setting up o1js...'; - let setup =
{setupText}
; - - let accountDoesNotExist; - if (state.hasBeenSetup && !state.accountExists) { - const faucetLink = - 'https://faucet.minaprotocol.com/?address=' + state.publicKey!.toBase58(); - accountDoesNotExist = ( -
- Account does not exist. Please visit the faucet to fund this account - - {' '} - [Link]{' '} - -
- ); - } - - let mainContent; - if (state.hasBeenSetup && state.accountExists) { - var messages = []; - for (let i = 0; i < 2 ** (8 - 1); i++) { - let input; - let onChange = (event: React.ChangeEvent) => { - const userMessages = state.userMessages; - userMessages[i] = event.target.value; - setState({ ...state, userMessages }); - }; - - let signer; - if (state.currentMessages!.has(i)) { - const value = state.currentMessages!.get(i)!; - const publicKeyFields = value.slice(0, 2); - const publicKey = PublicKey.fromFields(publicKeyFields); - const messageFields = value.slice(2); - const messageChars = messageFields.map((f) => new Character(f)); - const messageCS = CircuitString.fromCharacters(messageChars); - const message = messageCS.toString(); - input = ( - - {' '} - {message}{' '} - - ); - const signerLink = - 'https://berkeley.minaexplorer.com/wallet/' + publicKey.toString(); - signer = ( - - {' '} - signer{' '} - - ); - publicKey.toString(); - } else { - input = ; - } - let button = ; - messages.push( -
- {' '} - {i}: {input} {signer} {button} -
- ); - } - mainContent = ( -
- - {messages} -
- ); - } - - return ( -
- {setup} - {accountDoesNotExist} - {mainContent} -
- ); -} diff --git a/examples/zkapps/06-offchain-storage/ui/pages/index.page.tsx b/examples/zkapps/06-offchain-storage/ui/pages/index.page.tsx deleted file mode 100644 index ba19e7cc2..000000000 --- a/examples/zkapps/06-offchain-storage/ui/pages/index.page.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import Head from 'next/head'; -import Image from 'next/image'; -import styles from '../styles/Home.module.css'; - -export default function Home() { - return ( - - ); -} diff --git a/examples/zkapps/06-offchain-storage/ui/pages/reactCOIServiceWorker.ts b/examples/zkapps/06-offchain-storage/ui/pages/reactCOIServiceWorker.ts deleted file mode 100644 index 6dca37b5a..000000000 --- a/examples/zkapps/06-offchain-storage/ui/pages/reactCOIServiceWorker.ts +++ /dev/null @@ -1,14 +0,0 @@ -export {}; - -function loadCOIServiceWorker() { - if ( - typeof window !== 'undefined' && - window.location.hostname != 'localhost' - ) { - const coi = window.document.createElement('script'); - coi.setAttribute('src', '/zkApp-examples/coi-serviceworker.min.js'); - window.document.head.appendChild(coi); - } -} - -loadCOIServiceWorker(); diff --git a/examples/zkapps/06-offchain-storage/ui/pages/reactCOIServiceWorker.tsx b/examples/zkapps/06-offchain-storage/ui/pages/reactCOIServiceWorker.tsx deleted file mode 100644 index 6dca37b5a..000000000 --- a/examples/zkapps/06-offchain-storage/ui/pages/reactCOIServiceWorker.tsx +++ /dev/null @@ -1,14 +0,0 @@ -export {}; - -function loadCOIServiceWorker() { - if ( - typeof window !== 'undefined' && - window.location.hostname != 'localhost' - ) { - const coi = window.document.createElement('script'); - coi.setAttribute('src', '/zkApp-examples/coi-serviceworker.min.js'); - window.document.head.appendChild(coi); - } -} - -loadCOIServiceWorker(); diff --git a/examples/zkapps/08-custom-tokens/src/BasicTokenContract.test.ts b/examples/zkapps/08-custom-tokens/src/BasicTokenContract.test.ts index 2d764fa5c..3de625d1d 100644 --- a/examples/zkapps/08-custom-tokens/src/BasicTokenContract.test.ts +++ b/examples/zkapps/08-custom-tokens/src/BasicTokenContract.test.ts @@ -1,4 +1,4 @@ -import BasicTokenContract from './BasicTokenContract.js'; +import { BasicTokenContract } from './BasicTokenContract.js'; describe('BasicTokenContract.ts.js', () => { describe('BasicTokenContract.ts()', () => { diff --git a/examples/zkapps/08-custom-tokens/src/WhitelistedTokenContract.test.ts b/examples/zkapps/08-custom-tokens/src/WhitelistedTokenContract.test.ts index 4302c2f17..eefb63866 100644 --- a/examples/zkapps/08-custom-tokens/src/WhitelistedTokenContract.test.ts +++ b/examples/zkapps/08-custom-tokens/src/WhitelistedTokenContract.test.ts @@ -1,4 +1,4 @@ -import WhitelistedTokenContracts from './WhitelistedTokenContract.js'; +import { WhitelistedTokenContract } from './WhitelistedTokenContract.js'; describe('WhitelistedTokenContract.ts.js', () => { describe('WhitelistedTokenContract.ts()', () => { diff --git a/examples/zkapps/08-custom-tokens/src/main.ts b/examples/zkapps/08-custom-tokens/src/main.ts index 69d2b8f0f..26961416d 100644 --- a/examples/zkapps/08-custom-tokens/src/main.ts +++ b/examples/zkapps/08-custom-tokens/src/main.ts @@ -1,7 +1,5 @@ import { BasicTokenContract } from './BasicTokenContract.js'; import { - isReady, - shutdown, Mina, PrivateKey, AccountUpdate, @@ -9,9 +7,6 @@ import { Signature, } from 'o1js'; -await isReady; - -console.log('o1js loaded'); const proofsEnabled = false; const Local = Mina.LocalBlockchain({ proofsEnabled }); @@ -24,7 +19,10 @@ const zkAppAddress = zkAppPrivateKey.toPublicKey(); console.log('compiling...'); -let { verificationKey } = await BasicTokenContract.compile(); +let verificationKey: any; +if (proofsEnabled) { + ({ verificationKey } = await BasicTokenContract.compile()); +} console.log('compiled'); @@ -43,19 +41,6 @@ console.log('deployed'); // ---------------------------------------------------- -console.log('initializing...'); - -const init_txn = await Mina.transaction(deployerAccount.toPublicKey(), () => { - contract.init(); -}); - -await init_txn.prove(); -await init_txn.sign([deployerAccount]).send(); - -console.log('initialized'); - -// ---------------------------------------------------- - console.log('minting...'); const mintAmount = UInt64.from(10); @@ -92,7 +77,7 @@ const send_txn = await Mina.transaction(deployerAccount.toPublicKey(), () => { contract.sendTokens(zkAppAddress, deployerAccount.toPublicKey(), sendAmount); }); await send_txn.prove(); -await send_txn.sign([deployerAccount]).send(); +await send_txn.sign([deployerAccount, zkAppPrivateKey]).send(); console.log('sent'); @@ -116,9 +101,3 @@ console.log( 'zkapp tokens:', Mina.getBalance(zkAppAddress, contract.token.id).value.toBigInt() ); - -// ---------------------------------------------------- - -console.log('Shutting down'); - -await shutdown(); \ No newline at end of file diff --git a/examples/zkapps/08-custom-tokens/src/mainWhitelist.ts b/examples/zkapps/08-custom-tokens/src/mainWhitelist.ts index 7d88c8510..d65c0fc60 100644 --- a/examples/zkapps/08-custom-tokens/src/mainWhitelist.ts +++ b/examples/zkapps/08-custom-tokens/src/mainWhitelist.ts @@ -70,21 +70,9 @@ class MerkleWitness20 extends MerkleWitness(20) {} // ---------------------------------------------------- console.log('initializing...'); - let init_txn = await Mina.transaction(deployerAccount, () => { - contract.init(); - contract.requireSignature(); - }); - - if (!proofsEnabled) { - await init_txn.prove(); - } else { - init_txn.sign([zkAppPrivateKey]); - } - await init_txn.send(); - init_txn = await Mina.transaction(deployerAccount, () => { + const init_txn = await Mina.transaction(deployerAccount, () => { contract.initState(tree.getRoot()); - contract.requireSignature(); }); if (!proofsEnabled) { @@ -110,7 +98,6 @@ class MerkleWitness20 extends MerkleWitness(20) {} const mint_txn = await Mina.transaction(deployerAccount, () => { AccountUpdate.fundNewAccount(deployerAccount); contract.mint(zkAppAddress, mintAmount, mintSignature); - contract.requireSignature(); }); if (!proofsEnabled) { await mint_txn.prove(); @@ -143,9 +130,8 @@ class MerkleWitness20 extends MerkleWitness(20) {} sendAmount, sendWitness ); - contract.requireSignature(); }); - send_txn.sign([zkAppPrivateKey]); + send_txn.sign([deployerAccount, zkAppPrivateKey]); if (!proofsEnabled) { await send_txn.prove(); } diff --git a/examples/zkapps/09-recursion/src/main.ts b/examples/zkapps/09-recursion/src/main.ts index 2cf4a507c..bb098a0d9 100644 --- a/examples/zkapps/09-recursion/src/main.ts +++ b/examples/zkapps/09-recursion/src/main.ts @@ -7,7 +7,7 @@ import { PrivateKey, AccountUpdate, SelfProof, - Experimental, + ZkProgram, Struct, Bool, Circuit, @@ -53,7 +53,7 @@ async function main() { await shutdown(); } -const Add = Experimental.ZkProgram({ +const Add = ZkProgram({ publicInput: Field, methods: { diff --git a/examples/zkapps/09-recursion/src/rollup.ts b/examples/zkapps/09-recursion/src/rollup.ts index caaeae009..32d5a25fd 100644 --- a/examples/zkapps/09-recursion/src/rollup.ts +++ b/examples/zkapps/09-recursion/src/rollup.ts @@ -1,6 +1,7 @@ import { Field, SelfProof, + ZkProgram, Struct, MerkleMap, MerkleWitness, diff --git a/examples/zkapps/09-recursion/src/vote.ts b/examples/zkapps/09-recursion/src/vote.ts index 200c91013..748665a4f 100644 --- a/examples/zkapps/09-recursion/src/vote.ts +++ b/examples/zkapps/09-recursion/src/vote.ts @@ -7,7 +7,7 @@ import { PrivateKey, AccountUpdate, SelfProof, - Experimental, + ZkProgram, Struct, Bool, Circuit, @@ -144,7 +144,7 @@ class VoteState extends Struct({ // =============================================================== -const Vote = Experimental.ZkProgram({ +const Vote = ZkProgram({ publicInput: VoteState, methods: { diff --git a/examples/zkapps/09-recursion/src/zkProgram_wrapper.ts b/examples/zkapps/09-recursion/src/zkProgram_wrapper.ts index bb13dc137..fd2da1b9b 100644 --- a/examples/zkapps/09-recursion/src/zkProgram_wrapper.ts +++ b/examples/zkapps/09-recursion/src/zkProgram_wrapper.ts @@ -6,7 +6,7 @@ import { PrivateKey, AccountUpdate, SelfProof, - Experimental, + ZkProgram, Struct, Bool, Circuit, @@ -63,7 +63,7 @@ const ZkProgram = (config : any) => { } }); - const originalZkProgram = Experimental.ZkProgram(zkProgramConfig); + const originalZkProgram = ZkProgram(zkProgramConfig); const zkProgram: any = {}; diff --git a/examples/zkapps/10-account-updates/src/ProofsOnlyZkApp.ts b/examples/zkapps/10-account-updates/src/ProofsOnlyZkApp.ts index eeb0591c3..4d2b4d160 100644 --- a/examples/zkapps/10-account-updates/src/ProofsOnlyZkApp.ts +++ b/examples/zkapps/10-account-updates/src/ProofsOnlyZkApp.ts @@ -17,7 +17,7 @@ export class ProofsOnlyZkApp extends SmartContract { deploy(args: DeployArgs) { super.deploy(args); - this.setPermissions({ + this.account.permissions.set({ ...Permissions.default(), setDelegate: Permissions.proof(), setPermissions: Permissions.proof(), diff --git a/examples/zkapps/10-account-updates/src/SecondaryZkApp.ts b/examples/zkapps/10-account-updates/src/SecondaryZkApp.ts index 9080c1a10..a88eea91b 100644 --- a/examples/zkapps/10-account-updates/src/SecondaryZkApp.ts +++ b/examples/zkapps/10-account-updates/src/SecondaryZkApp.ts @@ -13,7 +13,7 @@ export class SecondaryZkApp extends SmartContract { deploy(args: DeployArgs) { super.deploy(args); - this.setPermissions({ + this.account.permissions.set({ ...Permissions.default(), }); } diff --git a/examples/zkapps/10-account-updates/src/main.ts b/examples/zkapps/10-account-updates/src/main.ts index 38e61b94e..2cd6e9c1f 100644 --- a/examples/zkapps/10-account-updates/src/main.ts +++ b/examples/zkapps/10-account-updates/src/main.ts @@ -2,8 +2,6 @@ import { ProofsOnlyZkApp } from './ProofsOnlyZkApp.js'; import { SecondaryZkApp } from './SecondaryZkApp.js'; import { - isReady, - shutdown, Field, Mina, PrivateKey, @@ -13,14 +11,12 @@ import { import { showTxn, saveTxn, printTxn } from 'mina-transaction-visualizer'; (async function main() { - await isReady; - - console.log('o1js loaded'); const proofsEnabled = false; const Local = Mina.LocalBlockchain({ proofsEnabled }); Mina.setActiveInstance(Local); const deployerAccount = Local.testAccounts[0].privateKey; + const deployerPubkey = deployerAccount.toPublicKey(); if (proofsEnabled) { ProofsOnlyZkApp.compile(); @@ -34,11 +30,11 @@ import { showTxn, saveTxn, printTxn } from 'mina-transaction-visualizer'; const secondarySk = PrivateKey.random(); const secondaryAddr = secondarySk.toPublicKey(); - + const legend = { [proofsOnlyAddr.toBase58()]: 'proofsOnlyZkApp', [secondaryAddr.toBase58()]: 'secondaryZkApp', - [deployerAccount.toPublicKey().toBase58()]: 'deployer', + [deployerPubkey.toBase58()]: 'deployer', }; const proofsOnlyInstance = new ProofsOnlyZkApp(proofsOnlyAddr); @@ -46,23 +42,23 @@ import { showTxn, saveTxn, printTxn } from 'mina-transaction-visualizer'; // ---------------------------------------------------- - const deploy_txn = await Mina.transaction(deployerAccount, () => { - AccountUpdate.fundNewAccount(deployerAccount, 2); + const deploy_txn = await Mina.transaction(deployerPubkey, () => { + AccountUpdate.fundNewAccount(deployerPubkey); proofsOnlyInstance.deploy({ zkappKey: proofsOnlySk }); secondaryInstance.deploy({ zkappKey: secondarySk }); }); await deploy_txn.prove(); - deploy_txn.sign([ proofsOnlySk, secondarySk ]); + deploy_txn.sign([ deployerAccount, proofsOnlySk, secondarySk ]); - await showTxn(deploy_txn, 'deploy_txn', legend); - await saveTxn(deploy_txn, 'deploy_txn', legend, './deploy_txn.png'); + // await showTxn(deploy_txn, 'deploy_txn', legend); + // await saveTxn(deploy_txn, 'deploy_txn', legend, './deploy_txn.png'); await deploy_txn.send(); // ---------------------------------------------------- - const txn1 = await Mina.transaction(deployerAccount, () => { + const txn1 = await Mina.transaction(deployerPubkey, () => { proofsOnlyInstance.add(Field(4)); }); @@ -75,7 +71,7 @@ import { showTxn, saveTxn, printTxn } from 'mina-transaction-visualizer'; // ---------------------------------------------------- - const txn2 = await Mina.transaction(deployerAccount, () => { + const txn2 = await Mina.transaction(deployerPubkey, () => { proofsOnlyInstance.callSecondary(secondaryAddr); }); @@ -86,9 +82,4 @@ import { showTxn, saveTxn, printTxn } from 'mina-transaction-visualizer'; await txn2.send(); - // ---------------------------------------------------- - - console.log('Shutting down'); - - await shutdown(); })(); diff --git a/examples/zkapps/11-advanced-account-updates/src/ProofsOnlyZkApp.ts b/examples/zkapps/11-advanced-account-updates/src/ProofsOnlyZkApp.ts index 2b2b1e264..00aeefb81 100644 --- a/examples/zkapps/11-advanced-account-updates/src/ProofsOnlyZkApp.ts +++ b/examples/zkapps/11-advanced-account-updates/src/ProofsOnlyZkApp.ts @@ -6,7 +6,6 @@ import { State, method, DeployArgs, - PublicKey, Permissions, } from 'o1js'; @@ -16,7 +15,7 @@ export class ProofsOnlyZkApp extends SmartContract { deploy(args: DeployArgs) { super.deploy(args); - this.setPermissions({ + this.account.permissions.set({ ...Permissions.default(), setDelegate: Permissions.proof(), setPermissions: Permissions.proof(), diff --git a/examples/zkapps/11-advanced-account-updates/src/TokenPool.ts b/examples/zkapps/11-advanced-account-updates/src/TokenPool.ts index 5a0fd254d..b2d901df6 100644 --- a/examples/zkapps/11-advanced-account-updates/src/TokenPool.ts +++ b/examples/zkapps/11-advanced-account-updates/src/TokenPool.ts @@ -5,7 +5,6 @@ import { Permissions, PublicKey, SmartContract, - Token, UInt64, } from 'o1js'; diff --git a/examples/zkapps/11-advanced-account-updates/src/WrappedMina.ts b/examples/zkapps/11-advanced-account-updates/src/WrappedMina.ts index ad8589327..31388c586 100644 --- a/examples/zkapps/11-advanced-account-updates/src/WrappedMina.ts +++ b/examples/zkapps/11-advanced-account-updates/src/WrappedMina.ts @@ -1,31 +1,22 @@ import { - Account, Bool, - Circuit, DeployArgs, - Field, Int64, - isReady, method, Mina, AccountUpdate, Permissions, - PrivateKey, PublicKey, SmartContract, - Token, UInt64, - VerificationKey, - Struct, State, state, - UInt32, } from 'o1js'; export class WrappedMina extends SmartContract { deploy(args?: DeployArgs) { super.deploy(args); - this.setPermissions({ + this.account.permissions.set({ ...Permissions.default(), send: Permissions.proof(), }); diff --git a/examples/zkapps/11-advanced-account-updates/src/main.ts b/examples/zkapps/11-advanced-account-updates/src/main.ts index 0ae98bb6b..9e342b70b 100644 --- a/examples/zkapps/11-advanced-account-updates/src/main.ts +++ b/examples/zkapps/11-advanced-account-updates/src/main.ts @@ -2,8 +2,6 @@ import { TokenUser, TokenHolder } from './TokenUser.js'; import { MyToken } from './MyToken.js'; import { - isReady, - shutdown, Mina, PrivateKey, AccountUpdate, @@ -13,9 +11,6 @@ import { import { showTxn, saveTxn } from 'mina-transaction-visualizer'; await (async function main() { - await isReady; - - console.log('o1js loaded'); const proofsEnabled = true; const Local = Mina.LocalBlockchain({ proofsEnabled }); @@ -115,9 +110,4 @@ await (async function main() { console.log('sent txn2'); - // ---------------------------------------------------- - - console.log('Shutting down'); - - await shutdown(); })(); diff --git a/examples/zkapps/11-advanced-account-updates/src/wrappedMinaMain.ts b/examples/zkapps/11-advanced-account-updates/src/wrappedMinaMain.ts index 6725bfb6a..2816a4144 100644 --- a/examples/zkapps/11-advanced-account-updates/src/wrappedMinaMain.ts +++ b/examples/zkapps/11-advanced-account-updates/src/wrappedMinaMain.ts @@ -3,11 +3,9 @@ import { TokenPool, TokenPoolWMinaHolder } from './TokenPool.js'; import { Mina, PrivateKey, - shutdown, - isReady, AccountUpdate, UInt64, - Token, + TokenId, PublicKey, } from 'o1js'; @@ -17,7 +15,6 @@ import util from 'util'; // https://github.com/o1-labs/o1js/blob/main/src/examples/zkapps/dex/dex.ts (async () => { - await isReady; let doProofs = false; @@ -57,7 +54,7 @@ import util from 'util'; if (tokenAddr == null) { return Mina.getBalance(addr).toBigInt(); } else { - return Mina.getBalance(addr, Token.getId(tokenAddr)).toBigInt(); + return Mina.getBalance(addr, TokenId.derive(tokenAddr)).toBigInt(); } } catch (e) { return null; @@ -204,5 +201,4 @@ import util from 'util'; // TODO // * Add a call to the TokenPool contract that does things that should be outside of scope with WrappedMina in the "approve" call (eg Minting inappropriately) - await shutdown(); })(); diff --git a/examples/zkapps/interacting-with-zkApps-server-side/src/main.ts b/examples/zkapps/interacting-with-zkApps-server-side/src/main.ts index 450db12af..45d3a76e0 100644 --- a/examples/zkapps/interacting-with-zkApps-server-side/src/main.ts +++ b/examples/zkapps/interacting-with-zkApps-server-side/src/main.ts @@ -1,15 +1,9 @@ import { Square } from './Square.js'; -import { isReady, shutdown, Mina, PrivateKey } from 'o1js'; +import { Mina, PrivateKey } from 'o1js'; import fs from 'fs'; import { loopUntilAccountExists, deploy } from './utils.js'; -await isReady; - -console.log('o1js loaded'); - -// ---------------------------------------------------- - const Berkeley = Mina.Network( 'https://proxy.berkeley.minaexplorer.com/graphql' ); @@ -112,9 +106,3 @@ Waiting for transaction to be included...` await pendingTransaction.wait(); console.log(`updated state! ${await zkapp.num.fetch()}`); - -// ---------------------------------------------------- - -console.log('Shutting down'); - -await shutdown(); diff --git a/sidebars.js b/sidebars.js index ac042ba2b..6e5662218 100644 --- a/sidebars.js +++ b/sidebars.js @@ -63,7 +63,7 @@ module.exports = { 'zkapps/o1js/merkle-tree', 'zkapps/o1js/permissions', 'zkapps/o1js/time-locked-accounts', - ], + ], }, { type: 'category', diff --git a/static/img/banner-o1js.png b/static/img/banner-o1js.png new file mode 100644 index 000000000..17ae45d23 Binary files /dev/null and b/static/img/banner-o1js.png differ