digibyte-js
Version:
A pure and powerful JavaScript DigiByte library.
16 lines (8 loc) • 713 B
Markdown
# Encoding
The `digibyte.encoding` namespace contains utilities for encoding information in common formats in the digibyte ecosystem.
## Base58 & Base58Check
Two classes are provided: `Base58` and `Base58Check`. The first one merely encodes/decodes a set of bytes in base58 format. The second one will also take the double `sha256` hash of the information and append the last 4 bytes of the hash as a checksum when encoding, and check this checksum when decoding.
## Precision
The class `Precision` is provided to offer suport to hte bitcoin precision encoding used in DigiAsset transactions.
## BufferReader & BufferWriter
These classes are used internally to write information in buffers.