x 6 часов назад
Родитель
Сommit
30baa2abc5
70 измененных файлов с 203 добавлено и 181 удалено
  1. 8 8
      Cargo.lock
  2. 3 3
      Cargo.toml
  3. 1 1
      README.md
  4. 1 1
      bin/app/Cargo.lock
  5. 1 1
      bin/app/Cargo.toml
  6. 1 1
      bin/app/Dockerfile
  7. 1 1
      bin/app/release/win/README.md
  8. 1 1
      bin/darkfid/Cargo.toml
  9. 1 1
      bin/darkirc/Cargo.toml
  10. 1 1
      bin/drk/Cargo.toml
  11. 1 1
      bin/explorer/python/templates/block.html
  12. 1 1
      bin/explorer/python/templates/blocks.html
  13. 1 1
      bin/explorer/python/templates/contract.html
  14. 1 1
      bin/explorer/python/templates/contracts.html
  15. 1 1
      bin/explorer/python/templates/error.html
  16. 1 1
      bin/explorer/python/templates/index.html
  17. 1 1
      bin/explorer/python/templates/stats.html
  18. 1 1
      bin/explorer/python/templates/tx.html
  19. 1 1
      bin/fud/fu/Cargo.toml
  20. 1 1
      bin/fud/fud/Cargo.toml
  21. 1 1
      bin/lilith/Cargo.toml
  22. 1 1
      bin/tau/taud/Cargo.toml
  23. 1 1
      bin/vanityaddr/Cargo.toml
  24. 1 1
      bin/zkas/Cargo.toml
  25. 1 1
      doc/build_jsonrpc.py
  26. 1 1
      doc/src/arch/net/p2p-network.md
  27. 4 4
      doc/src/crypto/fft.md
  28. 14 14
      doc/src/crypto/research.md
  29. 1 1
      doc/src/dev/contrib/contrib.md
  30. 6 6
      doc/src/dev/contrib/hiring.md
  31. 76 54
      doc/src/dev/contrib/tor.md
  32. 1 1
      doc/src/dev/dev.md
  33. 5 5
      doc/src/glossary/glossary.md
  34. 1 1
      doc/src/learn/dchat/creating-dchatd/accept-addr.md
  35. 6 6
      doc/src/learn/dchat/creating-dchatd/protocols.md
  36. 2 2
      doc/src/learn/dchat/creating-dchatd/rpc-requests.md
  37. 1 1
      doc/src/learn/dchat/creating-dchatd/stoppable-task.md
  38. 1 1
      doc/src/learn/dchat/dchat.md
  39. 1 1
      doc/src/learn/dchat/deployment/sessions.md
  40. 1 1
      doc/src/learn/dchat/deployment/settings.md
  41. 2 2
      doc/src/learn/dchat/deployment/start-stop.md
  42. 1 1
      doc/src/learn/dchat/deployment/writing-a-daemon.md
  43. 1 1
      doc/src/misc/tau.md
  44. 3 3
      doc/src/spec/contract/money/scheme.md
  45. 2 2
      doc/src/testnet/contract.md
  46. 5 5
      doc/src/zero2darkfi/darkmap.md
  47. 2 2
      doc/src/zkas/bincode.md
  48. 4 4
      doc/src/zkas/zkas.md
  49. 1 1
      example/dchat/dchatd/Cargo.toml
  50. 1 1
      example/p2pdebug/Cargo.toml
  51. 1 1
      script/ping/Cargo.toml
  52. 2 2
      script/research/antisapling/antisapling.md
  53. 1 1
      script/research/blockchain-storage-metrics/Cargo.toml
  54. 2 2
      script/research/bulletproof-mpc/README.md
  55. 1 1
      script/research/crypsinous/linearindependence/README.md
  56. 1 1
      script/research/dam/dam-cli/Cargo.toml
  57. 1 1
      script/research/dam/damd/Cargo.toml
  58. 1 1
      script/research/generic-node/Cargo.toml
  59. 1 1
      script/research/gg/Cargo.toml
  60. 3 3
      script/research/lotterysim/README.md
  61. 1 1
      script/research/lotterysim/reports/staking.md
  62. 1 1
      script/research/pallas_constants/Cargo.toml
  63. 1 1
      script/research/tx-replayer/Cargo.toml
  64. 2 2
      script/research/zkvm-metering/generator/Cargo.toml
  65. 2 2
      script/research/zkvm-metering/verifier/Cargo.toml
  66. 1 1
      src/sdk/Cargo.toml
  67. 1 1
      src/sdk/python/Cargo.toml
  68. 1 1
      src/serial/Cargo.toml
  69. 1 1
      src/serial/derive-internal/Cargo.toml
  70. 1 1
      src/serial/derive/Cargo.toml

+ 8 - 8
Cargo.lock

@@ -3433,9 +3433,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
 [[package]]
 name = "form_urlencoded"
 version = "1.2.2"
-source = "git+https://github.com/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
+source = "git+https://git.dark.fi/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
 dependencies = [
- "percent-encoding 2.3.2 (git+https://github.com/darkrenaissance/rust-url?branch=v258)",
+ "percent-encoding 2.3.2 (git+https://git.dark.fi/darkrenaissance/rust-url?branch=v258)",
 ]
 
 [[package]]
@@ -4307,7 +4307,7 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
 [[package]]
 name = "idna"
 version = "1.1.0"
-source = "git+https://github.com/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
+source = "git+https://git.dark.fi/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
 dependencies = [
  "idna_adapter",
  "smallvec",
@@ -4697,7 +4697,7 @@ dependencies = [
 [[package]]
 name = "kvdb-overlay"
 version = "0.1.0"
-source = "git+https://git.dark.fi/darkrenaissance/kvdb-overlay#52ff2bf06e800e098b32089acff7e2fa1dcfa30d"
+source = "git+https://git.dark.fi/darkrenaissance/kvdb-overlay#accd2689f42e17d8db05294fbe9c3dac1ef307f4"
 dependencies = [
  "fjall",
  "tempfile",
@@ -5821,7 +5821,7 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
 [[package]]
 name = "percent-encoding"
 version = "2.3.2"
-source = "git+https://github.com/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
+source = "git+https://git.dark.fi/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
 
 [[package]]
 name = "phf"
@@ -6577,7 +6577,7 @@ dependencies = [
 [[package]]
 name = "randomx"
 version = "1.2.1"
-source = "git+https://codeberg.org/darkrenaissance/RandomX?rev=0e31d5a#0e31d5a23983164a171276dea7bea94dc58ca8ed"
+source = "git+https://git.dark.fi/darkrenaissance/RandomX?rev=0e31d5a#0e31d5a23983164a171276dea7bea94dc58ca8ed"
 dependencies = [
  "bindgen 0.72.1",
  "bitflags 2.12.1",
@@ -10042,11 +10042,11 @@ checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae"
 [[package]]
 name = "url"
 version = "2.5.8"
-source = "git+https://github.com/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
+source = "git+https://git.dark.fi/darkrenaissance/rust-url?branch=v258#d1644eb500f98add06f6092e0c8437140122cbce"
 dependencies = [
  "form_urlencoded",
  "idna",
- "percent-encoding 2.3.2 (git+https://github.com/darkrenaissance/rust-url?branch=v258)",
+ "percent-encoding 2.3.2 (git+https://git.dark.fi/darkrenaissance/rust-url?branch=v258)",
  "serde",
  "serde_derive",
 ]

+ 3 - 3
Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.0"
 homepage = "https://dark.fi"
 description = "Anonymous. Uncensored. Sovereign."
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 
@@ -119,7 +119,7 @@ wasmer-middlewares = {version = "6.1.0", optional = true}
 kvdb-overlay = {git = "https://git.dark.fi/darkrenaissance/kvdb-overlay", version = "0.1.0", optional = true}
 
 # Miner
-randomx = {git = "https://codeberg.org/darkrenaissance/RandomX", rev = "0e31d5a", optional = true}
+randomx = {git = "https://git.dark.fi/darkrenaissance/RandomX", rev = "0e31d5a", optional = true}
 monero = {version = "0.21.0", optional = true}
 tiny-keccak = { version = "2.0.2", features = ["keccak"], optional = true }
 
@@ -330,7 +330,7 @@ dht = [
 halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v050"}
 halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v050"}
 # Forked "url" crate with added P2P schemas
-url = {git="https://github.com/darkrenaissance/rust-url", branch="v258"}
+url = {git="https://git.dark.fi/darkrenaissance/rust-url", branch="v258"}
 
 [[bench]]
 name = "zk_arith"

+ 1 - 1
README.md

@@ -64,7 +64,7 @@ First you need to clone DarkFi repo and enter its root folder, if
 you haven't already done it:
 
 ```shell
-% git clone https://codeberg.org/darkrenaissance/darkfi
+% git clone https://git.dark.fi/darkrenaissance/darkfi
 % cd darkfi
 ```
 

+ 1 - 1
bin/app/Cargo.lock

@@ -4482,7 +4482,7 @@ dependencies = [
 [[package]]
 name = "kvdb-overlay"
 version = "0.1.0"
-source = "git+https://git.dark.fi/darkrenaissance/kvdb-overlay#52ff2bf06e800e098b32089acff7e2fa1dcfa30d"
+source = "git+https://git.dark.fi/darkrenaissance/kvdb-overlay#accd2689f42e17d8db05294fbe9c3dac1ef307f4"
 dependencies = [
  "fjall",
  "tempfile",

+ 1 - 1
bin/app/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [dependencies]
 miniquad = { git = "https://github.com/not-fl3/miniquad" }

+ 1 - 1
bin/app/Dockerfile

@@ -57,7 +57,7 @@ RUN cargo install --path /root/cargo-apk
 ENV PATH="/opt/android-sdk-linux/build-tools/36.0.0-rc5/:${PATH}"
 
 # Lets cache packages for faster builds
-RUN git clone --depth=1 https://codeberg.org/darkrenaissance/darkfi
+RUN git clone --depth=1 https://git.dark.fi/darkrenaissance/darkfi
 COPY Cargo.lock darkfi/bin/app/
 WORKDIR /root/darkfi/bin/app/
 RUN cargo fetch

+ 1 - 1
bin/app/release/win/README.md

@@ -157,7 +157,7 @@ Then proceed with the installation (option 1).
 
 ## Building the DarkFi App
 
-Go to the [codeberg repo] and select "⋯", then Download ZIP. Unzip the folder
+Go to the [git repo] and select "⋯", then Download ZIP. Unzip the folder
 in an accessible place.
 
 Open cmd and navigate to the folder. Now run `cargo build`.

+ 1 - 1
bin/darkfid/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.0"
 homepage = "https://dark.fi"
 description = "DarkFi node daemon"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
bin/darkirc/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [lib]
 name = "irc2"

+ 1 - 1
bin/drk/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.0"
 homepage = "https://dark.fi"
 description = "Command-line client for darkfid"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
bin/explorer/python/templates/block.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/blocks.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/contract.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/contracts.html

@@ -15,7 +15,7 @@
         <a href="/contracts" class="active">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/error.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/index.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/stats.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats" class="active">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/explorer/python/templates/tx.html

@@ -15,7 +15,7 @@
         <a href="/contracts">Contracts</a>
         <a href="/stats">Stats</a>
         <a href="https://dark.fi/book/">Docs</a>
-        <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
+        <a href="https://git.dark.fi/darkrenaissance/darkfi/">Code</a>
       </nav>
     </div>
   </header>

+ 1 - 1
bin/fud/fu/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [dependencies]
 darkfi = {path = "../../../", features = ["util", "rpc"]}

+ 1 - 1
bin/fud/fud/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [lib]
 name = "fud"

+ 1 - 1
bin/lilith/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [dependencies]
 darkfi = {path = "../../", features = ["toml", "async-daemonize", "rpc"]}

+ 1 - 1
bin/tau/taud/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [lib]
 name = "taud"

+ 1 - 1
bin/vanityaddr/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.0"
 homepage = "https://dark.fi"
 description = "Vanity address generation tool for DarkFi keypairs, contract IDs, and token IDs"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
bin/zkas/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.0"
 homepage = "https://dark.fi"
 description = "Compiler for the Halo2 zkVM language used in DarkFi."
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
doc/build_jsonrpc.py

@@ -109,7 +109,7 @@ def main(path):
 
     for m in methods:
         anchor = m["method"].replace(".", "").replace("/", "").lower()
-        ghlink = f"https://codeberg.org/darkrenaissance/darkfi/src/branch/master/{path.replace('../', '')}#L{m['line']}"
+        ghlink = f"https://git.dark.fi/darkrenaissance/darkfi/src/master/{path.replace('../', '')}#L{m['line']}"
         print(f"### `{m['method']}` [source]({ghlink}) {{#{anchor}}}\n")
 
         if m["comment"]:

+ 1 - 1
doc/src/arch/net/p2p-network.md

@@ -143,7 +143,7 @@ investment it is a viable attack and should be mitigated."
   for details of this algorithm. This aids with network connectivity,
   avoiding netsplits which could make the network more susceptible to
   eclipse/sybil attacks (large scale MiTM).
-    * See: [Refine Session](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/session/refine_session.rs)
+    * See: [Refine Session](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/session/refine_session.rs)
 * **Protocol-level reputation system**. You have a keypair, which
   accrues more trust from the network. Nodes gossip trust metrics.
     * See [AnonRep: Towards Tracking-Resistant Anonymous Reputation](https://www.usenix.org/system/files/conference/nsdi16/nsdi16-paper-zhai.pdf)

+ 4 - 4
doc/src/crypto/fft.md

@@ -2,11 +2,11 @@
 
 Available code files:
 
-* [fft2.sage](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/fft/fft2.sage):
+* [fft2.sage](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/fft/fft2.sage):
   implementation using vandermonde matrices illustrating the theory section below.
-* [fft3.sage](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/fft/fft3.sage):
+* [fft3.sage](https://git.dark.fidarkrenaissance/darkfi/src/master/script/research/zk/fft/fft3.sage):
   simple example with $n = 4$ showing 3 steps of the algorithm.
-* [fft4.sage](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/fft/fft4.sage):
+* [fft4.sage](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/fft/fft4.sage):
   illustrates the full working algorithm.
 
 ## Theory
@@ -98,7 +98,7 @@ $$
 
 ### Algorithm
 
-Implementation of this algorithm is available in [fft4.sage](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/fft/fft4.sage).
+Implementation of this algorithm is available in [fft4.sage](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/fft/fft4.sage).
 Particularly the function called `calc_dft()`.
 
 **function** DFT($n = 2^d, f(X)$)<br>

+ 14 - 14
doc/src/crypto/research.md

@@ -1,25 +1,25 @@
 # Research
 
 DarkFi maintains a public resource of zero-knowledge and math research
-in the [script/research](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research) directory of
+in the [script/research](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research) directory of
 the repo.
 
 It features simple sage implementations of zero-knowledge algorithms
 and math primitives, including but not limited to:
 
-* [ZK](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk)
-    * [bootle16](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/bootle16.py)
+* [ZK](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk)
+    * [bootle16](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/bootle16.py)
       (precursor to sonic)
-    * [sonic](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/sonic.sage)
-    * [plonk](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/plonk.sage)
-    * [halo1](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/halo1.sage) and
-      [halo2](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/halo2.sage)
-    * [curve trees](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/curve_tree.sage)
-    * [FFT](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/fft)
-    * [groth16](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/groth16)
-    * [bulletproofs](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/zk/bltprf)
-* [Poseidon hash](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/poseidon)
-* [x3dh](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/x3dh)
+    * [sonic](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/sonic.sage)
+    * [plonk](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/plonk.sage)
+    * [halo1](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/halo1.sage) and
+      [halo2](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/halo2.sage)
+    * [curve trees](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/curve_tree.sage)
+    * [FFT](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/fft)
+    * [groth16](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/groth16)
+    * [bulletproofs](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/zk/bltprf)
+* [Poseidon hash](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/poseidon)
+* [x3dh](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/x3dh)
   double ratchet algorithm used in signal.
-* [Various EC math](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/ec)
+* [Various EC math](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/ec)
   such as valuations, riemann-roch basis, hyperelliptic curves, divisor reduction.

+ 1 - 1
doc/src/dev/contrib/contrib.md

@@ -95,7 +95,7 @@ This process will run infinitely until a crash occurs or until it is cancelled b
 
 If you are able to trigger a crash, get in touch with the DarkFi team via irc.
 
-Further information on fuzzing in DarkFi is available [here](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/fuzz/README.md).
+Further information on fuzzing in DarkFi is available [here](https://git.dark.fi/darkrenaissance/darkfi/src/master/fuzz/README.md).
 
 ## Troubleshooting
 

+ 6 - 6
doc/src/dev/contrib/hiring.md

@@ -55,12 +55,12 @@ us see people can actually write code. It's the only thing we care about.
 Finally here we discuss specifics. You will have been assigned a team leader who
 will arrange with you the details.
 
-We offer fully anon employment. Make sure you make an
-[anon account on codeberg][codeberg-anon] over Tor, and also connect to the
+We offer fully anon employment. Make sure you protect your repo by
+executing git actions over [Tor][tor-anon], and also connect to the
 DarkIRC chat over Tor too. You can even make an anon email with
-[onionmail.org](https://onionmail.org) to email us with. We pay in Monero (XMR)
-or stablecoin USDT. You are responsible for any legal obligations incurred by
-your host country.
+[onionmail.org](https://onionmail.org) to email us with. We pay in
+Monero (XMR) or stablecoin USDT. You are responsible for any legal
+obligations incurred by your host country.
 
 We value people who have initiative. We value this so highly in fact that even
 if someone is less skilled but shows the ability to learn, we will welcome them
@@ -91,5 +91,5 @@ topics to discuss.
 [DarkIRC chat]: ../../misc/darkirc/darkirc.md
 [tau]: ../../misc/tau.md
 [contribute]: contrib.md
-[codeberg-anon]: tor.md
+[tor-anon]: tor.md
 

+ 76 - 54
doc/src/dev/contrib/tor.md

@@ -2,11 +2,11 @@
 
 ... or how to setup Tor git access with darkfi repo.
 
-We assume you have tor installed locally and access to Tor browser.
-You can check your tor daemon is running by running this command:
+We assume you have tor installed locally. You can check your tor daemon
+is running by running this command:
 
-```
-curl --socks5-hostname 127.0.0.1:9050 https://myip.wtf/text
+```shell
+$ curl --socks5-hostname 127.0.0.1:9050 https://myip.wtf/text
 ```
 
 <!--
@@ -22,87 +22,109 @@ print(response.content)
 ```
 -->
 
-## Setting Up Codeberg
-
-Follow these steps:
-
-1. Generate a new SSH key using the command:
-   `ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_tor -C foo@foo`
-2. Next use Tor Browser to make a codeberg account, and get this added to the
-   darkfi repo.
-3. Add your key `.ssh/id_tor.pub` to your account on codeberg.
-4. Verify your key by signing the message:
-   `echo -n 'XXX' | ssh-keygen -Y sign -n gitea -f ~/.ssh/id_tor`
-   where XXX is the string given on codeberg.
+## Setting Up Git Repo
 
-## SSH Config
+Generate a brand new SSH key using the command:
 
-You will need BSD netcat installed. Optionally you could use GNU netcat, but
-the flags are different; replace `-x` with `--proxy ... --proxy-type=socks5`.
+```shell
+$ ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/anon_tor -C x@x
+```
 
-Add a section in `~/.ssh/config` like this:
+Configure a new SSH host by adding a section in `~/.ssh/config` like
+this:
 
-```
-Host codeberg-tor
+```text
+Host darkfi-git-tor
     # Use this for debugging errors
     #LogLevel VERBOSE
     User git
-    HostName codeberg.org
+    HostName moxcgg4oghre3tphoxzkywoutcyqogzntb7webitaxzqtd6i43gkjcqd.onion
     IdentitiesOnly yes
-    IdentityFile ~/.ssh/id_tor
+    IdentityFile ~/.ssh/anon_tor
     ProxyCommand nc -x 127.0.0.1:9050 %h %p
 ```
 
-Then test it is working with `ssh -T git@codeberg-tor -vvv`.
-Be sure to verify the signatures match those on the codeberg website.
-To see them, copy this link into Tor Browser:
-https://docs.codeberg.org/security/ssh-fingerprint/
-
-## Adding the Git Remote
+> Note:
+>
+> You will need BSD netcat installed. Optionally you could use GNU
+> netcat, but the flags are different; replace `-x` with
+> `--proxy ... --proxy-type=socks5`.
 
-The last step is routine:
+Clone a fresh repo:
 
-```
-git remote add codeberg git@codeberg-tor:darkrenaissance/darkfi.git
-# Optionally delete the github origin:
-git remote rm origin
+```shell
+$ git clone git@darkfi-git-tor:darkrenaissance/darkfi
+$ cd darkfi
 ```
 
-And then finally it should work. Make sure you use `git push -u codeb master`
-to update your main source to codeberg over Tor. You don't want to accidentally
-git push to github and dox yourself.
+It is highly recomended to remove older repo folders. You don't want to
+accidentally `git push` to a clearnet remote and dox yourself.
 
 ## Git Config
 
-Lastly you can still be identified by your machine's Git config, if pushing
-to external repos on clearnet.
-However we can set per project settings, so inside the darkfi repo, run
-these commands:
+You can still be identified by your machine's Git config, if pushing to
+external repos on clearnet. However, we can set per project settings,
+so inside the darkfi repo, run these commands:
 
-```
-git config user.name darkfi
-git config user.email darkfi@darkfi
+```shell
+$ git config --local user.name x
+$ git config --local user.email x@x
+$ git config --local commit.gpgsign false
 ```
 
-Verify it has been set with `cat .git/config`.
+Verify it has been set with:
+
+```shell
+$ cat .git/config
+```
 
 ### Commit Timestamps
 
-`git` commits contain two timestamps, the `AuthodDate` and the `CommitDate`.
-These timestamps are retrieved from the system and contain the configured
-timezone. If you want to exclude the timezone information from your commits,
-you may create a `git` alias to use:
+`git` commits contain two timestamps, the `AuthodDate` and the
+`CommitDate`. These timestamps are retrieved from the system and
+contain the configured timezone. If you want to exclude the timezone
+information from your commits, you may create a `git` alias to use:
 
-```
-git config --global alias.utc-commit \
+```shell
+$ git config --global alias.utc-commit \
 '!GIT_COMMITTER_DATE="$(date --utc +%Y-%m-%dT%H:%M:%S%z)" git commit --date="$(date --utc +%Y-%m-%dT%H:%M:%S%z)"'
 ```
 
 This allows to explictly use `UTC` date on commits by executing:
 
-```
-git utc-commit -m "{Commit message}"
+```shell
+$ git utc-commit -m "{Commit message}"
 ```
 
 Alternative, you can use the same alias in your shell configuration for
 `git commit` to always use `UTC` date on all your repos commits.
+
+In order to ensure that all `git` operations are using a `UTC`
+timestamp you can set your terminal to `UTC` date by executing:
+
+```shell
+$ export TZ=UTC0
+```
+
+Alternative, add the command in your shell configuration so all your
+terminal instances always use `UTC` date by default.
+
+## Cargo config
+
+When building `rust` projects `cargo` is used to fetch external crates.
+To configure it to use tor add a section in `~/.cargo/config` like
+this:
+
+```toml
+[http]
+proxy = "socks5h://localhost:9050"
+```
+
+Now even building goes through tor and a developer never touches
+clearnet at any point.
+
+> Note:
+>
+> If you are using VMs/containers for building, ensure that they also
+> go through tor, as above configuration is only relevant for native
+> system building.

+ 1 - 1
doc/src/dev/dev.md

@@ -125,7 +125,7 @@ and we also have to compile `sqlcipher` on our own.
 And now we should be able to build a statically linked binary:
 
 ```
-# git clone https://codeberg.org/darkrenaissance/darkfi -b master --depth 1
+# git clone https://git.dark.fi/darkrenaissance/darkfi -b master --depth 1
 # cd darkfi
 ## Uncomment RUSTFLAGS in the main Makefile
 # sed -e 's,^#RUSTFLAGS ,RUSTFLAGS ,' -i Makefile

+ 5 - 5
doc/src/glossary/glossary.md

@@ -5,13 +5,13 @@
   commitment
 	* [Explainer](https://medium.com/coinmonks/zero-knowledge-proofs-um-what-a092f0ee9f28)
 * zkas: the programming language in which you can write zk circuits
-	* [zkas compiler](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/zkas)
-        * [An example circuit written in zkas](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/example/simple.zk)
+	* [zkas compiler](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/zkas)
+        * [An example circuit written in zkas](https://git.dark.fi/darkrenaissance/darkfi/src/master/example/simple.zk)
 * zkvm: the virtual machine in which zkas circuit binary is run
 	* it runs during proof generation
-		* [Rust example](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/tests/zkvm_opcodes.rs)
-		* [Python example](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/bin/zkrunner/zkrunner.py#L141-L160)
+		* [Rust example](https://git.dark.fi/darkrenaissance/darkfi/src/master/tests/zkvm_opcodes.rs)
+		* [Python example](https://git.dark.fi/darkrenaissance/darkfi/src/master/bin/zkrunner/zkrunner.py#L141-L160)
 * zkrunner: a Python script which allows you, instead of providing
   circuit, witness, public inputs and code to generate/verify proof,
   you provide circuit, witness
-	* [Example](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/bin/zkrunner/zkrunner.py#L180)
+	* [Example](https://git.dark.fi/darkrenaissance/darkfi/src/master/bin/zkrunner/zkrunner.py#L180)

+ 1 - 1
doc/src/learn/dchat/creating-dchatd/accept-addr.md

@@ -3,7 +3,7 @@
 To start receiving `JSON-RPC` requests, we'll need to configure a
 `JSON-RPC` accept address.
 
-We'll add a `rpc` struct ([RpcSettingsOpt](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/rpc/settings.rs))
+We'll add a `rpc` struct ([RpcSettingsOpt](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/rpc/settings.rs))
 containing a `rpc_listen` address to our `Args` struct. It will look
 like this:
 

+ 6 - 6
doc/src/learn/dchat/creating-dchatd/protocols.md

@@ -8,20 +8,20 @@ are automatically activated when nodes connect to eachother on the
 p2p network. Here are examples of two protocols that every node runs
 continuously in the background:
 
-* [ProtocolPing](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/protocol/protocol_ping.rs):
+* [ProtocolPing](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/protocol/protocol_ping.rs):
 sends `ping`, receives `pong`
-* [ProtocolAddress](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/protocol/protocol_address.rs):
+* [ProtocolAddress](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/protocol/protocol_address.rs):
 receives a `get_address` message, sends an `address` message
 
 Under the hood, these protocols have a few similarities:
 
 * They create a subscription to a message type, such as `ping` and `pong`.
-* They implement [ProtocolBase](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/protocol/protocol_base.rs),
+* They implement [ProtocolBase](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/protocol/protocol_base.rs),
 DarkFi's generic protocol trait.
 * They run asynchronously using the
-[ProtocolJobsManager](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/protocol/protocol_jobs_manager.rs).
-* They hold a pointer to [Channel](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/channel.rs) which
-invokes the [MessageSubsystem](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/message_subscriber.rs#L170).
+[ProtocolJobsManager](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/protocol/protocol_jobs_manager.rs).
+* They hold a pointer to [Channel](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/channel.rs) which
+invokes the [MessageSubsystem](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/message_subscriber.rs#L170).
 
 This introduces several generic interfaces that we must use to build
 our custom protocol. In particular:

+ 2 - 2
doc/src/learn/dchat/creating-dchatd/rpc-requests.md

@@ -1,7 +1,7 @@
 # Handling RPC requests
 
 Let's connect `dchatd` up to `JSON-RPC` using DarkFi's [rpc
-module](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/rpc).
+module](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/rpc).
 
 We'll need to implement a trait called `RequestHandler` for our `Dchat`
 struct. `RequestHandler` is an async trait implementing a handler for
@@ -14,7 +14,7 @@ handle for processing incoming JSON-RPC requests that takes a
 `JsonRequest` and returns a `JsonResult`. `JsonRequest` is a
 `JSON-RPC` request object, and `JsonResult` is an enum that wraps
 around a given `JSON-RPC` object type. These types are defined inside
-[jsonrpc.rs](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/rpc/jsonrpc.rs).
+[jsonrpc.rs](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/rpc/jsonrpc.rs).
 
 We'll use `handle_request` to run a match statement on
 `JsonRequest.method`.

+ 1 - 1
doc/src/learn/dchat/creating-dchatd/stoppable-task.md

@@ -100,7 +100,7 @@ and calls `stop` on them, safely closing each `JSON-RPC` connection.
 Notice that when we start the `StoppableTask` using
 `rpc.task.clone().start`, we also pass a method called `listen_and_serve`.
 `listen_and_serve` is a method defined in DarkFi's [rpc
-module](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/rpc/server.rs).
+module](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/rpc/server.rs).
 It starts a JSON-RPC server that is bound to the provided rpc settings
 and uses our previously implemented `RequestHandler` to handle incoming
 requests.

+ 1 - 1
doc/src/learn/dchat/dchat.md

@@ -15,4 +15,4 @@ the p2p network, in particular:
 * Creating and subscribing to a custom `Message` type.
 
 The source code for this tutorial can be found at
-[example/dchat](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/example/dchat).
+[example/dchat](https://git.dark.fi/darkrenaissance/darkfi/src/master/example/dchat).

+ 1 - 1
doc/src/learn/dchat/deployment/sessions.md

@@ -6,7 +6,7 @@ network. An inbound node receives connections. An outbound node makes
 connections.
 
 The behavior of these nodes is defined in what is called a
-[Session](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/session/mod.rs#L119).
+[Session](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/session/mod.rs#L119).
 There are five types of sessions: `Manual`, `Inbound`, `Outbound`, `SeedSync` and `Direct`.
 
 There behavior is as follows: 

+ 1 - 1
doc/src/learn/dchat/deployment/settings.md

@@ -2,7 +2,7 @@
 
 To create an inbound and outbound node, we
 will need to configure them using `net` type called
-[Settings](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/settings.rs).
+[Settings](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/settings.rs).
 This type consists of several settings that allow you to configure nodes
 in different ways.
 

+ 2 - 2
doc/src/learn/dchat/deployment/start-stop.md

@@ -50,7 +50,7 @@ Let's take a quick look at the underlying p2p methods we're using here.
 
 ## Start
 
-This is [start](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/p2p.rs#L126):
+This is [start](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/p2p.rs#L126):
 
 ```rust
 /// Starts inbound, outbound, and manual sessions.
@@ -105,7 +105,7 @@ have any connected channels, `run` performs a `SeedSync`.
 
 ## Stop
 
-This is [stop](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/net/p2p.rs#L164).
+This is [stop](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/net/p2p.rs#L164).
 
 ```rust
 /// Stop the running P2P subsystem

+ 1 - 1
doc/src/learn/dchat/deployment/writing-a-daemon.md

@@ -5,7 +5,7 @@ run the p2p network, we'll need to implement our own daemon.  So we'll
 start building `dchat` by creating a daemon that we call `dchatd`.
 
 To do this, we'll make use of a DarkFi macro called
-[async_daemonize](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/util/cli.rs).
+[async_daemonize](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/util/cli.rs).
 
 `async_daemonize`is the standard way of daemonizing darkfi binaries. It
 implements TOML config file configuration, argument parsing and a

+ 1 - 1
doc/src/misc/tau.md

@@ -8,7 +8,7 @@ and all users will have synced tasks.
 ## Install 
 
 ```shell
-% git clone https://codeberg.org/darkrenaissance/darkfi
+% git clone https://git.dark.fi/darkrenaissance/darkfi
 % cd darkfi
 % make taud
 ```

+ 3 - 3
doc/src/spec/contract/money/scheme.md

@@ -183,6 +183,6 @@ in `Burn_V1`.
 For `MoneyFunction::TransferV1`, we have the following functions, in
 order:
 
-* [`money_transfer_get_metadata_v1`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/contract/money/src/entrypoint/transfer_v1.rs#L42)
-* [`money_transfer_process_instruction_v1`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/contract/money/src/entrypoint/transfer_v1.rs#L106)
-* [`money_transfer_process_update_v1`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/contract/money/src/entrypoint/transfer_v1.rs#L258)
+* [`money_transfer_get_metadata_v1`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/contract/money/src/entrypoint/transfer_v1.rs#L42)
+* [`money_transfer_process_instruction_v1`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/contract/money/src/entrypoint/transfer_v1.rs#L106)
+* [`money_transfer_process_update_v1`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/contract/money/src/entrypoint/transfer_v1.rs#L258)

+ 2 - 2
doc/src/testnet/contract.md

@@ -18,7 +18,7 @@ First, open another terminal, clone the template repository and enter
 its directory:
 
 ```shell
-$ git clone https://codeberg.org/darkrenaissance/smart-contract
+$ git clone https://git.dark.fi/darkrenaissance/smart-contract
 $ cd smart-contract
 ```
 
@@ -308,7 +308,7 @@ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
 
 [1]: ../zkas/index.md
 [2]: ../arch/sc/sc.md
-[3]: https://codeberg.org/darkrenaissance/smart-contract
+[3]: https://git.dark.fi/darkrenaissance/smart-contract
 [4]: ../spec/crypto-schemes.md#poseidonhash-function
 [5]: ../zkas/zkas.md
 [6]: ../clients/darkfid_jsonrpc.md

+ 5 - 5
doc/src/zero2darkfi/darkmap.md

@@ -33,7 +33,7 @@ From an end user perspective, they provide a dpath and get a value back.
 
 ```
 provide: darkrenaissance::darkfi::v0_4_1
-get:     0766e910aae7af482885d0a5b05ccb61ae7c1af4 (which is the commit for Darkfi v0.4.1, https://codeberg.org/darkrenaissance/darkfi/commit/0766e910aae7af482885d0a5b05ccb61ae7c1af4)
+get:     0766e910aae7af482885d0a5b05ccb61ae7c1af4 (which is the commit for Darkfi v0.4.1, https://git.dark.fi/darkrenaissance/darkfi/commit/0766e910aae7af482885d0a5b05ccb61ae7c1af4)
 ```
 
 ### Syntax
@@ -70,12 +70,12 @@ All parts except the last resolve to a name registry.
 
 ```
 # Let's begin by building the zkas compiler
-git clone https://github.com/darkrenaissance/darkfi
+git clone https://git.dark.fi/darkrenaissance/darkfi
 cd darkfi && make zkas
 PATH="$PATH:$PWD"
 
 # Pull down the darkmap contract for our learning
-cd ../ && git clone https://github.com/darkrenaissance/darkmap
+cd ../ && git clone https://git.dark.fi/darkrenaissance/darkmap
 ```
 
 ## Tool 1: `ZKAS`, `ZKVM`
@@ -119,7 +119,7 @@ FIXME: perhaps more detailed explanation
 Currently, the infrastructure for deploying non-native contracts is being worked on. 
 So Darkmap was tested by modifying the darkfi validator to deploy it as native contract.
 
-If you like to try it out, take a look at the [pull request draft](https://codeberg.org/darkrenaissance/darkfi/pulls/170/files#diff-1592d061816d5a4da17e089758e15df75ae1ab963b2288e6d84b8f29b06f7d4f).
+If you like to try it out, take a look at the [pull request draft](https://git.dark.fi/darkrenaissance/darkfi/pulls/170/files#diff-1592d061816d5a4da17e089758e15df75ae1ab963b2288e6d84b8f29b06f7d4f).
 
 In particular:
 * `src/consensus/validator.rs`
@@ -133,7 +133,7 @@ For now, the best place to learn is to learn from the darkmap pull request draft
 
 * Where are the states stored?
 * What are the host-provided functions you can call from within the contract?
-	* https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/runtime/import
+	* https://git.dark.fi/darkrenaissance/darkfi/src/master/src/runtime/import
 * What are the tools?
 	* zkas
         * zkvm

+ 2 - 2
doc/src/zkas/bincode.md

@@ -43,7 +43,7 @@ NUM_LITERALS [LITERAL_NAME] ...
 ```
 
 Integers in the binary are encoded using variable-integer encoding.
-See the [`serial`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/serial/src/lib.rs)
+See the [`serial`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/serial/src/lib.rs)
 crate and module for our Rust implementation.
 
 ## Sections
@@ -245,5 +245,5 @@ Line   Source       Opcode                 Variable             Value
 ## Decoding the bincode
 
 An example decoder implementation can be found in zkas'
-[`decoder.rs`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/zkas/decoder.rs)
+[`decoder.rs`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/zkas/decoder.rs)
 module.

+ 4 - 4
doc/src/zkas/zkas.md

@@ -2,16 +2,16 @@ zkas
 ====
 
 zkas is a compiler for the Halo2 zkVM language used in
-[DarkFi](https://codeberg.org/darkrenaissance/darkfi).
+[DarkFi](https://git.dark.fi/darkrenaissance/darkfi).
 
 The current implementation found in the DarkFi repository inside
-[`src/zkas`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/zkas)
+[`src/zkas`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/zkas)
 is the reference compiler and language implementation. It is a
 toolchain consisting of a lexer, parser, static and semantic analyzers,
 and a binary code compiler.
 
 The
-[`main.rs`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/bin/zkas/src/main.rs)
+[`main.rs`](https://git.dark.fi/darkrenaissance/darkfi/src/master/bin/zkas/src/main.rs)
 file shows how this toolchain is put together to produce binary code
 from source code.
 
@@ -19,7 +19,7 @@ from source code.
 
 The main part of the compilation happens inside the parser. New opcodes
 can be added by extending
-[`opcode.rs`](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/zkas/opcode.rs).
+[`opcode.rs`](https://git.dark.fi/darkrenaissance/darkfi/src/master/src/zkas/opcode.rs).
 
 ```rust
 {{#include ../../../bin/zkas/src/main.rs:zkas}}

+ 1 - 1
example/dchat/dchatd/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.4.1"
 homepage = "https://dark.fi"
 description = "Simple chat app p2p daemon used to document DarkFi networking code"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
example/p2pdebug/Cargo.toml

@@ -3,7 +3,7 @@ name = "p2pdebug"
 version = "0.4.1"
 homepage = "https://dark.fi"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
script/ping/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.1.0"
 homepage = "https://dark.fi"
 description = "Ping tool for servers"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 2 - 2
script/research/antisapling/antisapling.md

@@ -20,7 +20,7 @@
 
 - Reward and value:
     HE is already used to validate minted_coin_value = burnt_coin_value + reward using their value commitments, so no need to constrain it.
-    Code block: https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/contract/consensus/src/entrypoint/proposal_reward_v1.rs#L135-L143
+    Code block: https://git.dark.fi/darkrenaissance/darkfi/src/master/src/contract/consensus/src/entrypoint/proposal_reward_v1.rs#L135-L143
 
 - Headstart:
     Constrain headstart in reward proof and validators calculate it ad-hoc to verify it.
@@ -30,5 +30,5 @@
 
 - Lottery seed:
     Minted coin serial to be derived from burnt coin serial: minted_serial = poseidon_hash(NONCE_PREFIX, secret_key, burnt_coin_serial, ZERRO).
-    Deterministic function code block: https://codeberg.org/darkrenaissance/darkfi/src/branch/master/src/consensus/lead_coin.rs#L231-L240
+    Deterministic function code block: https://git.dark.fi/darkrenaissance/darkfi/src/master/src/consensus/lead_coin.rs#L231-L240
     Use burnt coin serial to calculate lottery seed in proof: seed = poseidon_hash(SEED_PREFIX, burnt_serial, ZERO);

+ 1 - 1
script/research/blockchain-storage-metrics/Cargo.toml

@@ -3,7 +3,7 @@ name = "blockchain-storage-metrics"
 version = "0.4.1"
 description = "Experimental script to grab blocks from darkfid and measure their usage."
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 2 - 2
script/research/bulletproof-mpc/README.md

@@ -39,5 +39,5 @@
 [^9]: https://arxiv.org/pdf/2112.04581.pdf
 [^10]: https://eprint.iacr.org/2021/1530
 [^11]: https://github.com/renegade-fi/mpc-bulletproof/pull/14
-[^12]: https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/mpc
-[^13]: https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/bulletproof-mpc
+[^12]: https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/mpc
+[^13]: https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/bulletproof-mpc

+ 1 - 1
script/research/crypsinous/linearindependence/README.md

@@ -28,7 +28,7 @@ excluding use of floats, and division, only +,-,* are allowed.
 
 # comparison of original target to approximation
 
-![approximation comparison to orignal](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/crypsinous/linearindependence/target.png?raw=true)
+![approximation comparison to orignal](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/crypsinous/linearindependence/target.png?raw=true)
 
 # consequences
 

+ 1 - 1
script/research/dam/dam-cli/Cargo.toml

@@ -3,7 +3,7 @@ name = "dam-cli"
 version = "0.4.1"
 description = "CLI-utility to control a Denial-of-service Analysis Multitool daemon."
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
script/research/dam/damd/Cargo.toml

@@ -3,7 +3,7 @@ name = "damd"
 version = "0.4.1"
 description = "Denial-of-service Analysis Multitool daemon."
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
script/research/generic-node/Cargo.toml

@@ -3,7 +3,7 @@ name = "generic-node"
 version = "0.4.1"
 description = "Generic node daemon to test out design choices before integrating them to core nodes."
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
script/research/gg/Cargo.toml

@@ -6,7 +6,7 @@ Genesis Generator, a command-line utility to generate,\
 display and verify a base64 encoded Darkfi genesis block\
 """
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 3 - 3
script/research/lotterysim/README.md

@@ -16,17 +16,17 @@ with $k_1 = k_p + K_i + K_d$,  $k_2 = -K_p -2K_d$,  $k_3 = K_d$, and e is the er
 # simulation criterion
 find $K_p$, $k_i$, $K_d$ for highest accuracy running the simulation on N trials, of random number of nodes, starting with random airdrop (that all sum to total network stake), running for random runing time.
 
-![alt text](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/lotterysim/img/heuristics.png?raw=true)
+![alt text](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/lotterysim/img/heuristics.png?raw=true)
 
 notice that best parameters are spread out in the search space, picking the highest of which, and running the simulation, running for 600 slots, result in with >36% accuracy
 
-![alt text](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/lotterysim/img/f_history_processed.png?raw=true)
+![alt text](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/lotterysim/img/f_history_processed.png?raw=true)
 
 # comparing range of target values between
 
 notice below that both y,T in the pallas field, and simulation have same range.
 
-![alt text](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/lotterysim/img/lottery_dist.png?raw=true)
+![alt text](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/lotterysim/img/lottery_dist.png?raw=true)
 
 # conclusion
 

+ 1 - 1
script/research/lotterysim/reports/staking.md

@@ -59,7 +59,7 @@ The probability of a pool of N% stake to win the leadership at any slot is:
 \end{align*}
 
 
-![alt text](https://codeberg.org/darkrenaissance/darkfi/src/branch/master/script/research/lotterysim/reports/stake.png?raw=true)
+![alt text](https://git.dark.fi/darkrenaissance/darkfi/src/master/script/research/lotterysim/reports/stake.png?raw=true)
 
 ## Example
 

+ 1 - 1
script/research/pallas_constants/Cargo.toml

@@ -3,7 +3,7 @@ name = "pallas_constants"
 version = "0.4.1"
 description = "Command-line tool to generate pallas::Base constants"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
script/research/tx-replayer/Cargo.toml

@@ -3,7 +3,7 @@ name = "tx-replayer"
 version = "0.1.0"
 description = "CLI-utility to replay transactions for analysis"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2024"
 

+ 2 - 2
script/research/zkvm-metering/generator/Cargo.toml

@@ -3,7 +3,7 @@ name = "generator"
 version = "0.1.0"
 description = "CLI-utility to generate zk proofs for analyzing zkvm opcodes resource usage"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2024"
 
@@ -23,4 +23,4 @@ halo2_gadgets = "0.5.0"
 
 [patch.crates-io]
 halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v050"}
-halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v050"}
+halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v050"}

+ 2 - 2
script/research/zkvm-metering/verifier/Cargo.toml

@@ -3,7 +3,7 @@ name = "verifier"
 version = "0.1.0"
 description = "CLI-utility to verify zk proofs for analysis"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2024"
 
@@ -19,4 +19,4 @@ halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v050"}
 halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v050"}
 
 [profile.release]
-debug = true
+debug = true

+ 1 - 1
src/sdk/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.0"
 homepage = "https://dark.fi"
 description = "SDK used for developing smart contracts on DarkFi"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
src/sdk/python/Cargo.toml

@@ -6,7 +6,7 @@ edition = "2021"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
 license = "AGPL-3.0-only"
 homepage = "https://dark.fi"
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 
 [lib]
 name = "darkfi_sdk"

+ 1 - 1
src/serial/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.1"
 homepage = "https://dark.fi"
 description = "DarkFi serialization library"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
src/serial/derive-internal/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.1"
 homepage = "https://dark.fi"
 description = "Internal crate for serialization derive macros"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"
 

+ 1 - 1
src/serial/derive/Cargo.toml

@@ -4,7 +4,7 @@ version = "0.5.1"
 homepage = "https://dark.fi"
 description = "Crate for serialization derive macros"
 authors = ["Dyne.org foundation <foundation@dyne.org>"]
-repository = "https://codeberg.org/darkrenaissance/darkfi"
+repository = "https://git.dark.fi/darkrenaissance/darkfi"
 license = "AGPL-3.0-only"
 edition = "2021"