Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Bitcoin ledger definition should use "magic bytes" to identify the network #101

@bonomat

Description

@bonomat

Currently we are using testnet and mainnet when talking about the different networks of Bitcoin.
Every message between bitcoin nodes is prefixed with 4 bytes identifying the network the message is for.

We want to use those 4 bytes to identify the network in our swap messages.
Hints:

  • Think about endianess.
  • Think about hex vs dec encoding.

DoD:

  • replace testnet with testnet3 magic bytes for bitcoin networks
  • replace mainnet with mainnet magic bytes for bitcoin networks

among others, this will need to be updated in the registry

Once this is done:

  • create ticket for updating comit-rs (SWAP message + HTTP API)
  • create ticket for updating comit-i (HTTP API)

Related: comit-network/comit-rs#1127

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions