Skip to content

Commit fa1b8f7

Browse files
committed
WASM: rename randomized_public_key to randomized_public_key_pair
This method returns a struct which also has a `randomized_public_key` method, which results in code like this: ```rs let r = x.randomized_public_key(); let p = r.randomized_public_key(); ``` ... which is very ambiguous/confusing. With this PR, the above code becomes: ```rs let r = x.randomized_public_key_pair(); let p = r.randomized_public_key(); ```
1 parent 7f2a680 commit fa1b8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ironfish-rust-wasm/src/keys/view_keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl ViewKey {
150150
self.0.nullifier_deriving_key.into()
151151
}
152152

153-
#[wasm_bindgen(js_name = randomizedPublicKey)]
153+
#[wasm_bindgen(js_name = randomizedPublicKeyPair)]
154154
pub fn randomized_public_key_pair(&self) -> RandomizedPublicKeyPair {
155155
let (r, s) = self.0.randomized_public_key(thread_rng());
156156
RandomizedPublicKeyPair::new(r.into(), s.into())

0 commit comments

Comments
 (0)