nym-node-requests 1.21.5-rc.2

Nym Node API endpoint definitions and functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0

use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema)]
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
pub struct NetworkRequester {
    /// Base58 encoded ed25519 EdDSA public key of the network requester.
    pub encoded_identity_key: String,

    /// Base58-encoded x25519 public key used for performing key exchange with remote clients.
    pub encoded_x25519_key: String,

    /// Nym address of this network requester.
    pub address: String,
}