Skip to content

Use enums for Network types instead of strings #65

@danielnordh

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`
}

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