---
title: "Peter Blockman (@peterblockman) | Hashnode"
description: "Blockchain developer"
url: "https://hashnode.com/@peterblockman"
---

@peterblockman

# Peter Blockman

@peterblockman · localhost · Joined August 2022

### [Quick guide to Rust's From/Into and TryFrom/TryInto Traits](https://peterblockman.hashnode.dev/rust-from-into?utm_source=hashnode&utm_medium=feed)

While working with Rust, I find myself implementing a lot of From/Into or TryFrom/TryInto traits in my code. Whether you're dealing with simple conversions or handling more complex scenarios with potential errors, mastering these traits is key to wri...

3 min read · [peterblockman.hashnode.dev](https://peterblockman.hashnode.dev/rust-from-into?utm_source=hashnode&utm_medium=feed)

[Jul 29, 2023](https://hashnode.com/posts/rust-from-into/64c4d5aee39db985fa537c1e)

### [Cairo: Uint256](https://peterblockman.hashnode.dev/cairo-uint256?utm_source=hashnode&utm_medium=feed)

Introduction If you are confused about what value should be passed into the low and high of Uint256 in Cairo? you are not alone. I was confused the first time I saw it too. After digging into the code and asking around, I finally figured it out. What...

2 min read · [peterblockman.hashnode.dev](https://peterblockman.hashnode.dev/cairo-uint256?utm_source=hashnode&utm_medium=feed)

[Nov 10, 2022](https://hashnode.com/posts/cairo-uint256/636cbfa48a93eae0b6c7e827)

### [Cairo exercise: Polynomial Equation](https://peterblockman.hashnode.dev/cairo-exercise-polynomial-equation?utm_source=hashnode&utm_medium=feed)

Problem Write a program poly.cairo that computes the expression: $$ x^3 + 23x^2+ 45x + 67 = 0, x = 100 $$ After the program ends, the value should be at \[ap - 1\]. For this exercise, you may assume that the fp register is constant and initialized to...

3 min read · [peterblockman.hashnode.dev](https://peterblockman.hashnode.dev/cairo-exercise-polynomial-equation?utm_source=hashnode&utm_medium=feed)

[Nov 8, 2022](https://hashnode.com/posts/cairo-exercise-polynomial-equation/636a162976482c21aebbce6a)

### [Cairo: compute Pedersen hash of an array of felts challenge](https://peterblockman.hashnode.dev/cairo-compute-pedersen-hash-of-an-array-of-felts-challenge?utm_source=hashnode&utm_medium=feed)

Introduction Cairo provides a built-in hash2 function to calculate the Pedersen hash of two felts. In this challenge, we will recursively compute the hash of an array of felts. The challenge ex\_hash\_chain.cairo // Task: // Develop a function that is...

3 min read · [peterblockman.hashnode.dev](https://peterblockman.hashnode.dev/cairo-compute-pedersen-hash-of-an-array-of-felts-challenge?utm_source=hashnode&utm_medium=feed)

[Nov 8, 2022](https://hashnode.com/posts/cairo-compute-pedersen-hash-of-an-array-of-felts-challenge/6369f943757c1108640ad9fd)

### [Cairo: pattern of bits challenge](https://peterblockman.hashnode.dev/cairo-pattern-of-bits-challenge?utm_source=hashnode&utm_medium=feed)

Introduction In Encode's Cairo Bootcamp, there is an interesting bit manipulation challenge. It took me some time to figure it out. In this article, I will discuss the challenge and the solution. The challenge ex7.cairo %lang starknet from starkware....

5 min read · [peterblockman.hashnode.dev](https://peterblockman.hashnode.dev/cairo-pattern-of-bits-challenge?utm_source=hashnode&utm_medium=feed)

[Nov 6, 2022](https://hashnode.com/posts/cairo-pattern-of-bits-challenge/636764e4717dfbfb5bc10c8c)
