Discover Packages
perun.network/go-perun
wire
package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: May 4, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 20
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package wire contains the serialization logic for sending messages between
Perun nodes over the wire.
Decode decodes multiple primitive values from a reader.
All passed values must be references, not copies.
Encode encodes multiple primitive values into a writer.
All passed values must be copies, not references.
type BigInt struct {
*big .Int
}
BigInt is a serializer big integer.
Decode reads a big.Int from the given stream.
Encode writes a big.Int to the stream.
ByteSlice is a serializer byte slice.
Decode reads a byte slice from the given stream.
Decode reads exactly len(b) bytes.
This means the caller has to specify how many bytes he wants to read.
Encode writes len(b) bytes to the stream. Note that the length itself is not
written to the stream.
Source Files
¶
Directories
¶
Package msg contains all message types, as well as serialising and deserialising logic used in peer communications.
Package msg contains all message types, as well as serialising and deserialising logic used in peer communications.
Click to show internal directories.
Click to hide internal directories.