feat(opentimestamps): updates data model
This commit is contained in:
parent
3b447dcf6a
commit
85bf907f54
@ -18,7 +18,7 @@ export interface Meta {
|
|||||||
docSignatures: { [key: `npub1${string}`]: string }
|
docSignatures: { [key: `npub1${string}`]: string }
|
||||||
exportSignature?: string
|
exportSignature?: string
|
||||||
keys?: { sender: string; keys: { [user: `npub1${string}`]: string } }
|
keys?: { sender: string; keys: { [user: `npub1${string}`]: string } }
|
||||||
timestamps?: Timestamp[]
|
timestamps?: OpenTimestamp[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateSignatureEventContent {
|
export interface CreateSignatureEventContent {
|
||||||
@ -40,23 +40,23 @@ export interface Sigit {
|
|||||||
meta: Meta
|
meta: Meta
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Timestamp {
|
export interface OpenTimestamp {
|
||||||
nostrId: string
|
nostrId: string
|
||||||
timestamp: string
|
value: string
|
||||||
verification?: TimestampVerification
|
verification?: OpenTimestampVerification
|
||||||
signature?: string
|
signature?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TimestampVerification {
|
export interface OpenTimestampVerification {
|
||||||
height: number
|
height: number
|
||||||
|
timestamp: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TimestampUpgradeVerifyResponse {
|
export interface OpenTimestampUpgradeVerifyResponse {
|
||||||
value: Timestamp
|
timestamp: OpenTimestamp
|
||||||
upgraded: boolean
|
upgraded: boolean
|
||||||
isComplete?: boolean
|
|
||||||
verified?: boolean
|
verified?: boolean
|
||||||
verification?: TimestampVerification
|
verification?: OpenTimestampVerification
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UserAppData {
|
export interface UserAppData {
|
||||||
|
Loading…
Reference in New Issue
Block a user