Add crypto API call to derive a public key child. #536
This commit is contained in:
parent
8df58439b1
commit
84fd629d36
2 changed files with 7 additions and 0 deletions
|
|
@ -464,6 +464,11 @@ namespace graphene { namespace app {
|
|||
{
|
||||
return fc::ecc::range_proof_sign( min_value, commit, commit_blind, nonce, base10_exp, min_bits, actual_value );
|
||||
}
|
||||
|
||||
fc::ecc::public_key crypto_api::child(fc::ecc::public_key public_key, fc::sha256 child)
|
||||
{
|
||||
return public_key_type( public_key.child( child ) );
|
||||
}
|
||||
|
||||
verify_range_proof_rewind_result crypto_api::verify_range_proof_rewind( const blind_factor_type& nonce,
|
||||
const commitment_type& commit,
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ namespace graphene { namespace app {
|
|||
uint8_t min_bits,
|
||||
uint64_t actual_value );
|
||||
|
||||
fc::ecc::public_key child(fc::ecc::public_key public_key, fc::sha256 child);
|
||||
|
||||
verify_range_proof_rewind_result verify_range_proof_rewind( const blind_factor_type& nonce,
|
||||
const fc::ecc::commitment_type& commit,
|
||||
|
|
@ -313,6 +314,7 @@ FC_API(graphene::app::crypto_api,
|
|||
(verify_sum)
|
||||
(verify_range)
|
||||
(range_proof_sign)
|
||||
(child)
|
||||
(verify_range_proof_rewind)
|
||||
(range_get_info)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue