Skip to content

P2P Trading: DEG Plugins (Ledger Recorder)#191

Open
ameetdesh wants to merge 2 commits intomainfrom
p2p-trading-plugins
Open

P2P Trading: DEG Plugins (Ledger Recorder)#191
ameetdesh wants to merge 2 commits intomainfrom
p2p-trading-plugins

Conversation

@ameetdesh
Copy link
Collaborator

@ameetdesh ameetdesh commented Mar 4, 2026

Summary

Modular PR 2/3 from #160 — focused on plugins and build infrastructure.

  • degledgerrecorder: Go plugin that records energy trade transactions to a ledger service, with beckn payload signing
  • Rego policy: P2P trading interdiscom policy file with domain validation, version checks, and trade-specific rules
  • Build: Dockerfile for building onix-adapter with DEG plugins + multi-arch build script

Files (19 changed)

  • plugins/degledgerrecorder/ — Ledger recorder plugin (Go)
  • plugins/go.mod, plugins/go.sum — Go module dependencies
  • specification/policies/p2p-trading-interdiscom.rego — OPA policy rules
  • build/ — Dockerfile, README, multi-arch build script

Related PRs

Test plan

  • Run go test ./... in plugins/ directory
  • Verify Rego policy evaluation with sample beckn payloads
  • Test Docker build with build/Dockerfile.onix-adapter-deg

🤖 Generated with Claude Code

…ucture

- degledgerrecorder plugin: records energy trade transactions to a ledger service
- policyenforcer plugin: enforces network policy rules via OPA/Rego evaluation
- P2P trading interdiscom Rego policy file with domain, version, and trade rules
- Dockerfile for building onix-adapter with DEG plugins
- Multi-arch build script for container images
- Go module dependencies for both plugins

Part of PR #160 decomposition — Plugins

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ameetdesh ameetdesh requested a review from nirmay March 9, 2026 19:00
@ameetdesh ameetdesh changed the title P2P Trading: DEG Plugins (Ledger Recorder & Policy Enforcer) P2P Trading: DEG Plugins (Ledger Recorder) Mar 10, 2026
@ravi-prakash-v
Copy link
Contributor

Hi @ameetdesh — this PR (Go plugins, OPA Rego policy, Dockerfile, multi-arch build infra) is outside my review scope (schema/spec/docs). Routing to @nirmay and @anandp504 who are better placed to review the plugin implementation, build pipeline, and policy enforcer logic.

@ravi-prakash-v ravi-prakash-v requested review from anandp504 and removed request for ravi-prakash-v March 10, 2026 21:30
@ameetdesh
Copy link
Collaborator Author

Hi @ameetdesh — this PR (Go plugins, OPA Rego policy, Dockerfile, multi-arch build infra) is outside my review scope (schema/spec/docs). Routing to @nirmay and @anandp504 who are better placed to review the plugin implementation, build pipeline, and policy enforcer logic.

Thanks Ravi. Makes sense..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants