Source Code

;; Amanah Record - Id
;; Amanah record for id

(define-map id-98-amanah {owner: principal, keeper: principal} bool)

(define-public (record-id-98 (keeper principal))
    (begin
        (map-set id-98-amanah {owner: tx-sender, keeper: keeper} true)
        (ok true)
    )
)

(define-read-only (get-id-98-status (owner principal) (keeper principal))
    (default-to false (map-get? id-98-amanah {owner: owner, keeper: keeper}))
)

Functions (2)

FunctionAccessArgs
record-id-98publickeeper: principal
get-id-98-statusread-onlyowner: principal, keeper: principal