Documentation ¶
Overview ¶
Package blocks holds data for blocks.
Initially they will be in one file, but will move out into their own files as things get up and going.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { ID bson.ObjectId `bson:"_id,omitempty"` //This is DataBase nonsense. TimeStamp time.Time //Time that the block was created. PreviousHash string //Hash of the previous entry //Target //This will be either added later, or part of extended types. BlockType string //What type of block is this? Payload bson.M Originator string //It is yet to be determined if this will be a username or a hash. OriginatorSignature string //Originator's cryptographic signature on the payload. Hash string //A Hash of everything above, except for the ID. }
Block is the basic block stucture.
Click to show internal directories.
Click to hide internal directories.