Skip to content

Module BSV::Wallet::Serializer::GetNetwork::Result

Constants

MAINNET_CODE

Not documented.

TESTNET_CODE

Not documented.

Public Class Methods

deserialize(bytes)

  • @param bytes [String] 1-byte binary
  • @raise [InvalidParameterError] if the byte is not 0x00 or 0x01
  • @return [Hash] { network: :mainnet | :testnet }

serialize(result)

  • @param result [Hash] { network: :mainnet | :testnet }
  • @raise [InvalidParameterError] if +:network+ is not :mainnet or :testnet
  • @return [String] 1-byte binary