checkFilecoinAddress static method

bool checkFilecoinAddress(
  1. String address,
  2. dynamic conf
)

Implementation

static bool checkFilecoinAddress(String address, conf) {
  if (address.startsWith('f410'))
    return RegExp(conf.regExp).hasMatch(address);
  if (address.startsWith('0x'))
    return RegExp(ETH_ADDRESS_REG).hasMatch(address);
  return checkRFC4648Base32(address, conf.prefix);
}