This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Block { | |
public: | |
BlockHeader Header; | |
vector Transactions; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlockHeader { | |
public: | |
int32_t Version; | |
uint256 PreviousBlockHash; | |
uint256 MerkleRootHash; | |
uint32_t Timestamp; | |
uint32_t TargetToBeSolved; | |
uint32_t NonceForProofOfWork; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Transaction { | |
public: | |
const int32_t Version; | |
const uint32_t NumberOfInputs; | |
const vector<TransactionInput> CollectionOfInputs; | |
const uint32_t NumberOfOutputs; | |
const vector<TransactionOutput> CollectionOfOutputs; | |
const uint32_t LockTimestamp; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TransactionInput { | |
public: | |
uint256 HashKey; | |
uint32_t IndexNumber; | |
uint32_t SignatureScriptLength; | |
uint256 ResponseScript; | |
uint32_t InputSequenceNumber; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CoinbaseTransaction { | |
public: | |
uint256 HashKey; | |
uint32_t IndexNumber; | |
uint32_t CoinbaseScriptLength; | |
uint256 CoinbaseScript; | |
uint32_t InputSequenceNumber; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "brakmic.id" is my Blockstack ID. https://onename.com/brakmic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen=1 | |
daemon=1 | |
server=1 | |
rest=1 | |
externalip=YOUR_EXTERNAL_IP | |
bind=0.0.0.0 | |
port=8333 | |
maxconnections=64 | |
upnp=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
000001 IDENTIFICATION DIVISION. | |
000002 PROGRAM-ID. HELLO-WORLD. | |
000003 PROCEDURE DIVISION. | |
000004 DISPLAY 'Hello, World!' | |
000005 STOP RUN. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>SOURCE FORMAT FREE | |
IDENTIFICATION DIVISION. | |
PROGRAM-ID. HelloWorld. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 HWND PIC 9(1) VALUE 0. | |
01 MSG PIC X(17) VALUE "Hello, World! :-)". | |
01 CAPTION PIC X(8) VALUE "GnuCOBOL". | |
01 STYLE PIC 9(1) VALUE 0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************** | |
* | |
* Example based on an idea from the article "Rule of Zero" | |
* URL: https://blog.rmf.io/cxx11/rule-of-zero | |
* | |
* Must be compiled as C++11 | |
************************************************************/ | |
#define _SCL_SECURE_NO_WARNINGS | |
#define UNICODE |