valAddress method

String valAddress()
inherited

Implementation

String valAddress() {
  if (publicKey == null) {
    throw Exception('Could not compute valAddress: missing rawAddress');
  }

  return bech32.encode(Decoded(
      prefix: TerraPubKeys.TERRA_DEV_KEYNAME,
      words: bech32.toWords(publicKey!.rawAddress())));
}