Base58Data.validated constructor

Base58Data.validated(
  1. String from
)

Creates a Base58Data value from a String. Validates that the input String is a valid Base-58 encoding. @param from the String to create the Base58Data from. @return a DataEncodingValidationFailure representing a validation error or the Base58Data instance

Implementation

Base58Data.validated(String from)
    : value = Base58Encoder.instance.decode(from);