src/cryptonote_core/uptime_proof.cpp
//Constructor for the uptime proof, will take the master node keys as a param and sign 
Constructor for the uptime proof, will take the master node keys as a param and sign
Constructor for the uptime proof will take the master node keys as a param and sign
Proof::Proof(
        uint32_t mn_public_ip,
        uint16_t mn_storage_https_port,
        uint16_t mn_storage_omq_port,
        const std::array<uint16_t, 3> ss_version,
        uint16_t quorumnet_port,
        const std::array<uint16_t, 3> belnet_version,
        const master_nodes::master_node_keys& keys) :
    version{BELDEX_VERSION},
    pubkey{keys.pub},
    timestamp{static_cast<uint64_t>(time(nullptr))},
    public_ip{mn_public_ip},
    pubkey_ed25519{keys.pub_ed25519},
    qnet_port{quorumnet_port},
    storage_https_port{mn_storage_https_port},
    storage_omq_port{mn_storage_omq_port},
    storage_server_version{ss_version},
    belnet_version{belnet_version}
{
  crypto::hash hash = hash_uptime_proof();
  crypto::generate_signature(hash, keys.pub, keys.key, sig);
  crypto_sign_detached(sig_ed25519.data, NULL, reinterpret_cast<unsigned char *>(hash.data), sizeof(hash.data), keys.key_ed25519.data);
}
Proof :: Proof ( uint32_t mn_public_ip , uint16_t mn_storage_https_port , uint16_t mn_storage_omq_port , const std :: array < uint16_t , 3 > ss_version , uint16_t quorumnet_port , const std :: array < uint16_t , 3 > belnet_version , const master_nodes :: master_node_keys & keys ) : version { BELDEX_VERSION } , pubkey { keys . pub } , timestamp { static_cast < uint64_t > ( time ( nullptr ) ) } , public_ip { mn_public_ip } , pubkey_ed25519 { keys . pub_ed25519 } , qnet_port { quorumnet_port } , storage_https_port { mn_storage_https_port } , storage_omq_port { mn_storage_omq_port } , storage_server_version { ss_version } , belnet_version { belnet_version } { crypto :: hash hash = hash_uptime_proof ( ) ; crypto :: generate_signature ( hash , keys . pub , keys . key , sig ) ; crypto_sign_detached ( sig_ed25519 . data , NULL , reinterpret_cast < unsigned char * > ( hash . data ) , sizeof ( hash . data ) , keys . key_ed25519 . data ) ; }
Constructor for the uptime proof, will take the master node keys as a param and sign
Constructor for the uptime proof will take the master node keys as a param and sign