decodeBody static method

UR decodeBody(
  1. String type,
  2. String message
)

Implementation

static UR decodeBody(String type, String message) {
  final cbor = bytewords.decode(message, style: bytewords.Styles.minimal);
  return UR(Uint8List.fromList(HEX.decode(cbor)), type);
}