hexFromShelleyAddress function

String hexFromShelleyAddress(
  1. String bech32, {
  2. bool uppercase = false,
})

Convert bech32 address payload to hex string. Optionaly uppercase hex string. TODO move to shelley_address.dart

Implementation

String hexFromShelleyAddress(String bech32, {bool uppercase = false}) {
  final result = HEX.encode(unit8BufferFromShelleyAddress(bech32));
  return uppercase ? result.toUpperCase() : result;
}