Skip to content

Commit

Permalink
Rename function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist committed Feb 7, 2024
1 parent d71a65a commit 3c22d3d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ impl ArbitraryMessageSignature {
pub fn verify_signature(
&self,
chain_config: &ChainConfig,
outpoint_destination: &Destination,
destination: &Destination,
challenge: &H256,
) -> Result<(), DestinationSigError> {
match outpoint_destination {
match destination {
Destination::PublicKeyHash(addr) => {
let sig_components = AuthorizedPublicKeyHashSpend::from_data(&self.raw_signature)?;
verify_address_spending(addr, &sig_components, challenge)?
Expand All @@ -109,12 +109,12 @@ impl ArbitraryMessageSignature {

pub fn produce_uniparty_signature(
private_key: &crypto::key::PrivateKey,
outpoint_destination: &Destination,
destination: &Destination,
message: &[u8],
) -> Result<Self, SignArbitraryMessageError> {
let challenge = produce_message_challenge(message);
let signature =
match outpoint_destination {
match destination {
Destination::PublicKeyHash(addr) => {
let sig = sign_address_spending(private_key, addr, &challenge)?;
sig.encode()
Expand Down

0 comments on commit 3c22d3d

Please sign in to comment.