feat: add key_version and hkdf_salt columns to UserWallet
This commit is contained in:
@@ -17,4 +17,6 @@ type UserWallet struct {
|
|||||||
Address string `json:"address" gorm:"type:varchar(40);uniqueIndex;not null"`
|
Address string `json:"address" gorm:"type:varchar(40);uniqueIndex;not null"`
|
||||||
EncryptedPrivKey string `json:"-" gorm:"type:varchar(512);not null"`
|
EncryptedPrivKey string `json:"-" gorm:"type:varchar(512);not null"`
|
||||||
EncNonce string `json:"-" gorm:"type:varchar(48);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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user