starknet-rs icon indicating copy to clipboard operation
starknet-rs copied to clipboard

Complete Starknet library in Rust™

Results 54 starknet-rs issues
Sort by recently updated
recently updated
newest added

Hello, It seems that there is an official starknet implementation of [Felt](https://github.com/starknet-io/types-rs/blob/main/crates/starknet-types-core/src/felt/mod.rs) Is there any initiative to migrate this repo FieldElement implementation to Starknet Felt? It could help other projects...

During `add_assign` implementation, z1 and z2 don't have to be equal. As a result, when `u0 == u1`, simply testing ` self.y == rhs.y` to confirm that a point doubling...

The `PartialEq` implementation is fixed for `AffinePoint` and `ProjectivePoint` ## Affine point representation The `PartialEq` implementation is now not a simple derive but make the distinction between the infinity point...

This PR aims at bringing support for [ByteArray](https://github.com/starkware-libs/cairo/blob/a4de08fbd75fa1d58c69d054d6b3d99aaf318f90/corelib/src/byte_array.cairo) type.

## Testing functionality based on RPC response Tests require setting up an RPC server with appropriate state to test different cases. This makes tests slow and setup tedious. This PR...

This PR addresses issue #286 We implemented a `decode` fucntion ```rust fn decode(types: &[ParamType], data: &[FieldElement]) -> Result ``` Where: ```rust pub enum ParamType { FieldElement, Array, Tuple(usize), } #[derive(PartialEq,...

The scalar multiplication on elliptic curves is a fundamental operation in elliptic curve cryptography. For example, this operation multiplies a point on the curve (typically a base point) by an...

A side-channel attack seeks to undermine a cryptographic system's security by analyzing its physical behaviors rather than attempting to solve its foundational mathematical challenges. This approach might involve studying aspects...

In starknet-py or starknet-js, one can use the `Contract` class, especially `Contract.from_address` to have a high level human-readable interaction with contracts. For example, one can do ``` starknet_eth = Contract.from_address(provider,...

Due to a scientific notation issue, certain legacy (Cairo 0) contract artifacts can be different when deserializing directly and through the `ConrtractArtifact` enum. This leads to class hash errors, and...