Skip to content

Conversation

@burgerdev
Copy link
Member

This PR moves the history package into the common internal directory so that the SDK can make use of the definitions, in particular the Transition object. What I'm trying to enable is something like the following code for #1948:

func buildTransitionChain(manifests [][]byte) []*history.Transition {
	transitions := make([]*history.Transition, 0, len(manifests))
	lastTransitionHash := [history.HashSize]byte{}
	for _, m := range manifests {
		t := &history.Transition{
			PreviousTransitionHash: lastTransitionHash,
			ManifestHash: history.Digest(m),
		}
		transitions = append(transitions, t)
		lastTransitionHash = t.Digest()
	}
	return transitions
}

@burgerdev burgerdev requested a review from katexochen November 20, 2025 18:00
@burgerdev burgerdev added the no changelog PRs not listed in the release notes label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants