Skip to content

Latest commit

 

History

History
182 lines (141 loc) · 7.44 KB

CHANGELOG.md

File metadata and controls

182 lines (141 loc) · 7.44 KB

Changelog

All notable changes to this project will be documented in this file.

v0.3.3 - 2021-08-18

Improvements to getTfile() and documentation fixes. Fixed an issue with some blockchain.js classes causing a RangeError after constructing instances using inputs of incompatible lengths.

+ Added option for negative bnum in Mochimo.getTfile()
! Fixed explanations of some incorrect documentation
! Fixed RangeError in blockchain.js constructors

v0.3.2 - 2021-05-18

New Block class function for verifying a block hash. Introduces (some) tests for the Block class. New getHash() function for Mochimo module. Various improvements/changes to the Node class. Fixes for BigInt conversions in some files.

+ Added getHash() to the Mochimo module
+ Added verifyBlockHash() to the Block class
+ Added test.block.js tests (not complete)
! Fix BigInt conversions in blockchain.js and tx.js
! Improvements to node data handling and callserver versatility
! Improvements to node ping/baud calculations
# Change lastTouch to timestamp in Node class
# Changed order of properties in node.toJSON()
# Changed order of properties in TXEntry.toJSON()

v0.3.1 - 2021-05-03

Typo fix for block type Block.NEOGENESIS

! Fixed Block.NEOGENESIS typo

v0.3.0 - 2021-04-29

Introduces address functions for the Winternitz One-Time Signature (WOTS+) scheme for generating, signing and verifying addresses on the Mochimo Blockchain. Also, introduces simple getPeerlist() and getBalance functions, as well as various improvements to the entire module and documentation.

+ Added Wots class to Mochimo module
+ Added test cases to ensure Wots implementation integrity
+ Added getBalance() and getPeerlist to Mochimo module
+ Added improved toJSON(); LEntry, TXEntry, Blocktrailer & Block classes
+ Added setters to LEntry class
+ Added TAGLEN Constant
! Fixed ledger property for Block.GENESIS type blocks
! Fixed LEntry class constructor parameter defaults
! Fixed incorrect conditional check for undefined properties in Mochimo
# Revert tags properties to output default address tag instead of null
# Changed values of Block.<types> to appropriate strings
# Changed tamount to amount in Block class
# Changed internal function sanitizeArray to sanitizeUint8Array
# Exposed TXEntry and LEntry on Mochimo module
- Removed TXReference class
- Removed Block.typeStr in favor of standardized Block.type

v0.2.6 - 2021-02-18

Improvements and fixes to the Block class and removal of unnecessary functions in the Blockchain.js file.

+ Added haiku and tamount properties to Block
! Fixed line endings in Tx.js
# Changed some conditionals in tamount, maddr, and mreward
- Removed toJSON(); LEntry, TXReference, TXEntry, Blocktrailer & Block classes
- Removed toSummary(); Block class

v0.2.5 - 2021-02-09

Fixes for Block.toSummary() and the mreward property of the Block class.

+ Added typeStr getter to Block class
! Fixed mreward property value in Block class
! Fixed type property in Block.toSummary()

v0.2.3 - 2021-02-08

Updates to the Block.toSummary() and (indirectly) Block.toJSON() functions.

+ Added haiku string to Block.toSummary()
# Changed the order of properties in Block.toSummary()
- Removed hdrlen from Block.toSummary()

v0.2.2 - 2021-02-07

There were some unnoticed artifacts from old code in the Block class causing transactions and ledger entries to be misread. This has been addressed and access to transaction and ledger properties now result in a valid outcome. PLEASE NOTE! This release includes BREAKING CHANGES to the specification for the TXReference class.

! Fixed the way transactions and ledger entries are derived from the Block class
# Changed the TXReference class specification to include the source address

v0.2.1 - 2021-02-04

Found a need to Summarize a Block class to block header and trailer info, excluding block contents.

+ Added toSummary() to Block class

v0.2.0 - 202-01-22

The big ES6 Module Overhaul. "Big Arrow" type functions, promises and async/await compatibility. Introduces:

  • the Mochimo module as the basis for all things great and delicious, replacing silly names like Core or MochimoCore
  • async/await Promise behavior throughout the module
  • standard get* functions for common network requests, directly accesible in the Mochimo module
  • internal LOG module for easier management of API debugging
+ Added LOG* class to module
+ Added LEntry*, TXReference*, and TXEntry* blockchain related classes to module
+ Added BlockTrailer, Block, and Tfile blockchain related classes to module
+ Added Trigg class with limited functionality to module (not documented)
! Fixed potential duplicate peer handling in node.socket "data" event
# Changed Node class format to hold static functions handling peer communication
# Changed commenting style for ability to easily comment out segments of code
# Changed scope of certain internal functions to suit multiple top level classes
- Removed unnecessary peer handling in Mochimo module
- Removed erroneous functions in Mochimo module

! Fixed spelling of asterisk in DOCS/CHANGELOG
! Fixed some descriptions in DOCS/README.MD

# (*) asterisk indicates private

v0.1.1 - 2019-10-31

Introduces:

  • various bug fixes and updates to Debug logging for Core() functions
! Fixed stopwatch issue with Core.mapNetwork()
! Fixed reset functionality in Core.mapNetwork()
! Fixed incorrect return value for Core.addPeer()*
# Changed Debug logging for Core.addPeer()*
# Changed Debug logging for Core.callserver()

# (*) asterisk indicates private

v0.1.0 - 2019-10-22

  • Initial pre-release v0.1.0 4e81341
  • Introduces base Mochimo Network integration class Core()
+ Added Return Status Constants [ VEOK, ...]
+ Added Compatibility Bit Constants [ C_PUSH, ...]
+ Added INVALID_SOCKET Constant
+ Added OP Code Constants [ OP_NULL, OP_HELLO, ...]
+ Added Typdefs for Node and NodeInfo Objects
+ Added Class Core(), basic Mochimo Network integration
+ Added Core.callserver()
+ Added Core.decodeInfo()
+ Added Core.mapNetwork()
+ Added Core.getCurrentPeers()
+ Added Core.getRecentPeers()
+ Added Core.setCbits()
+ Added Core.setCorems()
+ Added Core.setDebug()
+ Added Core.setMaxSockets()
+ Added Core.setPort()
+ Added Core.setPversion()

+ Added Initial Documentation
+ Added Example mapnetwork.js