Trait ToTraversalPath

Source
pub trait ToTraversalPath<const ARITY: usize> {
    // Required method
    fn to_traversal_path(&self, height: usize) -> Vec<usize>;
}
Expand description

A trait for Merkle tree index type.

Required Methods§

Source

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Convert the given index to a vector of branch indices given tree height and ARITY.

Implementations on Foreign Types§

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for u8

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for u16

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for u32

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for u64

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for u128

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for usize

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for BigUint

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for Fq

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for Fq

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for Fq

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for Fr

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for Fr

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Source§

impl<const ARITY: usize> ToTraversalPath<ARITY> for Fr

Source§

fn to_traversal_path(&self, height: usize) -> Vec<usize>

Implementors§