03-06-2023, 03:05 PM
Wondering if any of you guys have done any coding with Blockchain. As I understand it, there is basically a record which is not written until all records are searched and the new record to be written is deemed valid in someway before it can be written to the chain of records. The two main/key points I take away from this is that VALIDATION before writing the record can be very complex and secondly, the chain must be sequential or there has to be an index table that allows the records to be found in the order in which they were written. So in pseudocode the layout would be something like this:
- compose a validation routine which comprises decisions on what is accurate and acceptable
- Input a record
- Review the present chain
a:for duplication of inputted record
b:for a location in chain where the inputted record will be written
c: subject the inputted record to the validation routine
d: write the inputted record or reject the record.
e: keep an index as to where this inputted record can be found
The blockchain that I'm trying to work on is not for public input but rather something which raises the accuracy of the data in the data base and improves retrieval of any given small piece of data stored. In this regard, what I don't have in the above pseudocode layout is a search routine. It would seem I need 2 search routines, one associated with the Review of the chain before writing a record and one associated with a search of data where No record is intended on being written. A number of years ago I started on a blockchain program but found it was going to be extremely large and abandoned it. So I'm looking at it again but trying to conceptualize a smaller program.
- compose a validation routine which comprises decisions on what is accurate and acceptable
- Input a record
- Review the present chain
a:for duplication of inputted record
b:for a location in chain where the inputted record will be written
c: subject the inputted record to the validation routine
d: write the inputted record or reject the record.
e: keep an index as to where this inputted record can be found
The blockchain that I'm trying to work on is not for public input but rather something which raises the accuracy of the data in the data base and improves retrieval of any given small piece of data stored. In this regard, what I don't have in the above pseudocode layout is a search routine. It would seem I need 2 search routines, one associated with the Review of the chain before writing a record and one associated with a search of data where No record is intended on being written. A number of years ago I started on a blockchain program but found it was going to be extremely large and abandoned it. So I'm looking at it again but trying to conceptualize a smaller program.