package
0.0.0-20210331065242-323b27c6239d
Repository: https://github.com/classzz/czzutil.git
Documentation: pkg.go.dev
# README
jsonpb
Package jsonpb provides an API for marshaling protobuf objects to JSON and back. There is a golang library to perform these operations, however it converts all byte arrays to base64 strings instead of hex which is typically used by Bitcoin Cash. It also doesn't know to convert little endian byte arrays to big endian.
Thus this package is a wrapper around the original jsonpb package that handles marshaling and unmarshaling to the format expected in Bitcoin Cash.
Installation and Updating
$ go get -u github.com/gcash/bchutil/jsonpb
License
Package jsonpb is licensed under the copyfree ISC License.
# Packages
No description provided by the author
# Functions
Unmarshal unmarshals a JSON object stream into a protocol buffer.
UnmarshalNext unmarshals the next protocol buffer from a JSON object stream.
# Structs
Marshaler is a configurable object for converting between protocol buffer objects and a JSON representation for them.
Unmarshaler is a configurable object for converting from a JSON representation to a protocol buffer object.