Building the foundational components for the Credence decentralized identity and trust score network. This Core Infrastructure will provide shared libraries, schemas, and primitives that all other teams depend on.
go mod init github.com/ParichayaHQ/credence
)/
├── go.mod
├── go.sum
├── README.md
├── CLAUDE.md
├── cmd/ # Service entry points (for future teams)
├── internal/ # Private packages
│ ├── events/ # Event schemas and canonicalization
│ ├── crypto/ # Cryptographic primitives
│ ├── cid/ # Content addressing
│ ├── didvc/ # DID and VC handling
│ ├── config/ # Configuration management
│ └── testutil/ # Test utilities
├── pkg/ # Public packages for other services
│ ├── types/ # Common data types
│ └── interfaces/ # Service interfaces
├── api/ # API definitions (gRPC/HTTP)
│ ├── proto/ # Protocol buffer definitions
│ └── http/ # OpenAPI specifications
├── scripts/ # Build and deployment scripts
└── tests/ # Integration tests
github.com/ipfs/go-cid
- Content addressinggolang.org/x/crypto/ed25519
- Ed25519 signaturesgithub.com/herumi/bls-eth-go-binary
- BLS signaturesgithub.com/lestrrat-go/jwx/v2
- JWT/JWS handlinggithub.com/go-playground/validator/v10
- Validationgithub.com/stretchr/testify
- Testing framework1. Event System (internal/events/
):
2. Cryptographic Primitives (internal/crypto/
):
3. Content Addressing (internal/cid/
):
4. DID/VC Support (internal/didvc/
):
5. Common Types & Interfaces (pkg/
):
6. Testing Framework (internal/testutil/
, tests/
):
PASS: internal/events (canonicalization, validation)
PASS: internal/crypto (Ed25519 operations, random generation)
All tests passing with deterministic behavior verified
The Core Infrastructure is now complete and ready for other development teams to build upon. All interfaces are defined, tested, and documented.