DECENT
Functions
Crypto API

Functions

string graphene::app::crypto_api::info ()
 
fc::ecc::blind_signature graphene::app::crypto_api::blind_sign (const extended_private_key_type &key, const fc::ecc::blinded_hash &hash, int i)
 
signature_type graphene::app::crypto_api::unblind_signature (const extended_private_key_type &key, const extended_public_key_type &bob, const fc::ecc::blind_signature &sig, const fc::sha256 &hash, int i)
 
fc::ecc::commitment_type graphene::app::crypto_api::blind (const fc::ecc::blind_factor_type &blind, uint64_t value)
 
bool graphene::app::crypto_api::verify_sum (const std::vector< commitment_type > &commits_in, const std::vector< commitment_type > &neg_commits_in, int64_t excess)
 
verify_range_result graphene::app::crypto_api::verify_range (const fc::ecc::commitment_type &commit, const std::vector< char > &proof)
 
std::vector< char > graphene::app::crypto_api::range_proof_sign (uint64_t min_value, const commitment_type &commit, const blind_factor_type &commit_blind, const blind_factor_type &nonce, int8_t base10_exp, uint8_t min_bits, uint64_t actual_value)
 
verify_range_proof_rewind_result graphene::app::crypto_api::verify_range_proof_rewind (const blind_factor_type &nonce, const fc::ecc::commitment_type &commit, const std::vector< char > &proof)
 
range_proof_info graphene::app::crypto_api::range_get_info (const std::vector< char > &proof)
 

Detailed Description

Function Documentation

◆ blind()

commitment_type graphene::app::crypto_api::blind ( const fc::ecc::blind_factor_type &  blind,
uint64_t  value 
)
Parameters
blind
value

Definition at line 444 of file api.cpp.

◆ blind_sign()

blind_signature graphene::app::crypto_api::blind_sign ( const extended_private_key_type key,
const fc::ecc::blinded_hash &  hash,
int  i 
)
Parameters
key
hash
i

Definition at line 430 of file api.cpp.

◆ info()

string graphene::app::crypto_api::info ( )
inline

Get the name of the API.

Returns
the name of the API

Definition at line 346 of file api.hpp.

◆ range_get_info()

range_proof_info graphene::app::crypto_api::range_get_info ( const std::vector< char > &  proof)
Parameters
proof

Definition at line 493 of file api.cpp.

◆ range_proof_sign()

std::vector< char > graphene::app::crypto_api::range_proof_sign ( uint64_t  min_value,
const commitment_type &  commit,
const blind_factor_type &  commit_blind,
const blind_factor_type &  nonce,
int8_t  base10_exp,
uint8_t  min_bits,
uint64_t  actual_value 
)
Parameters
min_value
commit
commit_blind
nonce
base10_exp
min_bits
actual_value

Definition at line 466 of file api.cpp.

◆ unblind_signature()

signature_type graphene::app::crypto_api::unblind_signature ( const extended_private_key_type key,
const extended_public_key_type bob,
const fc::ecc::blind_signature &  sig,
const fc::sha256 &  hash,
int  i 
)
Parameters
key
bob
sig
hash
i

Definition at line 435 of file api.cpp.

◆ verify_range()

verify_range_result graphene::app::crypto_api::verify_range ( const fc::ecc::commitment_type &  commit,
const std::vector< char > &  proof 
)
Parameters
commit
proof

Definition at line 459 of file api.cpp.

◆ verify_range_proof_rewind()

verify_range_proof_rewind_result graphene::app::crypto_api::verify_range_proof_rewind ( const blind_factor_type &  nonce,
const fc::ecc::commitment_type &  commit,
const std::vector< char > &  proof 
)
Parameters
nonce
commit
proof

Definition at line 477 of file api.cpp.

◆ verify_sum()

bool graphene::app::crypto_api::verify_sum ( const std::vector< commitment_type > &  commits_in,
const std::vector< commitment_type > &  neg_commits_in,
int64_t  excess 
)
Parameters
commits_in
neg_commits_in
excess

Definition at line 454 of file api.cpp.