bitcore/docs/encoding.md

18 lines
682 B
Markdown
Raw Normal View History

---
2014-12-23 07:28:31 -08:00
title: Encoding
description: Utilities for encoding information in bitcoin standard formats.
---
2014-12-19 14:23:48 -08:00
# Encoding
2014-12-12 11:26:33 -08:00
## Description
2014-11-24 09:14:58 -08:00
2014-12-15 21:45:23 -08:00
The `bitcore.Encoding` namespace contains utilities for encoding information in common formats in the bitcoin ecosystem.
2014-11-24 09:14:58 -08:00
2014-12-12 11:26:33 -08:00
## Base58 & Base58Check
2014-11-24 09:14:58 -08:00
2014-12-15 21:45:23 -08:00
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.
2014-11-24 09:14:58 -08:00
## BufferReader & BufferWriter
These classes are used internally to write information in buffers.