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

#include <elliptic.hpp>

Inheritance diagram for fc::ecc::private_key_shim:
Collaboration diagram for fc::ecc::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 167 of file elliptic.hpp.

Member Typedef Documentation

◆ public_key_type

◆ signature_type

Member Function Documentation

◆ generate()

static private_key_shim fc::ecc::private_key_shim::generate ( )
inlinestatic

Definition at line 187 of file elliptic.hpp.

188 {
189 return private_key_shim(private_key::generate().get_secret());
190 }
static private_key generate()
Here is the call graph for this function:

◆ generate_shared_secret()

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

Definition at line 182 of file elliptic.hpp.

183 {
184 return private_key::regenerate(_data).get_shared_secret(public_key(pub_key.serialize()));
185 }
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::ecc::private_key_shim::get_public_key ( ) const
inline

Definition at line 177 of file elliptic.hpp.

178 {
180 }
const data_type & serialize() const
Definition common.hpp:188
public_key_type get_public_key() const
Definition elliptic.hpp:177
public_key_shim public_key_type
Definition elliptic.hpp:170
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sign()

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

Definition at line 172 of file elliptic.hpp.

173 {
174 return signature_type(private_key::regenerate(_data).sign_compact(digest, require_canonical));
175 }
fc::sha256 digest(const T &value)
Definition digest.hpp:9
signature_shim signature_type
Definition elliptic.hpp:169
Here is the call graph for this function:

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