Integrate BACKBEAT SDK and resolve KACHING license validation
Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -10,10 +10,10 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/config"
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
"chorus.services/bzzz/pkg/storage"
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
"chorus/pkg/config"
|
||||
"chorus/pkg/crypto"
|
||||
"chorus/pkg/storage"
|
||||
"chorus/pkg/ucxl"
|
||||
"github.com/libp2p/go-libp2p/core/host"
|
||||
"github.com/libp2p/go-libp2p/core/peer"
|
||||
)
|
||||
@@ -404,7 +404,7 @@ type StorageEntry struct {
|
||||
func (eds *EncryptedDHTStorage) generateDHTKey(ucxlAddress string) string {
|
||||
// Use SHA256 hash of the UCXL address as DHT key
|
||||
hash := sha256.Sum256([]byte(ucxlAddress))
|
||||
return "/bzzz/ucxl/" + base64.URLEncoding.EncodeToString(hash[:])
|
||||
return "/CHORUS/ucxl/" + base64.URLEncoding.EncodeToString(hash[:])
|
||||
}
|
||||
|
||||
// getDecryptableRoles determines which roles can decrypt content from a creator
|
||||
@@ -610,7 +610,7 @@ func (eds *EncryptedDHTStorage) AnnounceContent(ucxlAddress string) error {
|
||||
}
|
||||
|
||||
// Announce via DHT
|
||||
dhtKey := "/bzzz/announcements/" + eds.generateDHTKey(ucxlAddress)
|
||||
dhtKey := "/CHORUS/announcements/" + eds.generateDHTKey(ucxlAddress)
|
||||
err = eds.dht.PutValue(eds.ctx, dhtKey, announcementData)
|
||||
|
||||
// Audit the announce operation
|
||||
@@ -627,7 +627,7 @@ func (eds *EncryptedDHTStorage) AnnounceContent(ucxlAddress string) error {
|
||||
|
||||
// DiscoverContentPeers discovers peers that have specific UCXL content
|
||||
func (eds *EncryptedDHTStorage) DiscoverContentPeers(ucxlAddress string) ([]peer.ID, error) {
|
||||
dhtKey := "/bzzz/announcements/" + eds.generateDHTKey(ucxlAddress)
|
||||
dhtKey := "/CHORUS/announcements/" + eds.generateDHTKey(ucxlAddress)
|
||||
|
||||
// This is a simplified implementation
|
||||
// In a real system, you'd query multiple announcement keys
|
||||
|
||||
Reference in New Issue
Block a user