As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [blockchain]

A blockchain is a continuously growing list of records, called blocks, which are linked and secured using cryptography. Each block typically contains a hash pointer as a link to a previous block, a timestamp and transaction data. By design, blockchains are inherently resistant to modification of the data. A blockchain can serve as an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way.

Filter by
Sorted by
Tagged with
3 votes
1 answer
495 views

Bitcoin Hash (Merkle) Tree implementation in Java

I'm learning about how full nodes can send a Merkle root + a list of hashes, so that a light client can verify a transaction. I couldn't find any good resources on how to implement it. I just knew ...
user644361's user avatar
3 votes
1 answer
88 views

Grokking the basics of BlockChain with Python

As I was streaming I had a brilliant visitor suggest we write a blockchain in Python. So we did. Note that there is no validation or voting simulated here. Here's the results, in ...
Aaron Hall's user avatar
  • 1,558
2 votes
1 answer
35 views

A register of government decrees, authenticated with blockchain and public key cryptography

The full repo is here, but I'll post the most important extracts below. Background I'm trying to get the hang of blockchain and public key cryptography, so I thought it would be fun to create a ...
Tom Hosker's user avatar
1 vote
0 answers
107 views

Solidity: verifying primality certificates, bounty for large primes

This is my first smart contract, and it isn't finished yet, but the remaining bits are complicated enough that I'd like to make sure I'm on the right track first. My concerns are: At line 117, is the ...
Pr0methean's user avatar
2 votes
0 answers
110 views

Bash bitcoin blockchain explorer

I wrote a little bash script that displays the transaction info in json: ...
reardenlife's user avatar
1 vote
0 answers
55 views

Blockchain implementation in F#: Wallet

Introduction This is Part 3 of my F# blockchain implementation. Previous parts: Block and Blockchain Transactions Code In this part I am implementing a wallet functionality. The code is based on a ...
Kapol's user avatar
  • 344
1 vote
0 answers
121 views

Blockchain implementation in F#: Transactions

Introduction This is Part 2 of my F# blockchain implementation. Previous parts: Block and Blockchain Code This time I am tackling transactions. The code is based on a JavaScript blockchain ...
Kapol's user avatar
  • 344
6 votes
1 answer
534 views

Blockchain implementation in F#: Block and Blockchain

Some time ago I started writing a blockchain implementation for learning purposes. I used this article as reference. Originally I wrote the code in C# but recently I have rewritten everything to F#. ...
Kapol's user avatar
  • 344
1 vote
0 answers
233 views

Solidity code for TimeBasedWill (smart contract)

Following is a TimeBasedWill I have written in Solidity to be built on the Ethereum Blockchain. I have tested the code using Remix IDE. I would like to get your comments and opinions about security ...
Jigar Gada's user avatar
2 votes
2 answers
698 views

Implementing blockchain block in C++11

I want to rewrite blockchain source code from Golang to C++11. Please, review my code and help me to improve it. Source in Golang: ...
typemoon's user avatar
  • 183
7 votes
1 answer
336 views

A blockchain implementation in 207 lines of code

There is a blockchain class with minimal functionality inspired by naivechain. It has template data and hash function parameters: ...
lisovskey's user avatar
  • 313
2 votes
0 answers
246 views

Customizable Blockchain's block structure

I'm creating a new open-source blockchain framework for .NET Core and .NET Standard. But I have some questions about how to make block structure to be customizable and look beautiful. Let's begin ...
denismaster's user avatar
4 votes
1 answer
347 views

Listens for custom messages on the production Bitcoin blockchain

The application listens for OP_RETURN messages on the Bitcoin blockchain and prints them to standard output. OP_RETURN is a custom transaction locking script that can store data, but nothing beyond ...
weare138's user avatar
  • 541