Rename taproot `*_hidden` API into `*_hidden_nodes`

This commit is contained in:
Dr Maxim Orlovsky 2022-04-05 22:16:59 +02:00
parent 6add0dd9dc
commit e69701e089
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 3 additions and 3 deletions

View File

@ -456,8 +456,8 @@ impl TaprootBuilder {
/// Adds a hidden/omitted node at `depth` to the builder. Errors if the leaves are not provided
/// in DFS walk order. The depth of the root node is 0.
pub fn add_hidden(self, depth: u8, hash: sha256::Hash) -> Result<Self, TaprootBuilderError> {
let node = NodeInfo::new_hidden(hash);
pub fn add_hidden_node(self, depth: u8, hash: sha256::Hash) -> Result<Self, TaprootBuilderError> {
let node = NodeInfo::new_hidden_node(hash);
self.insert(node, depth)
}
@ -555,7 +555,7 @@ pub struct NodeInfo {
impl NodeInfo {
/// Creates a new [`NodeInfo`] with omitted/hidden info.
pub fn new_hidden(hash: sha256::Hash) -> Self {
pub fn new_hidden_node(hash: sha256::Hash) -> Self {
Self {
hash: hash,
leaves: vec![],