TronKey.deserialize constructor

TronKey.deserialize(
  1. List<int> bytes
)

Implementation

factory TronKey.deserialize(List<int> bytes) {
  final decode = TronProtocolBufferImpl.decode(bytes);

  return TronKey(
      address: TronAddress.fromBytes(decode.getField(1)),
      weight: decode.getField(2));
}