Rename taproot `*_hidden` API into `*_hidden_nodes`
This commit is contained in:
parent
6add0dd9dc
commit
e69701e089
|
@ -456,8 +456,8 @@ impl TaprootBuilder {
|
||||||
|
|
||||||
/// Adds a hidden/omitted node at `depth` to the builder. Errors if the leaves are not provided
|
/// 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.
|
/// 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> {
|
pub fn add_hidden_node(self, depth: u8, hash: sha256::Hash) -> Result<Self, TaprootBuilderError> {
|
||||||
let node = NodeInfo::new_hidden(hash);
|
let node = NodeInfo::new_hidden_node(hash);
|
||||||
self.insert(node, depth)
|
self.insert(node, depth)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -555,7 +555,7 @@ pub struct NodeInfo {
|
||||||
|
|
||||||
impl NodeInfo {
|
impl NodeInfo {
|
||||||
/// Creates a new [`NodeInfo`] with omitted/hidden info.
|
/// 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 {
|
Self {
|
||||||
hash: hash,
|
hash: hash,
|
||||||
leaves: vec![],
|
leaves: vec![],
|
||||||
|
|
Loading…
Reference in New Issue