From 238ca9f0d8b22aefd4e5334ca532105cb2b17a8b Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Fri, 8 Nov 2019 13:38:37 -0500 Subject: [PATCH] add method to fetch signed records from peerstore --- RFC/0003-routing-records.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RFC/0003-routing-records.md b/RFC/0003-routing-records.md index 989ed0c..62be1b6 100644 --- a/RFC/0003-routing-records.md +++ b/RFC/0003-routing-records.md @@ -183,6 +183,10 @@ We will need to add a few methods to the peer store: - `CertifiedAddrs(peerId) -> Set` - return the set of self-certified addresses for the given peer id +- `SignedRoutingState(peerId) -> Maybe` + - retrive the signed envelope that was most recently added to the peerstore + for the given peer, if any exists. + And possibly: - `IsCertified(peerId, multiaddr) -> Boolean` @@ -190,7 +194,7 @@ And possibly: We'll also need a method that constructs a new `RoutingState` containing our -listen address and wraps it in a signed envelope. This may belong on the Host +listen addresses and wraps it in a signed envelope. This may belong on the Host instead of the peer store, since it needs access to the private signing key. ## Dialing Strategies