Constructors
constructor
- new MPTree<E, T>(binary: MPTreeBinary, encoding: E, tag: T, unpTx: (<TxType>(encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`, txType?: TxType) => TxUnpacked & {
tag: TxType;
})): MPTree<E, T>
-
Parameters
-
-
encoding: E
-
tag: T
-
unpTx: (<TxType>(encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`, txType?: TxType) => TxUnpacked & {
tag: TxType;
})
-
- <TxType>(encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`, txType?: TxType): TxUnpacked & {
tag: TxType;
}
-
Parameters
-
encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`
-
Optional
txType: TxType
Returns TxUnpacked & {
tag: TxType;
}
Returns MPTree<E, T>
Accessors
isComplete
- get isComplete(): boolean
-
Returns boolean
Methods
get
- get(key: `${E}_${string}`): undefined | Object
-
Returns undefined | Object
isEqual
- isEqual(tree: MPTree<E, T>): boolean
-
Returns boolean
toObject
- toObject(): Record<`${E}_${string}`, Object>
-
Returns Record<`${E}_${string}`, Object>
Deserialize Merkle Patricia Tree
Returns
Merkle Patricia Tree