Finish the build producing a partial [`PeerKey`].
(self)
| 221 | impl Builder<WithExpiration> { |
| 222 | /// Finish the build producing a partial [`PeerKey`]. |
| 223 | pub fn build_fencepost(self) -> PeerKey { |
| 224 | PeerKey(format!("{:0>11}", self.state.expiration)) |
| 225 | } |
| 226 | /// Set the peer id. Note, a NodeKey is required so the [`PeerEntry`] can be signed. |
| 227 | pub fn with_id(self, id: &NodeKey) -> Builder<WithId<'_>> { |
| 228 | Builder { |