diff --git a/libraries/app/api.cpp b/libraries/app/api.cpp index f262cca7..0d07ef2c 100644 --- a/libraries/app/api.cpp +++ b/libraries/app/api.cpp @@ -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, diff --git a/libraries/app/include/graphene/app/api.hpp b/libraries/app/include/graphene/app/api.hpp index a6ffe0e9..ebca000f 100644 --- a/libraries/app/include/graphene/app/api.hpp +++ b/libraries/app/include/graphene/app/api.hpp @@ -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) )