Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add stateless rightWitness computation #8130

Closed
Tracked by #7210
shuse2 opened this issue Feb 9, 2023 · 0 comments · Fixed by #8131
Closed
Tracked by #7210

Add stateless rightWitness computation #8130

shuse2 opened this issue Feb 9, 2023 · 0 comments · Fixed by #8131
Assignees
Milestone

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Feb 9, 2023

Description

Add function in lisk-tree as below.
the size and appendPath are the size and appendPath before including the values, and the values are the data for right witness

calculateRightWitness = (
	size: number,
	appendPath: Buffer[],
	values: Buffer[],
): Buffer[];

Motivation

Add stateless right witness computation using appendpath/size and the appending values in order to compute the rightwitness easily while creating the CCM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant