Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cryptoballot/cryptoballot
/ functions
Functions
126 in github.com/cryptoballot/cryptoballot
⨍
Functions
126
◇
Types & classes
29
↓ 11 callers
Method
get
(&self, transaction_id: Identifier)
cryptoballot_sawtooth_tp/src/handler.rs:136
↓ 11 callers
Method
id
Get the transaction ID TODO: use a macro
cryptoballot/src/transaction.rs:43
↓ 10 callers
Method
as_bytes
Pack into bytes
cryptoballot/src/transaction.rs:94
↓ 9 callers
Method
as_ref
(&self)
cryptoballot/src/authn.rs:15
↓ 8 callers
Function
generate_keypair
Generate an ed25519 keypair
cryptoballot/src/util.rs:6
↓ 8 callers
Method
validate
(&self, s: &S)
cryptoballot/src/transaction.rs:130
↓ 7 callers
Function
generate_keypair
Generate a keypair, ready for use in ECIES
cryptoballot/src/ecies_ed25519.rs:83
↓ 7 callers
Method
verify_signature
Verify the signature on a signed transaction
cryptoballot/src/transaction.rs:184
↓ 6 callers
Method
set
(&mut self, tx: SignedTransaction)
cryptoballot/src/tests.rs:12
↓ 6 callers
Method
to_bytes
(&self)
cryptoballot/src/transaction.rs:267
↓ 5 callers
Method
as_bytes
(&'a self)
cryptoballot/src/ecies_ed25519.rs:34
↓ 4 callers
Function
expand
Performs shell expansion on filenames (mostly to handle ~)
cryptoballot_cli/src/main.rs:305
↓ 4 callers
Method
get_transaction
(&self, id: Identifier)
cryptoballot/src/tests.rs:18
↓ 4 callers
Function
identifier_to_address
(ident: cryptoballot::Identifier)
cryptoballot_cli/src/main.rs:283
↓ 4 callers
Method
to_bytes
(&self)
cryptoballot/src/ecies_ed25519.rs:28
↓ 3 callers
Function
cb_address
Get the full address prefix for the given transaction
cryptoballot_sawtooth_tp/src/handler.rs:123
↓ 3 callers
Method
get_election
Get an election transaction
cryptoballot/src/store.rs:22
↓ 3 callers
Method
verify
Verify the authenticator signature
cryptoballot/src/authn.rs:104
↓ 2 callers
Function
aes_decrypt
(key: &AesKey, ciphertext: &[u8])
cryptoballot/src/ecies_ed25519.rs:171
↓ 2 callers
Function
aes_encrypt
(key: &AesKey, msg: &[u8])
cryptoballot/src/ecies_ed25519.rs:152
↓ 2 callers
Method
authenticate
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 callers
Method
blind
Blind the authentication package, readiying it to be send to the authenticator
cryptoballot/src/authn.rs:152
↓ 2 callers
Function
decrypt
Decrypt a ECIES encrypted ciphertext using the receiver's SecretKey.
cryptoballot/src/ecies_ed25519.rs:106
↓ 2 callers
Function
decrypt_vote
Decrypt the vote from the given recovered decryption key. `encrypted_vote` is taken from `VoteTransaction::encrypted_vote`.
cryptoballot/src/decryption.rs:128
↓ 2 callers
Method
digest
(&self, signer_pub_key: &RSAPublicKey)
cryptoballot/src/authn.rs:167
↓ 2 callers
Function
encrypt
Encrypt a message using ECIES, it can only be decrypted by the receiver's SecretKey.
cryptoballot/src/ecies_ed25519.rs:92
↓ 2 callers
Function
generate_shared
(secret: &SecretKey, public: &EciesPublicKey)
cryptoballot/src/ecies_ed25519.rs:123
↓ 2 callers
Function
get_transaction
( id: cryptoballot::Identifier, uri: &str, )
cryptoballot_cli/src/rest.rs:27
↓ 2 callers
Function
hkdf_sha256
(master: &[u8])
cryptoballot/src/ecies_ed25519.rs:116
↓ 2 callers
Method
public
TODO: election authority public key
cryptoballot/src/vote.rs:58
↓ 2 callers
Function
recover_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 callers
Method
sign
Sign a transaction, producing a Signed<T>
cryptoballot/src/transaction.rs:164
↓ 2 callers
Function
to_hex_string
To properly format the Sha512 String
cryptoballot_cli/src/transaction.rs:86
↓ 2 callers
Method
unblind
Unblind the signature, reading it for use in a Vote transaction.
cryptoballot/src/authn.rs:191
↓ 1 callers
Method
as_point
Get the Edwards Point for this public key
cryptoballot/src/ecies_ed25519.rs:59
↓ 1 callers
Function
command_generate
(matches: &clap::ArgMatches)
cryptoballot_cli/src/main.rs:117
↓ 1 callers
Function
command_get_transaction
(matches: &clap::ArgMatches, uri: &str)
cryptoballot_cli/src/main.rs:225
↓ 1 callers
Function
command_post_transaction
(matches: &clap::ArgMatches, uri: &str)
cryptoballot_cli/src/main.rs:152
↓ 1 callers
Function
command_sign_transaction
(matches: &clap::ArgMatches)
cryptoballot_cli/src/main.rs:195
↓ 1 callers
Function
command_tally
(matches: &clap::ArgMatches, uri: &str)
cryptoballot_cli/src/main.rs:242
↓ 1 callers
Function
create_batch
(signer: &Signer, tx: &Transaction)
cryptoballot_cli/src/transaction.rs:115
↓ 1 callers
Function
create_batch_header
(signer: &Signer, tx: &Transaction)
cryptoballot_cli/src/transaction.rs:91
↓ 1 callers
Function
create_batch_list
(signer: &Signer, tx: &Transaction)
cryptoballot_cli/src/transaction.rs:131
↓ 1 callers
Function
create_header
( signer: &Signer, payload_bytes: &[u8], inputs: Vec<cryptoballot::Identifier>, outputs: Vec<c
cryptoballot_cli/src/transaction.rs:34
↓ 1 callers
Function
create_tx
(signer: &Signer, tx: &cryptoballot::SignedTransaction)
cryptoballot_cli/src/transaction.rs:15
↓ 1 callers
Function
deal_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 callers
Function
decapsulate
(sk: &SecretKey, emphemeral_pk: &EciesPublicKey)
cryptoballot/src/ecies_ed25519.rs:142
↓ 1 callers
Function
encapsulate
(emphemeral_sk: &SecretKey, peer_pk: &EciesPublicKey)
cryptoballot/src/ecies_ed25519.rs:131
↓ 1 callers
Function
encrypt_vote
Encrypt a vote with the public key provided by the election transaction (ElectionTransaction.encryption_key)
cryptoballot/src/vote.rs:100
↓ 1 callers
Method
get_authenticator
Get an authenticator with the given ID
cryptoballot/src/election.rs:86
↓ 1 callers
Method
get_ballot
TODO: return a ballot struct when we have it defined Get a ballot with the given ID
cryptoballot/src/election.rs:76
↓ 1 callers
Function
get_multiple_transactions
( election_id: cryptoballot::Identifier, tx_type: Option<cryptoballot::TransactionType>, uri: &str
cryptoballot_cli/src/rest.rs:43
↓ 1 callers
Method
get_secret_share
Get a SecretShare transaction
cryptoballot/src/store.rs:49
↓ 1 callers
Method
get_transaction
TODO: Perhaps change this from Option<T> to Result<T>
cryptoballot_sawtooth_tp/src/handler.rs:166
↓ 1 callers
Method
get_trustee
Get a trustee with the given ID
cryptoballot/src/election.rs:96
↓ 1 callers
Method
get_vote
Get an Vote transaction
cryptoballot/src/store.rs:37
↓ 1 callers
Function
identifier_to_address_prefix
( election_id: cryptoballot::Identifier, tx_type: Option<TransactionType>, )
cryptoballot_cli/src/main.rs:288
↓ 1 callers
Method
inputs
Get the transaction ID TODO: use a macro
cryptoballot/src/transaction.rs:121
↓ 1 callers
Method
pack
(&self)
cryptoballot/src/authn.rs:163
↓ 1 callers
Function
send_batch_list
(batch_list_bytes: Vec<u8>, uri: &str)
cryptoballot_cli/src/rest.rs:15
↓ 1 callers
Method
set
(&self, transaction: &SignedTransaction)
cryptoballot_sawtooth_tp/src/handler.rs:148
↓ 1 callers
Function
validate_transaction
(transaction: &SignedTransaction, state: &CbState)
cryptoballot_sawtooth_tp/src/handler.rs:103
↓ 1 callers
Method
validate_tx
(&self, s: &S)
cryptoballot/src/transaction.rs:60
Method
apply
( &self, request: &TpProcessRequest, context: &mut dyn TransactionContext, )
cryptoballot_sawtooth_tp/src/handler.rs:49
Method
as_bytes
(&self)
cryptoballot/src/transaction.rs:148
Method
as_ref
(&self)
cryptoballot/src/ecies_ed25519.rs:67
Method
as_ref
(&self)
cryptoballot/src/transaction.rs:214
Method
build_id
(election_id: Identifier, trustee_id: Uuid)
cryptoballot/src/secret_share.rs:39
Method
create_bytes
(public_key: &PublicKey)
cryptoballot/src/serde_hex.rs:12
Function
create_new_election
()
cryptoballot/src/election.rs:168
Method
deref
(&self)
cryptoballot/src/transaction.rs:222
Method
deserialize
(deserializer: D)
cryptoballot/src/transaction.rs:309
Function
end_to_end_election
()
cryptoballot/src/tests.rs:24
Method
family_name
(&self)
cryptoballot_sawtooth_tp/src/handler.rs:37
Method
family_versions
(&self)
cryptoballot_sawtooth_tp/src/handler.rs:41
Method
fmt
(&self, f: &mut std::fmt::Formatter)
cryptoballot/src/store.rs:9
Method
fmt
(&self, f: &mut std::fmt::Formatter)
cryptoballot/src/transaction.rs:328
Method
from
(err: serde_cbor::error::Error)
cryptoballot/src/error.rs:39
Method
from
(tx: SignedTransaction)
cryptoballot/src/transaction.rs:361
Method
from
(err: cryptoballot::ValidationError)
cryptoballot_sawtooth_tp/src/error.rs:26
Method
from_bytes
(bytes: &[u8])
cryptoballot/src/serde_hex.rs:16
Method
from_bytes
(bytes: &[u8])
cryptoballot/src/ecies_ed25519.rs:42
Method
from_bytes
(bytes: &[u8])
cryptoballot/src/transaction.rs:52
Method
from_hex
(hex: T)
cryptoballot/src/ecies_ed25519.rs:75
Method
from_secret
Derive a public key from a private key
cryptoballot/src/ecies_ed25519.rs:52
Method
from_str
(s: &str)
cryptoballot/src/transaction.rs:281
Method
get_decryption
Get a Decryption transaction
cryptoballot/src/store.rs:64
Method
id
(&self)
cryptoballot/src/election.rs:107
Method
id
(&self)
cryptoballot/src/secret_share.rs:49
Method
id
(&self)
cryptoballot/src/decryption.rs:43
Method
id
(&self)
cryptoballot/src/vote.rs:53
Method
inner
Get the inner unsigned transaction
cryptoballot/src/transaction.rs:195
Method
inputs
(&self)
cryptoballot/src/election.rs:115
Method
inputs
(&self)
cryptoballot/src/secret_share.rs:58
Method
inputs
(&self)
cryptoballot/src/decryption.rs:52
Method
inputs
(&self)
cryptoballot/src/vote.rs:62
Function
main
()
cryptoballot_cli/src/main.rs:15
Function
main
()
cryptoballot_sawtooth_tp/src/main.rs:11
Method
namespaces
(&self)
cryptoballot_sawtooth_tp/src/handler.rs:45
Method
new
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