PharmaLedger-IMI / epi-workspace

ePI use case main repository
MIT License
5 stars 4 forks source link

APIs to delete or expire a DSU #525

Open salboaie opened 2 years ago

salboaie commented 2 years ago

DSU Instances will get 2 new functions: permanentDelete(): expire it now expire(timestamp, deleteAfterExpiryTimeStamp)

APIHub configurations at the level of the domains (default false) enableDSUDeletion enableDSUExpiration

Changes in the APIHub Bricking Components POST /bricking/:domain/expire/:anchorID/
{ :timestamp, :deleteAfterExpiryTimeStamp, :signature }

How it works Use the current “controller” of the anchor to verify the signature Delete the brick map of the DSU or associate “expiration metadata” The bricking component will follow the “Expiry metadata: instructions

joaoluis-pdm commented 2 years ago

Seems more than suitable for the purpose of the Clinical Trial Recruitment.