Skip to content

Commit

Permalink
refactor: 🏗️ removed mud as an entity, purchase rights and concept of…
Browse files Browse the repository at this point in the history
… a user giving another connection rights, users are born with thier rights and are unalterable for now
  • Loading branch information
AshleySetter committed Aug 14, 2024
1 parent 450b546 commit 2ed3008
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 89 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$schema: https://json-schema.org/draft/2020-12/schema
$id: https://github.com/nqminds/CAHN/blob/main/packages/schemas/src/allow_to_connect.v.1.0.0.schema.yaml
title: Allow to connect
description: A giving of connection rights from an authorising user to a device
title: device trust
description: A giving of trust from an authorising user to a device to connect to the network
type: object
properties:
device_id:
Expand Down
19 changes: 0 additions & 19 deletions packages/schemas/src/gives_connection_rights.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions packages/schemas/src/gives_purchase_rights.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions packages/schemas/src/has_mud.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$schema: https://json-schema.org/draft/2020-12/schema
$id: https://github.com/nqminds/CAHN/blob/main/packages/schemas/src/trust.v.1.0.0.schema.yaml
title: trust
title: manufacturer trust
description: A trust relationship between a user and manufacturer
type: object
properties:
Expand Down
22 changes: 0 additions & 22 deletions packages/schemas/src/mud.yaml

This file was deleted.

11 changes: 4 additions & 7 deletions packages/schemas/src/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ properties:
created_at:
description: timestamp at which user was created in milliseconds
type: integer
can_issue_purchase_rights:
description: If user can issue purchase rights to other users
type: bool,
can_issue_connection_rights:
description: If user can issue connection rights to other users
type: bool,
can_issue_trust:
can_issue_device_trust:
description: If user can issue trust to devices
type: bool,
can_issue_manufacturer_trust:
description: If user can issue trust to manufacturers
type: bool
required:
- id
Expand Down

0 comments on commit 2ed3008

Please sign in to comment.