Skip to content

Commit c849e34

Browse files
loopy8110xLucqs
andauthored
docs: fixed dead links (#125)
Co-authored-by: 0xLucqs <[email protected]>
1 parent c50ed21 commit c849e34

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/starknet-types-core/src/hash/pedersen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ pub struct Pedersen;
1010

1111
impl StarkHash for Pedersen {
1212
/// Computes the Pedersen hash of two Felts, as defined
13-
/// in <https://docs.starknet.io/documentation/architecture_and_concepts/Hashing/hash-functions/#pedersen_hash.>
13+
/// in <https://docs.starknet.io/architecture/cryptography/#pedersen_hash>
1414
fn hash(felt_0: &Felt, felt_1: &Felt) -> Felt {
1515
Felt(PedersenStarkCurve::hash(&felt_0.0, &felt_1.0))
1616
}
1717

1818
/// Computes the Pedersen hash of an array of Felts, as defined
19-
/// in <https://docs.starknet.io/documentation/architecture_and_concepts/Hashing/hash-functions/#array_hashing.>
19+
/// in <https://docs.starknet.io/architecture/cryptography/#array_hashing>
2020
///
2121
/// Warning: there is room for collision as:
2222
/// Pedersen::hash_array([value]) and Pedersen::hash(Pedersen::hash(0, value), 1) will return the same values

crates/starknet-types-core/src/hash/poseidon.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ pub struct Poseidon;
1212

1313
impl StarkHash for Poseidon {
1414
/// Computes the Poseidon hash of two Felts, as defined
15-
/// in <https://docs.starknet.io/documentation/architecture_and_concepts/Hashing/hash-functions/#poseidon_hash.>
15+
/// in <https://docs.starknet.io/architecture/cryptography/#poseidon_hash>
1616
fn hash(felt_0: &Felt, felt_1: &Felt) -> Felt {
1717
Felt(PoseidonCairoStark252::hash(&felt_0.0, &felt_1.0))
1818
}
1919
/// Computes the Poseidon hash of an array of Felts, as defined
20-
/// in <https://docs.starknet.io/documentation/architecture_and_concepts/Cryptography/hash-functions/#poseidon_array_hash.>
20+
/// in <https://docs.starknet.io/architecture/cryptography/#array_hashing_2>
2121
fn hash_array(felts: &[Felt]) -> Felt {
2222
// Non-copy but less dangerous than transmute
2323
// https://doc.rust-lang.org/std/mem/fn.transmute.html#alternatives

crates/starknet-types-core/src/hash/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub trait StarkHash {
55
fn hash(felt_0: &Felt, felt_1: &Felt) -> Felt;
66

77
/// Computes the hash of an array of Felts,
8-
/// as defined in <https://docs.starknet.io/documentation/architecture_and_concepts/Hashing/hash-functions/#array_hashing.>
8+
/// as defined in <https://docs.starknet.io/architecture/cryptography/#array_hashing>
99
fn hash_array(felts: &[Felt]) -> Felt;
1010

1111
fn hash_single(felt: &Felt) -> Felt;

0 commit comments

Comments
 (0)