Skip to content

Commit

Permalink
improved naming
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 3, 2024
1 parent cf812e0 commit 10dcf22
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ impl CompleteAddress{
self.partial_address.assert_is_zero();
}

pub fn compute(point : GrumpkinPoint, contract_address_salt : Field, function_tree_root : Field, constructor_hash : Field) -> CompleteAddress {
pub fn compute(public_key : GrumpkinPoint, contract_address_salt : Field, function_tree_root : Field, constructor_hash : Field) -> CompleteAddress {
let partial_address = PartialAddress::compute(contract_address_salt, function_tree_root, constructor_hash);

CompleteAddress{
address : AztecAddress::compute(point, partial_address),
public_key : point,
address : AztecAddress::compute(public_key, partial_address),
public_key,
partial_address,
}
}
Expand Down

0 comments on commit 10dcf22

Please sign in to comment.