Add getMerkleProofForFile

This commit is contained in:
Sosthene 2025-06-30 22:45:25 +02:00
parent 9edcc2e897
commit d8422de94e

View File

@ -1414,6 +1414,10 @@ export default class Services {
return this.sdkClient.hash_value(fileBlob, commitedIn, label);
}
public getMerkleProofForFile(processState: ProcessState, attributeName: string): MerkleProofResult {
return this.sdkClient.get_merkle_proof(processState, attributeName);
}
public getLastCommitedState(process: Process): ProcessState | null {
if (process.states.length === 0) return null;
const processTip = process.states[process.states.length - 1].commited_in;