Merge pull request #5504 from ZcashFoundation/clarify-precomputed-references

Add comment to zcash_script_new_precomputed_tx about references to input buffers
This commit is contained in:
Kris Nuttycombe 2022-02-08 07:17:33 -07:00 committed by GitHub
commit 9a8038ea62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ enum
///
/// Returns a pointer to the precomputed transaction. Free this with
/// zcash_script_free_precomputed_tx once you are done.
/// The precomputed transaction is guaranteed to not keep a reference to any
/// part of the input buffers, so they can be safely overwritten or deallocated
/// after this function returns.
///
/// If not NULL, err will contain an error/success code for the operation.
void* zcash_script_new_precomputed_tx(