Skip to content

Use enums for Network types instead of strings #65

Description

@danielnordh

To simplify switch statements depending on the Network type it would be helpful if Network was enums instead of strings.
(I assume this is similar in all languages but specifically wanted this in Swift)

See BDK:

public enum Network {
    
    case `bitcoin`
    case `testnet`
    case `signet`
    case `regtest`
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions