Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Network settings
NetworkID uint32 `json:"networkId"`
ChainID string `json:"chainId"`
ListenPort uint16 `json:"listenPort"` // Default: 9630
// ML-KEM configuration
MLKEMEnabled bool `json:"mlkemEnabled"`
MLKEMSecurityLevel int `json:"mlkemSecurityLevel"` // 512, 768, or 1024
MLDSAEnabled bool `json:"mldsaEnabled"`
MLDSASecurityLevel int `json:"mldsaSecurityLevel"` // 44, 65, or 87
// Threshold configuration
DefaultThreshold int `json:"defaultThreshold"` // Default: 3
// Validator configuration
Validators []string `json:"validators"`
ValidatorTimeout time.Duration `json:"validatorTimeout"`
HeartbeatInterval time.Duration `json:"heartbeatInterval"`
// Storage configuration
DataDir string `json:"dataDir"`
MaxKeys int `json:"maxKeys"`
// Security configuration
TLSEnabled bool `json:"tlsEnabled"`
TLSCertPath string `json:"tlsCertPath"`
TLSKeyPath string `json:"tlsKeyPath"`
MTLSEnabled bool `json:"mtlsEnabled"`
MTLSCAPath string `json:"mtlsCaPath"`
// Performance configuration
MaxParallelOps int `json:"maxParallelOps"`
BatchSize int `json:"batchSize"`
// Block configuration
BlockInterval time.Duration `json:"blockInterval"`
MaxTxsPerBlock int `json:"maxTxsPerBlock"`
// Proactive resharing
}
Config holds configuration for the K-Chain VM.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a config with default values.
func ParseConfig ¶
ParseConfig parses configuration from JSON bytes.
Click to show internal directories.
Click to hide internal directories.