owpengram-server/internal/domain/temp_auth_key.go
2026-09-01 12:06:31 +03:00

19 lines
570 B
Go

package domain
// TempAuthKeyBinding 是 auth.bindTempAuthKey 的持久化记录。
type TempAuthKeyBinding struct {
TempAuthKeyID [8]byte
PermAuthKeyID int64
Nonce int64
TempSessionID int64
ExpiresAt int
EncryptedMessage []byte
}
// TempAuthKeyBindingResult is the exact auth-key default committed by the
// temp-to-permanent binding transaction. LayerObservationID is the durable
// ordering token; zero denotes the legacy unordered default.
type TempAuthKeyBindingResult struct {
Layer int
LayerObservationID int64
}