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

Public Member Functions

 sign_visitor (const sha256 &digest, bool require_canonical)
 
template<typename KeyType >
signature::storage_type operator() (const KeyType &key) const
 

Public Attributes

const sha256_digest
 
bool _require_canonical
 

Detailed Description

Definition at line 21 of file private_key.cpp.

Constructor & Destructor Documentation

◆ sign_visitor()

fc::crypto::sign_visitor::sign_visitor ( const sha256 & digest,
bool require_canonical )
inline

Definition at line 22 of file private_key.cpp.

24 ,_require_canonical(require_canonical)
25 {}
fc::sha256 digest(const T &value)
Definition digest.hpp:9

Member Function Documentation

◆ operator()()

template<typename KeyType >
signature::storage_type fc::crypto::sign_visitor::operator() ( const KeyType & key) const
inline

Definition at line 28 of file private_key.cpp.

29 {
30 return signature::storage_type(key.sign(_digest, _require_canonical));
31 }

Member Data Documentation

◆ _digest

const sha256& fc::crypto::sign_visitor::_digest

Definition at line 33 of file private_key.cpp.

◆ _require_canonical

bool fc::crypto::sign_visitor::_require_canonical

Definition at line 34 of file private_key.cpp.


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