Class BitcoinSerializer

  • public class BitcoinSerializer
    extends MessageSerializer

    Methods to serialize and de-serialize messages to the Bitcoin network format as defined in the protocol specification.

    To be able to serialize and deserialize new Message subclasses the following criteria needs to be met.

    • The proper Class instance needs to be mapped to its message name in the names variable below
    • There needs to be a constructor matching: NetworkParameters params, byte[] payload
    • Message.bitcoinSerializeToStream() needs to be properly subclassed