;; Document Registry
(define-map documents {doc-id: uint} {owner: principal, title: (string-ascii 100), hash: (buff 32), doc-type: (string-ascii 50), timestamp: uint, verified: bool})
(define-public (register-document (doc-id uint) (title (string-ascii 100)) (hash (buff 32)) (doc-type (string-ascii 50)) (timestamp uint))
(begin (map-set documents {doc-id: doc-id} {owner: tx-sender, title: title, hash: hash, doc-type: doc-type, timestamp: timestamp, verified: false}) (ok true)))
(define-read-only (get-document (doc-id uint))
(map-get? documents {doc-id: doc-id}))