Skip to content

Commit 16308a7

Browse files
authored
Docs: Move poseidon outside of create (#510)
1 parent 46a3074 commit 16308a7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/sophia_stdlib.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,14 +614,6 @@ charging the calling contract. Note that this won't be visible in `Call.value`
614614
in the `init` call of the new contract. It will be included in
615615
`Contract.balance`, however.
616616

617-
#### poseidon
618-
```
619-
Crypto.poseidon(x1 : int, x2 : int) : int
620-
```
621-
622-
Hash two integers (in the scalar field of BLS12-381) to another integer (in the scalar
623-
field of BLS12-281). This is a ZK/SNARK-friendly hash function.
624-
625617
The type `'c` must be instantiated with a contract.
626618

627619

@@ -748,6 +740,15 @@ Chain.network\_id : string
748740
The network id of the chain.
749741

750742

743+
#### poseidon
744+
```
745+
Crypto.poseidon(x1 : int, x2 : int) : int
746+
```
747+
748+
Hash two integers (in the scalar field of BLS12-381) to another integer (in the scalar
749+
field of BLS12-281). This is a ZK/SNARK-friendly hash function.
750+
751+
751752
##### spend
752753
```
753754
Chain.spend(to : address, amount : int) : unit

0 commit comments

Comments
 (0)