Class TreeHasher<K, V>

Tree Hasher

TreeHasher

Type Parameters

  • K
  • V

Constructors

Properties

hasher: Hasher
keyType?: Provable<K>
valueType?: Provable<V>

Methods

  • Parameters

    • path: Field
    • leafData: Field

    Returns {
        hash: Field;
        value: Field[];
    }

    • hash: Field
    • value: Field[]
  • Parameters

    • leftData: Field
    • rightData: Field

    Returns {
        hash: Field;
        value: Field[];
    }

    • hash: Field
    • value: Field[]
  • Parameters

    • data: Field[]

    Returns {
        leaf: Field;
        path: Field;
    }

    • leaf: Field
    • path: Field
  • Parameters

    • data: Field[]

    Returns {
        leftNode: Field;
        rightNode: Field;
    }

    • leftNode: Field
    • rightNode: Field