Skip to content

Validation of addresses #183

Description

@youkaicountry

CLI currently allows non-address values to be passed in as address arguments.

Better validation in the parser should be added, by improving the regex. Additionally, the IsValidAddress function from util should be invoked by the parser.

Checksum should be ensured:
https://medium.com/coinmonks/how-to-generate-a-bitcoin-address-step-by-step-9d7fcbf1ad0b

The self keyword should also be allowed. The regex should ensure self is recognized as an address, and validation should not be done on it. Addresses that are "self" should resolve to the currently opened wallet address, if any.

PR #151 adds better validation via regex

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions