bitcoin-elixir v0.0.1 Bitcoin.Protocol.Message

https://en.bitcoin.it/wiki/Protocol_documentation#Message_structure

Summary

Functions

Returns command associated with given message type

List of supported commands

Returns message type associated with given command

Reads and deserialises bitcoin message in serialised format and returns the parsed result

Serialize message type struct into a full binary message that is ready to be send over the network

Types

t()
t() :: %Bitcoin.Protocol.Message{header: Bitcoin.Protocol.Message.Header.t, payload: Bitcoin.Protocol.Message.Payload.t}

Functions

command_name(message_type)

Returns command associated with given message type

command_names()

List of supported commands

message_type(command)

Returns message type associated with given command

parse(message)
parse(binary) :: t

Reads and deserialises bitcoin message in serialised format and returns the parsed result

parse_stream(message)
serialize(struct)

Serialize message type struct into a full binary message that is ready to be send over the network