factory Nonce.fromJson(Map<String, dynamic> json) { return Nonce(BytesUtils.tryFromHexString(json["hash"])); }