Learn BDK – Bitcoin Dev Kit
Here we continue trying out BDK and learning to use it with Rust : By the end of this article our code will do the following : During testing I had this “Dust” error, so let’s just cover that first… BDK – Error: OutputBelowDustLimit(0) When testing on Testnet you may come across errors with the […]
Result v Option for Error Handling in Rust
Error handling is a crucial aspect of writing robust and reliable code. In Rust, two common types for representing potential errors are Option and Result. While both are useful, there are situations where using Result provides a more expressive and idiomatic way to handle errors, especially when dealing with functions that can fail due to […]
Bitwise Operators in Rust
Bitwise operators in Rust allow manipulation of individual bits in binary representations of data. They are useful for low-level operations like setting or clearing specific bits, creating bitmasks, and optimizing algorithms. Rust provides bitwise AND, OR, XOR, left shift, and right shift operators for efficient bit-level manipulation. Webdock – Fast Cloud VPS Linux Hosting Lets’s […]
Buffers in Rust
Let’s talk about buffers in the context of Rust and also briefly touch on frame buffers. Buffers in Rust: In Rust, a buffer is typically a block of memory used for temporary storage of data. Buffers are commonly used when reading or writing data to or from sources like files, network sockets, or memory. They […]