Skip to main content

Module test

Module test 

Source

Functionsยง

bad_signature_share_request
btc_sign_verify
Create a taproot transaction with key and script spends, then sign/verify each spend path
check_signature_shares
Run DKG then sign a message, but alter the signature shares for signer 0. This should trigger the aggregator internal check_signature_shares function to run and determine which parties signatures were bad. Because of the differences between how parties are represented in v1 and v2, we need to pass in a vector of the expected bad parties.
coordinator_state_machine
empty_private_shares
empty_public_shares
equal_after_save_load
feedback_messages
Helper function for feeding messages back from the processor into the signing rounds and coordinators
feedback_messages_with_errors
Helper function for feeding mutated messages back from the processor into the signing rounds and coordinators
feedback_mutated_messages
Helper function for feeding mutated messages back from the processor into the signing rounds and coordinators
feedback_mutated_messages_with_errors
Helper function for feeding mutated messages back from the processor into the signing rounds and coordinators
gen_nonces
Test if a signer will generate a new nonce after a signing round as a defense against a malicious coordinator who requests multiple signing rounds with no nonce round in between to generate a new nonce
invalid_nonce
new_coordinator
run_dkg
run_dkg_sign
run_sign
setup
Set up coordinators and signers with packet signature verification off.
setup_verifying
Set up coordinators and signers with packet signature verification on.
setup_with_timeouts
start_dkg_round
start_signing_round
verify_changed_coordinator_key_on_coordinator
verify_changed_coordinator_key_on_signers
verify_packet_sigs
verify_removed_coordinator_key_on_coordinator
verify_removed_coordinator_key_on_signers