feat: add key_version and hkdf_salt columns to UserWallet

This commit is contained in:
2026-03-23 10:36:50 +09:00
parent d46ba47c63
commit 81214d42e5

View File

@@ -17,4 +17,6 @@ type UserWallet struct {
Address string `json:"address" gorm:"type:varchar(40);uniqueIndex;not null"`
EncryptedPrivKey string `json:"-" gorm:"type:varchar(512);not null"`
EncNonce string `json:"-" gorm:"type:varchar(48);not null"`
KeyVersion int `json:"-" gorm:"type:tinyint;default:1;not null"`
HKDFSalt string `json:"-" gorm:"type:varchar(32)"` // 16 bytes hex, nullable for v1
}