 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			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>
		
			
				
	
	
		
			22 lines
		
	
	
		
			758 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			758 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (c) 2015 The btcsuite developers
 | |
| // Copyright (c) 2015-2023 The Decred developers
 | |
| // Use of this source code is governed by an ISC
 | |
| // license that can be found in the LICENSE file.
 | |
| 
 | |
| package secp256k1
 | |
| 
 | |
| // GenerateSharedSecret generates a shared secret based on a private key and a
 | |
| // public key using Diffie-Hellman key exchange (ECDH) (RFC 5903).
 | |
| // RFC5903 Section 9 states we should only return x.
 | |
| //
 | |
| // It is recommended to securely hash the result before using as a cryptographic
 | |
| // key.
 | |
| func GenerateSharedSecret(privkey *PrivateKey, pubkey *PublicKey) []byte {
 | |
| 	var point, result JacobianPoint
 | |
| 	pubkey.AsJacobian(&point)
 | |
| 	ScalarMultNonConst(&privkey.Key, &point, &result)
 | |
| 	result.ToAffine()
 | |
| 	xBytes := result.X.Bytes()
 | |
| 	return xBytes[:]
 | |
| }
 |