diff --git a/docs/modules_packages_crates/dependencies.md b/docs/modules_packages_crates/dependencies.md index 9e64638..75f95aa 100644 --- a/docs/modules_packages_crates/dependencies.md +++ b/docs/modules_packages_crates/dependencies.md @@ -77,7 +77,7 @@ You can also import only the specific parts of dependency that you want to use, ```rust use dep::std::hash::sha256; -use dep::std::scalar_mul::fixed_base; +use dep::std::scalar_mul::fixed_base_embedded_curve; ``` Lastly, as demonstrated in the diff --git a/docs/standard_library/merkle_trees.md b/docs/standard_library/merkle_trees.md index 57d8c4a..9761105 100644 --- a/docs/standard_library/merkle_trees.md +++ b/docs/standard_library/merkle_trees.md @@ -39,7 +39,7 @@ example: */ fn main(index: Field, priv_key: Field, secret: Field, note_hash_path: [Field; 3]) { - let pubkey = std::scalar_mul::fixed_base(priv_key); + let pubkey = std::scalar_mul::fixed_base_embedded_curve(priv_key); let pubkey_x = pubkey[0]; let pubkey_y = pubkey[1]; let note_commitment = std::hash::pedersen([pubkey_x, pubkey_y, secret]);