Skip to content

createPrivateVoting()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / createPrivateVoting

createPrivateVoting(): PrivateVoting

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:12186

Create a new PrivateVoting instance

PrivateVoting

PrivateVoting instance

import { createPrivateVoting } from '@sip-protocol/sdk'
const voting = createPrivateVoting()
const encryptedVote = voting.castVote({
proposalId: 'proposal-123',
choice: 1,
weight: 1000n,
encryptionKey: '0xabc...',
})