From 77c068cd1951b6aa6e5bba36865247d94ca6aa6f Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 2 Jul 2023 11:31:53 -0400 Subject: [PATCH] fix type in config --- veilid-flutter/lib/veilid_config.dart | 12 ++++++------ veilid-flutter/lib/veilid_crypto.dart | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/veilid-flutter/lib/veilid_config.dart b/veilid-flutter/lib/veilid_config.dart index e6a5001e..62fa7e8f 100644 --- a/veilid-flutter/lib/veilid_config.dart +++ b/veilid-flutter/lib/veilid_config.dart @@ -645,8 +645,8 @@ class VeilidConfigRPC { //////////// class VeilidConfigRoutingTable { - List nodeId; - List nodeIdSecret; + List nodeId; + List nodeIdSecret; List bootstrap; int limitOverAttached; int limitFullyAttached; @@ -679,10 +679,10 @@ class VeilidConfigRoutingTable { } VeilidConfigRoutingTable.fromJson(dynamic json) - : nodeId = List.from( - json['node_id'].map((j) => PublicKey.fromJson(j))), - nodeIdSecret = List.from( - json['node_id_secret'].map((j) => PublicKey.fromJson(j))), + : nodeId = List.from( + json['node_id'].map((j) => TypedKey.fromJson(j))), + nodeIdSecret = List.from( + json['node_id_secret'].map((j) => TypedSecret.fromJson(j))), bootstrap = List.from(json['bootstrap'].map((j) => j)), limitOverAttached = json['limit_over_attached'], limitFullyAttached = json['limit_fully_attached'], diff --git a/veilid-flutter/lib/veilid_crypto.dart b/veilid-flutter/lib/veilid_crypto.dart index 881f98db..85ce5f80 100644 --- a/veilid-flutter/lib/veilid_crypto.dart +++ b/veilid-flutter/lib/veilid_crypto.dart @@ -132,6 +132,8 @@ typedef SharedSecret = CryptoKey; typedef CryptoKeyDistance = CryptoKey; typedef TypedKey = Typed; +typedef TypedSecret = Typed; + typedef TypedSignature = Typed; //////////////////////////////////////