From 16308a7840f484245b14b437b08f1954d313d65a Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Mon, 12 Aug 2024 11:02:56 +0400 Subject: [PATCH] Docs: Move `poseidon` outside of `create` (#510) --- docs/sophia_stdlib.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/sophia_stdlib.md b/docs/sophia_stdlib.md index f194841..8cbcf1f 100644 --- a/docs/sophia_stdlib.md +++ b/docs/sophia_stdlib.md @@ -614,14 +614,6 @@ charging the calling contract. Note that this won't be visible in `Call.value` in the `init` call of the new contract. It will be included in `Contract.balance`, however. -#### poseidon -``` -Crypto.poseidon(x1 : int, x2 : int) : int -``` - -Hash two integers (in the scalar field of BLS12-381) to another integer (in the scalar -field of BLS12-281). This is a ZK/SNARK-friendly hash function. - The type `'c` must be instantiated with a contract. @@ -748,6 +740,15 @@ Chain.network\_id : string The network id of the chain. +#### poseidon +``` +Crypto.poseidon(x1 : int, x2 : int) : int +``` + +Hash two integers (in the scalar field of BLS12-381) to another integer (in the scalar +field of BLS12-281). This is a ZK/SNARK-friendly hash function. + + ##### spend ``` Chain.spend(to : address, amount : int) : unit