-
Notifications
You must be signed in to change notification settings - Fork 1
Design
Frank V. Castellucci edited this page Feb 25, 2018
·
10 revisions
Oh yeah...
The hashblock Units transaction processor supports the proposing and voting processing of changes to a block's units of measure. For example:
hashblock.currency.name = 'USD'
).
Protobuffs (protocol buffers) declares messages (verb) and their content layout (properties) to support serializing, de-serializing and inspection of payloads. There is a compiler which converts the file into language specific code as functions for working with the message payloads.
The supporting verbs are focused on actions handled by the Units Transaction Processor (TP). For example, to handle the verb PROPOSE, protobuff declares:
// Unit Proposal
//
// This message proposes a change in a setting value.
message UnitProposal {
// The code key. E.g. hashblock.currency.name
// is the first element in the payload of type string
string code = 1;
// The setting value. E.g. 'USD'
string value = 2;
// allow duplicate proposals with different hashes
// randomly created by the client
string nonce = 3;
}