MCPcopy Index your code

hub / github.com/cryptoballot/cryptoballot / functions

Functions126 in github.com/cryptoballot/cryptoballot

↓ 11 callersMethodget
(&self, transaction_id: Identifier)
cryptoballot_sawtooth_tp/src/handler.rs:136
↓ 11 callersMethodid
Get the transaction ID TODO: use a macro
cryptoballot/src/transaction.rs:43
↓ 10 callersMethodas_bytes
Pack into bytes
cryptoballot/src/transaction.rs:94
↓ 9 callersMethodas_ref
(&self)
cryptoballot/src/authn.rs:15
↓ 8 callersFunctiongenerate_keypair
Generate an ed25519 keypair
cryptoballot/src/util.rs:6
↓ 8 callersMethodvalidate
(&self, s: &S)
cryptoballot/src/transaction.rs:130
↓ 7 callersFunctiongenerate_keypair
Generate a keypair, ready for use in ECIES
cryptoballot/src/ecies_ed25519.rs:83
↓ 7 callersMethodverify_signature
Verify the signature on a signed transaction
cryptoballot/src/transaction.rs:184
↓ 6 callersMethodset
(&mut self, tx: SignedTransaction)
cryptoballot/src/tests.rs:12
↓ 6 callersMethodto_bytes
(&self)
cryptoballot/src/transaction.rs:267
↓ 5 callersMethodas_bytes
(&'a self)
cryptoballot/src/ecies_ed25519.rs:34
↓ 4 callersFunctionexpand
Performs shell expansion on filenames (mostly to handle ~)
cryptoballot_cli/src/main.rs:305
↓ 4 callersMethodget_transaction
(&self, id: Identifier)
cryptoballot/src/tests.rs:18
↓ 4 callersFunctionidentifier_to_address
(ident: cryptoballot::Identifier)
cryptoballot_cli/src/main.rs:283
↓ 4 callersMethodto_bytes
(&self)
cryptoballot/src/ecies_ed25519.rs:28
↓ 3 callersFunctioncb_address
Get the full address prefix for the given transaction
cryptoballot_sawtooth_tp/src/handler.rs:123
↓ 3 callersMethodget_election
Get an election transaction
cryptoballot/src/store.rs:22
↓ 3 callersMethodverify
Verify the authenticator signature
cryptoballot/src/authn.rs:104
↓ 2 callersFunctionaes_decrypt
(key: &AesKey, ciphertext: &[u8])
cryptoballot/src/ecies_ed25519.rs:171
↓ 2 callersFunctionaes_encrypt
(key: &AesKey, msg: &[u8])
cryptoballot/src/ecies_ed25519.rs:152
↓ 2 callersMethodauthenticate
Sign the blinded (`election-id`, `ballot-id`, `voter-public-key`) auth-package triplet. This should only be called after verifying the voter's bonefi
cryptoballot/src/authn.rs:87
↓ 2 callersMethodblind
Blind the authentication package, readiying it to be send to the authenticator
cryptoballot/src/authn.rs:152
↓ 2 callersFunctiondecrypt
Decrypt a ECIES encrypted ciphertext using the receiver's SecretKey.
cryptoballot/src/ecies_ed25519.rs:106
↓ 2 callersFunctiondecrypt_vote
Decrypt the vote from the given recovered decryption key. `encrypted_vote` is taken from `VoteTransaction::encrypted_vote`.
cryptoballot/src/decryption.rs:128
↓ 2 callersMethoddigest
(&self, signer_pub_key: &RSAPublicKey)
cryptoballot/src/authn.rs:167
↓ 2 callersFunctionencrypt
Encrypt a message using ECIES, it can only be decrypted by the receiver's SecretKey.
cryptoballot/src/ecies_ed25519.rs:92
↓ 2 callersFunctiongenerate_shared
(secret: &SecretKey, public: &EciesPublicKey)
cryptoballot/src/ecies_ed25519.rs:123
↓ 2 callersFunctionget_transaction
( id: cryptoballot::Identifier, uri: &str, )
cryptoballot_cli/src/rest.rs:27
↓ 2 callersFunctionhkdf_sha256
(master: &[u8])
cryptoballot/src/ecies_ed25519.rs:116
↓ 2 callersMethodpublic
TODO: election authority public key
cryptoballot/src/vote.rs:58
↓ 2 callersFunctionrecover_secret_from_shares
Given a set of secret shares recovered from all SecretShareTransaction, reconstruct the secret decryption key. The decryption key can then be used to
cryptoballot/src/decryption.rs:113
↓ 2 callersMethodsign
Sign a transaction, producing a Signed<T>
cryptoballot/src/transaction.rs:164
↓ 2 callersFunctionto_hex_string
To properly format the Sha512 String
cryptoballot_cli/src/transaction.rs:86
↓ 2 callersMethodunblind
Unblind the signature, reading it for use in a Vote transaction.
cryptoballot/src/authn.rs:191
↓ 1 callersMethodas_point
Get the Edwards Point for this public key
cryptoballot/src/ecies_ed25519.rs:59
↓ 1 callersFunctioncommand_generate
(matches: &clap::ArgMatches)
cryptoballot_cli/src/main.rs:117
↓ 1 callersFunctioncommand_get_transaction
(matches: &clap::ArgMatches, uri: &str)
cryptoballot_cli/src/main.rs:225
↓ 1 callersFunctioncommand_post_transaction
(matches: &clap::ArgMatches, uri: &str)
cryptoballot_cli/src/main.rs:152
↓ 1 callersFunctioncommand_sign_transaction
(matches: &clap::ArgMatches)
cryptoballot_cli/src/main.rs:195
↓ 1 callersFunctioncommand_tally
(matches: &clap::ArgMatches, uri: &str)
cryptoballot_cli/src/main.rs:242
↓ 1 callersFunctioncreate_batch
(signer: &Signer, tx: &Transaction)
cryptoballot_cli/src/transaction.rs:115
↓ 1 callersFunctioncreate_batch_header
(signer: &Signer, tx: &Transaction)
cryptoballot_cli/src/transaction.rs:91
↓ 1 callersFunctioncreate_batch_list
(signer: &Signer, tx: &Transaction)
cryptoballot_cli/src/transaction.rs:131
↓ 1 callersFunctioncreate_header
( signer: &Signer, payload_bytes: &[u8], inputs: Vec<cryptoballot::Identifier>, outputs: Vec<c
cryptoballot_cli/src/transaction.rs:34
↓ 1 callersFunctioncreate_tx
(signer: &Signer, tx: &cryptoballot::SignedTransaction)
cryptoballot_cli/src/transaction.rs:15
↓ 1 callersFunctiondeal_secret_shares
Deal the election secret into shares, ready to be distributed to trustees. Generally the election authority will generate the secret, distribute it t
cryptoballot/src/election.rs:150
↓ 1 callersFunctiondecapsulate
(sk: &SecretKey, emphemeral_pk: &EciesPublicKey)
cryptoballot/src/ecies_ed25519.rs:142
↓ 1 callersFunctionencapsulate
(emphemeral_sk: &SecretKey, peer_pk: &EciesPublicKey)
cryptoballot/src/ecies_ed25519.rs:131
↓ 1 callersFunctionencrypt_vote
Encrypt a vote with the public key provided by the election transaction (ElectionTransaction.encryption_key)
cryptoballot/src/vote.rs:100
↓ 1 callersMethodget_authenticator
Get an authenticator with the given ID
cryptoballot/src/election.rs:86
↓ 1 callersMethodget_ballot
TODO: return a ballot struct when we have it defined Get a ballot with the given ID
cryptoballot/src/election.rs:76
↓ 1 callersFunctionget_multiple_transactions
( election_id: cryptoballot::Identifier, tx_type: Option<cryptoballot::TransactionType>, uri: &str
cryptoballot_cli/src/rest.rs:43
↓ 1 callersMethodget_secret_share
Get a SecretShare transaction
cryptoballot/src/store.rs:49
↓ 1 callersMethodget_transaction
TODO: Perhaps change this from Option<T> to Result<T>
cryptoballot_sawtooth_tp/src/handler.rs:166
↓ 1 callersMethodget_trustee
Get a trustee with the given ID
cryptoballot/src/election.rs:96
↓ 1 callersMethodget_vote
Get an Vote transaction
cryptoballot/src/store.rs:37
↓ 1 callersFunctionidentifier_to_address_prefix
( election_id: cryptoballot::Identifier, tx_type: Option<TransactionType>, )
cryptoballot_cli/src/main.rs:288
↓ 1 callersMethodinputs
Get the transaction ID TODO: use a macro
cryptoballot/src/transaction.rs:121
↓ 1 callersMethodpack
(&self)
cryptoballot/src/authn.rs:163
↓ 1 callersFunctionsend_batch_list
(batch_list_bytes: Vec<u8>, uri: &str)
cryptoballot_cli/src/rest.rs:15
↓ 1 callersMethodset
(&self, transaction: &SignedTransaction)
cryptoballot_sawtooth_tp/src/handler.rs:148
↓ 1 callersFunctionvalidate_transaction
(transaction: &SignedTransaction, state: &CbState)
cryptoballot_sawtooth_tp/src/handler.rs:103
↓ 1 callersMethodvalidate_tx
(&self, s: &S)
cryptoballot/src/transaction.rs:60
Methodapply
( &self, request: &TpProcessRequest, context: &mut dyn TransactionContext, )
cryptoballot_sawtooth_tp/src/handler.rs:49
Methodas_bytes
(&self)
cryptoballot/src/transaction.rs:148
Methodas_ref
(&self)
cryptoballot/src/ecies_ed25519.rs:67
Methodas_ref
(&self)
cryptoballot/src/transaction.rs:214
Methodbuild_id
(election_id: Identifier, trustee_id: Uuid)
cryptoballot/src/secret_share.rs:39
Methodcreate_bytes
(public_key: &PublicKey)
cryptoballot/src/serde_hex.rs:12
Functioncreate_new_election
()
cryptoballot/src/election.rs:168
Methodderef
(&self)
cryptoballot/src/transaction.rs:222
Methoddeserialize
(deserializer: D)
cryptoballot/src/transaction.rs:309
Functionend_to_end_election
()
cryptoballot/src/tests.rs:24
Methodfamily_name
(&self)
cryptoballot_sawtooth_tp/src/handler.rs:37
Methodfamily_versions
(&self)
cryptoballot_sawtooth_tp/src/handler.rs:41
Methodfmt
(&self, f: &mut std::fmt::Formatter)
cryptoballot/src/store.rs:9
Methodfmt
(&self, f: &mut std::fmt::Formatter)
cryptoballot/src/transaction.rs:328
Methodfrom
(err: serde_cbor::error::Error)
cryptoballot/src/error.rs:39
Methodfrom
(tx: SignedTransaction)
cryptoballot/src/transaction.rs:361
Methodfrom
(err: cryptoballot::ValidationError)
cryptoballot_sawtooth_tp/src/error.rs:26
Methodfrom_bytes
(bytes: &[u8])
cryptoballot/src/serde_hex.rs:16
Methodfrom_bytes
(bytes: &[u8])
cryptoballot/src/ecies_ed25519.rs:42
Methodfrom_bytes
(bytes: &[u8])
cryptoballot/src/transaction.rs:52
Methodfrom_hex
(hex: T)
cryptoballot/src/ecies_ed25519.rs:75
Methodfrom_secret
Derive a public key from a private key
cryptoballot/src/ecies_ed25519.rs:52
Methodfrom_str
(s: &str)
cryptoballot/src/transaction.rs:281
Methodget_decryption
Get a Decryption transaction
cryptoballot/src/store.rs:64
Methodid
(&self)
cryptoballot/src/election.rs:107
Methodid
(&self)
cryptoballot/src/secret_share.rs:49
Methodid
(&self)
cryptoballot/src/decryption.rs:43
Methodid
(&self)
cryptoballot/src/vote.rs:53
Methodinner
Get the inner unsigned transaction
cryptoballot/src/transaction.rs:195
Methodinputs
(&self)
cryptoballot/src/election.rs:115
Methodinputs
(&self)
cryptoballot/src/secret_share.rs:58
Methodinputs
(&self)
cryptoballot/src/decryption.rs:52
Methodinputs
(&self)
cryptoballot/src/vote.rs:62
Functionmain
()
cryptoballot_cli/src/main.rs:15
Functionmain
()
cryptoballot_sawtooth_tp/src/main.rs:11
Methodnamespaces
(&self)
cryptoballot_sawtooth_tp/src/handler.rs:45
Methodnew
Create a new ElectionTransaction The returned SecretKey should be distributed to the trustees using Shamir Secret Sharing
cryptoballot/src/election.rs:57
next →1–100 of 126, ranked by callers