32 lines
734 B
V
32 lines
734 B
V
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
|
|
} |