Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build 0KN Node Docker Image
name: Build Node Docker Image

on:
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
sleep 10
sudo -E make walletshield-logs

- name: Test walletshield
run: ./tests/e2e/walletshield/test.sh
# - name: Test walletshield
# run: ./tests/e2e/walletshield/test.sh

- name: Test walletshield request concurrency
run: ./tests/e2e/walletshield/test-concurrent-requests.sh
# - name: Test walletshield request concurrency
# run: ./tests/e2e/walletshield/test-concurrent-requests.sh

- name: Stop walletshield
run: |
Expand Down
2 changes: 1 addition & 1 deletion apps/walletshield/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/katzenpost/katzenpost/client2/thin"
sConstants "github.com/katzenpost/katzenpost/core/sphinx/constants"

"github.com/0KnowledgeNetwork/opt/server_plugins/cbor_plugins/http_proxy"
"github.com/ZeroKnowledgeNetwork/opt/server_plugins/cbor_plugins/http_proxy"
)

var (
Expand Down
12 changes: 6 additions & 6 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerized Test Networks

This directory provides Makefiles and scripts to set up a local, offline test network for developing
and testing 0KN mix network applications and server-side plugins. The setup leverages a
and testing ZKN mix network applications and server-side plugins. The setup leverages a
Podman-compatible `docker-compose` configuration for simulating a Katzenpost network environment.

The goal is to support core development workflows by enabling local testing of both client and
Expand All @@ -10,14 +10,14 @@ server mix network components in isolated, controlled conditions.
There are two Makefiles available, each corresponding to a different PKI.

- **`Makefile`:** (Default) Manages a local test network using Katzenpost’s voting PKI.
- **`Makefile.appchain`:** Uses 0KN’s ZKAppChain PKI.
- **`Makefile.appchain`:** Uses ZKN’s ZKAppChain PKI.

## Voting PKI

This setup, managed by the default `Makefile`, covers 0KN-specifics and proxies other targets to
This setup, managed by the default `Makefile`, covers ZKN-specifics and proxies other targets to
Katzenpost's `docker/Makefile`. For additional details, refer to the [Katzenpost Docker Test
Network documentation](https://github.com/katzenpost/katzenpost/tree/main/docker). The voting PKI
functionality offers less complex local testing of 0KN mix plugins and client apps that do not
functionality offers less complex local testing of ZKN mix plugins and client apps that do not
require the appchain.

## Appchain PKI
Expand All @@ -32,8 +32,8 @@ appchain-agent, utilizing UNIX domain sockets for communication.

To run the Appchain PKI network, ensure the following components are available:

- [appchain-agent](https://github.com/0KnowledgeNetwork/appchain-agent) Docker image
- An operational 0KN ZKAppChain
- [appchain-agent](https://github.com/ZeroKnowledgeNetwork/appchain-agent) Docker image
- An operational ZKN ZKAppChain

### Example Workflow

Expand Down
4 changes: 2 additions & 2 deletions docker/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ COPY . /src
# Build Katzenpost components
RUN --mount=type=cache,target="${GOCACHE}" \
mkdir /dest \
# clone 0KN opt-specific katzenpost branch, if one does not exist
# clone opt-specific katzenpost branch, if one does not exist
&& if [ ! -d "${KATZENPOST_DIR}" ]; then make katzenpost_dir=${KATZENPOST_DIR} -C /src/docker clone-katzenpost ; fi \
# a function to build and move the binary
&& build() { cd ${KATZENPOST_DIR}/$1 ; b=$(basename $1) ; go build ${GO_BUILD_OPTS} ; chmod u+x $b ; mv $b /dest/$2; } \
Expand All @@ -58,7 +58,7 @@ RUN --mount=type=cache,target="${GOCACHE}" \
&& build panda/server/cmd/panda_server panda_server \
&& build server_plugins/cbor_plugins/echo-go echo_server

# Build 0KN mix network components
# Build ZKN mix network components
RUN --mount=type=cache,target="${GOCACHE}" \
# a function to build and move the binary
build() { cd /src/$1 ; b=$(basename $1) ; go build ${GO_BUILD_OPTS} ; chmod u+x $b ; mv $b /dest/$2; } \
Expand Down
4 changes: 2 additions & 2 deletions docker/node/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ VOLUME_MIXNET=/tmp/mix

DIR_BASE=/mixnet
DIR_BIN=/opt/zkn
IMAGE_AGENT=ghcr.io/0knowledgenetwork/appchain-agent:latest
IMAGE_NODE=ghcr.io/0knowledgenetwork/node:latest
IMAGE_AGENT=ghcr.io/zeroknowledgenetwork/appchain-agent:latest
IMAGE_NODE=ghcr.io/zeroknowledgenetwork/node:latest
URL_APPCHAIN_INDEXER=http://localhost:8081/graphql
URL_APPCHAIN_SEQUENCER=http://localhost:8080/graphql
URL_APPCHAIN_PROCESSOR=http://localhost:8082/graphql
Expand Down
2 changes: 1 addition & 1 deletion genconfig/cmd/genconfig/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/0KnowledgeNetwork/opt/genconfig"
"github.com/ZeroKnowledgeNetwork/opt/genconfig"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions genconfig/genconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/katzenpost/katzenpost/core/sphinx/geo"
sConfig "github.com/katzenpost/katzenpost/server/config"

zknConfig "github.com/0KnowledgeNetwork/opt/genconfig/config"
zknConfig "github.com/ZeroKnowledgeNetwork/opt/genconfig/config"
)

const (
Expand Down Expand Up @@ -370,7 +370,7 @@ func (s *katzenpost) genNodeConfig(identifier string, isGateway bool, isServiceN
s.hasProxy = true
}

// 0KN JSON RPC - HTTP Proxy
// ZKN JSON RPC - HTTP Proxy
httpProxyCfg := &sConfig.CBORPluginKaetzchen{
Capability: "http_proxy",
Endpoint: "http_proxy",
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/0KnowledgeNetwork/opt
module github.com/ZeroKnowledgeNetwork/opt

go 1.23.0

require (
github.com/0KnowledgeNetwork/appchain-agent/clients/go v0.0.0-20250108045135-72cb54760c56
github.com/BurntSushi/toml v1.4.0
github.com/ZeroKnowledgeNetwork/appchain-agent/clients/go v0.0.0-20250320061231-774b32400141
github.com/carlmjohnson/versioninfo v0.22.5
github.com/charmbracelet/log v0.4.0
github.com/fxamacker/cbor/v2 v2.7.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek=
filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns=
filippo.io/mlkem768 v0.0.0-20240221181710-5ce91625fdc1 h1:xbdqh5aDZeO0XqW896qVjKnAqRji9nkIwmsBEEbCA10=
filippo.io/mlkem768 v0.0.0-20240221181710-5ce91625fdc1/go.mod h1:mIEHrcJ2xBlJRQwnRO0ujmZ+Rt6m6eNeCPq8E3Wkths=
github.com/0KnowledgeNetwork/appchain-agent/clients/go v0.0.0-20250108045135-72cb54760c56 h1:CX9n4//lUS6bhHfUJEKPKmY/KFitHfmIn6YYFc3y8Tk=
github.com/0KnowledgeNetwork/appchain-agent/clients/go v0.0.0-20250108045135-72cb54760c56/go.mod h1:sMFBunupwopr9TDPw5bxUrs1mSYDn2QPF/vFI7gvWwU=
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/ZeroKnowledgeNetwork/appchain-agent/clients/go v0.0.0-20250320061231-774b32400141 h1:Bzu2TizLmnFrUSlmQg+yJigXpFz3DRYhxjUih2LuAcg=
github.com/ZeroKnowledgeNetwork/appchain-agent/clients/go v0.0.0-20250320061231-774b32400141/go.mod h1:Vs5ELDdDNNQDSEhEKs4UNlujZkTQaW8jCtfjlOCHDno=
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/carlmjohnson/versioninfo v0.22.5 h1:O00sjOLUAFxYQjlN/bzYTuZiS0y6fWDQjMRvwtKgwwc=
Expand Down
2 changes: 1 addition & 1 deletion pki/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/carlmjohnson/versioninfo"

"github.com/0KnowledgeNetwork/opt/pki/config"
"github.com/ZeroKnowledgeNetwork/opt/pki/config"
"github.com/katzenpost/katzenpost/core/compat"
)

Expand Down
2 changes: 1 addition & 1 deletion pki/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/katzenpost/katzenpost/core/utils"
"github.com/katzenpost/katzenpost/http/common"

"github.com/0KnowledgeNetwork/opt/pki/config"
"github.com/ZeroKnowledgeNetwork/opt/pki/config"
)

// ErrGenerateOnly is the error returned when the server initialization
Expand Down
4 changes: 2 additions & 2 deletions pki/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/katzenpost/katzenpost/core/sphinx/constants"
"github.com/katzenpost/katzenpost/core/worker"

"github.com/0KnowledgeNetwork/appchain-agent/clients/go/chainbridge"
"github.com/0KnowledgeNetwork/opt/pki/config"
"github.com/ZeroKnowledgeNetwork/appchain-agent/clients/go/chainbridge"
"github.com/ZeroKnowledgeNetwork/opt/pki/config"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pki/state_chain_comm.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/katzenpost/hpqc/sign"
"github.com/katzenpost/katzenpost/core/pki"

"github.com/0KnowledgeNetwork/appchain-agent/clients/go/chainbridge"
"github.com/0KnowledgeNetwork/opt/pki/config"
"github.com/ZeroKnowledgeNetwork/appchain-agent/clients/go/chainbridge"
"github.com/ZeroKnowledgeNetwork/opt/pki/config"
)

func (s *state) chNodesGet(name string) (*chainbridge.Node, error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/katzenpost/katzenpost/core/log"
"github.com/katzenpost/katzenpost/server/cborplugin"

"github.com/0KnowledgeNetwork/opt/server_plugins/cbor_plugins/http_proxy"
"github.com/ZeroKnowledgeNetwork/opt/server_plugins/cbor_plugins/http_proxy"
)

// Note: UserForwardPayloadLength should match the same value passed to genconfig.
Expand Down