2022-09-30 02:16:59 +00:00
|
|
|
## Nim-Codex
|
|
|
|
## Copyright (c) 2022 Status Research & Development GmbH
|
|
|
|
## Licensed under either of
|
|
|
|
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
|
|
|
## * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
|
|
|
## at your option.
|
|
|
|
## This file may not be copied, modified, or distributed except according to
|
|
|
|
## those terms.
|
|
|
|
|
|
|
|
const
|
2022-12-03 00:00:55 +00:00
|
|
|
# Namespaces
|
|
|
|
CodexMetaNamespace* = "meta" # meta info stored here
|
|
|
|
CodexRepoNamespace* = "repo" # repository namespace, blocks and manifests are subkeys
|
2023-07-20 07:56:28 +00:00
|
|
|
CodexBlockTotalNamespace* = CodexMetaNamespace & "/total" # number of blocks in the repo
|
2022-12-03 00:00:55 +00:00
|
|
|
CodexBlocksNamespace* = CodexRepoNamespace & "/blocks" # blocks namespace
|
|
|
|
CodexManifestNamespace* = CodexRepoNamespace & "/manifests" # manifest namespace
|
2022-09-30 02:16:59 +00:00
|
|
|
CodexBlocksTtlNamespace* = # Cid TTL
|
2022-12-03 00:00:55 +00:00
|
|
|
CodexMetaNamespace & "/ttl"
|
2023-11-14 12:02:17 +00:00
|
|
|
CodexBlockProofNamespace* = # Cid and Proof
|
|
|
|
CodexMetaNamespace & "/proof"
|
2022-12-03 00:00:55 +00:00
|
|
|
CodexDhtNamespace* = "dht" # Dht namespace
|
|
|
|
CodexDhtProvidersNamespace* = # Dht providers namespace
|
|
|
|
CodexDhtNamespace & "/providers"
|
|
|
|
CodexQuotaNamespace* = CodexMetaNamespace & "/quota" # quota's namespace
|