Skip to content

Commit

Permalink
Add fields for crypto_vote
Browse files Browse the repository at this point in the history
  • Loading branch information
ostcar committed Jan 11, 2025
1 parent aff0304 commit 0eece97
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,6 @@ organization:
type: text
restriction_mode: D

vote_decrypt_public_main_key:
type: string
description: Public key from vote decrypt to validate cryptographic votes.
calculated: true
restriction_mode: A

committee_ids:
type: relation-list
restriction_mode: B
Expand Down Expand Up @@ -476,6 +470,14 @@ meeting_user:
to: meeting_user/vote_delegated_to_id
equal_fields: meeting_id
restriction_mode: A
crypt_default_secretary_id:
type: relation
to: meeting/crypt_default_secretary_id
restriction_mode: X
crypt_default_auditor_id:
type: relation
to: meeting/crypt_default_auditor_id
restriction_mode: X
chat_message_ids:
type: relation-list
to: chat_message/meeting_user_id
Expand Down Expand Up @@ -1299,6 +1301,14 @@ meeting:
type: relation-list
to: poll_candidate/meeting_id
restriction_mode: B
crypt_default_secretary_id:
type: relation
to: meeting_user/crypt_default_secretary_id
restriction_mode: X
crypt_default_pollassistent_auditor_id:
type: relation
to: meeting_user/crypt_default_pollassistent_auditor_id
restriction_mode: X

# Users
meeting_user_ids:
Expand Down Expand Up @@ -3174,6 +3184,7 @@ poll:
type: string
enum:
- created
- called
- started
- finished
- published
Expand Down Expand Up @@ -3236,26 +3247,21 @@ poll:
required: true
restriction_mode: A
constant: true
crypt_key:
crypt_key_secretary:
type: string
description: base64 public key to cryptographic votes.
description: base64 public key of the secretary.
read_only: true
restriction_mode: A
crypt_signature:
crypt_key_auditor:
type: string
description: base64 signature of cryptographic_key.
description: base64 public key of the auditor.
read_only: true
restriction_mode: A
votes_raw:
crypt_documents:
type: text
description: original form of decrypted votes.
read_only: true
restriction_mode: B
votes_signature:
type: string
description: base64 signature of votes_raw field.
read_only: true
restriction_mode: B
content_object_id:
type: generic-relation
to:
Expand Down

0 comments on commit 0eece97

Please sign in to comment.