dev #35

Merged
bvbej merged 2 commits from dev into main 2026-02-07 16:04:39 +08:00
Showing only changes of commit 26666c332f - Show all commits

View File

@@ -24,11 +24,11 @@ type Signer interface {
}
type Config struct {
SecretKey string // 对称加密密钥
SignKey string // 签名密钥
TimestampWindow time.Duration // 时间戳允许的时间窗口
EnableTimestamp bool // 是否启用时间戳验证
EnableSignature bool // 是否启用签名
SecretKey string `yaml:"secret_key" json:"secret_key"` // 对称加密密钥
SignKey string `yaml:"sign_key" json:"sign_key"` // 签名密钥
TimestampWindow time.Duration `yaml:"timestamp_window" json:"timestamp_window"` // 时间戳允许的时间窗口
EnableTimestamp bool `yaml:"enable_timestamp" json:"enable_timestamp"` // 是否启用时间戳验证
EnableSignature bool `yaml:"enable_signature" json:"enable_signature"` // 是否启用签名
}
type EncryptedRequest struct {