Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::crypto::r1::private_key_shim Struct Reference

#include <elliptic_r1.hpp>

Inheritance diagram for fc::crypto::r1::private_key_shim:
Collaboration diagram for fc::crypto::r1::private_key_shim:

Public Types

using signature_type = signature_shim
 
using public_key_type = public_key_shim
 
- Public Types inherited from fc::crypto::shim< private_key_secret >
using data_type
 

Public Member Functions

signature_type sign (const sha256 &digest, bool require_canonical=true) const
 
public_key_type get_public_key () const
 
sha512 generate_shared_secret (const public_key_type &pub_key) const
 
- Public Member Functions inherited from fc::crypto::shim< private_key_secret >
 shim ()
 
 shim (data_type &&data)
 
 shim (const data_type &data)
 
const data_typeserialize () const
 

Static Public Member Functions

static private_key_shim generate ()
 

Additional Inherited Members

- Public Attributes inherited from fc::crypto::shim< private_key_secret >
data_type _data
 

Detailed Description

Definition at line 153 of file elliptic_r1.hpp.

Member Typedef Documentation

◆ public_key_type

◆ signature_type

Member Function Documentation

◆ generate()

static private_key_shim fc::crypto::r1::private_key_shim::generate ( )
inlinestatic

Definition at line 173 of file elliptic_r1.hpp.

174 {
175 return private_key_shim(private_key::generate().get_secret());
176 }
static private_key generate()
Here is the call graph for this function:

◆ generate_shared_secret()

sha512 fc::crypto::r1::private_key_shim::generate_shared_secret ( const public_key_type & pub_key) const
inline

Definition at line 168 of file elliptic_r1.hpp.

169 {
170 return private_key::regenerate(_data).get_shared_secret(public_key(pub_key.serialize()));
171 }
fc::sha512 get_shared_secret(const public_key &pub) const
static private_key regenerate(const fc::sha256 &secret)
Here is the call graph for this function:

◆ get_public_key()

public_key_type fc::crypto::r1::private_key_shim::get_public_key ( ) const
inline

Definition at line 163 of file elliptic_r1.hpp.

164 {
166 }
public_key_type get_public_key() const
const data_type & serialize() const
Definition common.hpp:188
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sign()

signature_type fc::crypto::r1::private_key_shim::sign ( const sha256 & digest,
bool require_canonical = true ) const
inline

Definition at line 158 of file elliptic_r1.hpp.

159 {
160 return signature_type(private_key::regenerate(_data).sign_compact(digest));
161 }
fc::sha256 digest(const T &value)
Definition digest.hpp:9
Here is the call graph for this function:

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