...
This commit is contained in:
32
specs/models_threefold_old/main/signature.v
Normal file
32
specs/models_threefold_old/main/signature.v
Normal file
@@ -0,0 +1,32 @@
|
||||
module circle
|
||||
|
||||
import freeflowuniverse.herolib.hero.models.core
|
||||
|
||||
// Wallet represents a wallet associated with a circle for financial operations
|
||||
pub struct Signature {
|
||||
core.Base
|
||||
pub mut:
|
||||
signature_id u32 // Reference to the user who created the signature @[index]
|
||||
user_id u32 // Reference to the user who created the signature @[index]
|
||||
value string // The actual signature value
|
||||
objectid u32 // Reference to the user who created the signature @[index]
|
||||
objecttype ObjectType // Type of object being signed (e.g.,
|
||||
status SignatureStatus
|
||||
timestamp u64
|
||||
}
|
||||
|
||||
pub enum SignatureStatus {
|
||||
active
|
||||
inactive
|
||||
pending
|
||||
revoked
|
||||
}
|
||||
|
||||
pub enum ObjectType {
|
||||
account
|
||||
dnsrecord
|
||||
membership
|
||||
user
|
||||
transaction
|
||||
kyc
|
||||
}
|
Reference in New Issue
Block a user