EncryptedVote
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / EncryptedVote
Interface: EncryptedVote
Section titled “Interface: EncryptedVote”Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8268
Encrypted vote data
Properties
Section titled “Properties”ciphertext
Section titled “ciphertext”ciphertext:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8270
The encrypted vote data (includes authentication tag)
nonce:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8272
Nonce used for encryption (needed for decryption)
encryptionKeyHash
Section titled “encryptionKeyHash”encryptionKeyHash:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8274
Hash of the encryption key used (for key identification)
proposalId
Section titled “proposalId”proposalId:
string
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8276
Proposal ID this vote is for
voter:
string
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8278
Voter’s identifier (public key or address)
timestamp
Section titled “timestamp”timestamp:
number
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:8280
Timestamp when vote was cast