Skip to content

Organization Blockchain Notarization #195

@Josephrp

Description

@Josephrp

Type: Task
Priority: P0 (Critical)
Labels: task, backend, blockchain, compliance
Parent Issue: #XXX (OpenFin & CDM Compliance Enhancements)
Estimated Effort: 1 week


Description

Update NotarizationService to use organization blockchains for all critical operations, with fallback to main chain.

Tasks

  • Update NotarizationService (app/services/notarization_service.py)

    • Update create_notarization() to accept organization_id
    • Implement _notarize_on_org_blockchain() method
    • Get organization blockchain config from OrganizationContextService
    • Use organization blockchain if available, otherwise main chain
    • Store organization_id in NotarizationRecord
  • Update NotarizationRecord Model (app/db/models.py)

    • Add organization_id field (Integer, FK, nullable)
    • Add blockchain_type field (String): "organization" or "main"
    • Add blockchain_network field (String)
    • Create Alembic migration
  • Update all notarization calls

    • DealSignatureService - use organization blockchain
    • DocumentService - use organization blockchain
    • SecuritizationService - use organization blockchain

Dependencies

  • OrganizationContextService (✅ Already implemented)
  • BlockchainService (✅ Already implemented)
  • Organization blockchain deployments (see #XXX)

Created: 2026-01-26
Status: Open

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions