Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::crypto::generate_shared_secret_visitor Struct Reference
Inheritance diagram for fc::crypto::generate_shared_secret_visitor:
Collaboration diagram for fc::crypto::generate_shared_secret_visitor:

Public Member Functions

 generate_shared_secret_visitor (const public_key::storage_type &pub_storage)
 
template<typename KeyType >
sha512 operator() (const KeyType &key) const
 

Public Attributes

const public_key::storage_type_pub_storage
 

Detailed Description

Definition at line 42 of file private_key.cpp.

Constructor & Destructor Documentation

◆ generate_shared_secret_visitor()

fc::crypto::generate_shared_secret_visitor::generate_shared_secret_visitor ( const public_key::storage_type & pub_storage)
inline

Definition at line 43 of file private_key.cpp.

44 :_pub_storage(pub_storage)
45 {}
const public_key::storage_type & _pub_storage

Member Function Documentation

◆ operator()()

template<typename KeyType >
sha512 fc::crypto::generate_shared_secret_visitor::operator() ( const KeyType & key) const
inline

Definition at line 48 of file private_key.cpp.

49 {
50 using PublicKeyType = typename KeyType::public_key_type;
51 return key.generate_shared_secret(std::template get<PublicKeyType>(_pub_storage));
52 }

Member Data Documentation

◆ _pub_storage

const public_key::storage_type& fc::crypto::generate_shared_secret_visitor::_pub_storage

Definition at line 54 of file private_key.cpp.


The documentation for this struct was generated from the following file: