Update doc.go to align with the current implementation of Attestation… #45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the doc.go file to ensure it aligns with the current implementation of the AttestationResult structure and its related components. The changes include:
1.Timestamp Field:
Original: myTimestamp := time.Now().Format(time.RFC3339)
Updated: myTimestamp := time.Now().Unix()
Reference: AttestationResult struct in ear.go uses Unix timestamp (IssuedAt field).
2.Included VerifierID and Submods in AttestationResult:
Original:
Updated:
Reference: AttestationResult struct in ear.go includes VerifierID and Submods.
3.Updating TrustVector in Submods:
Original: ar.TrustVector := &tv
Updated: ar.Submods["submodName"].TrustVector = &tv
Reference: AttestationResult struct in ear.go uses Submods to store TrustVector.
4.Handling Appraisal Status:
Original: if *ar.Status != TrustTierAffirming
Updated: if *ar.Submods["submodName"].Status != TrustTierAffirming
Reference: AttestationResult struct in ear.go uses Submods to store Status.
5.Pretty Printing TrustVector:
Original: fmt.Print(ar.TrustVector.Report(short, color))
Updated: fmt.Print(ar.Submods["submodName"].TrustVector.Report(short, color))
Reference: AttestationResult struct in ear.go uses Submods to store TrustVector.
fixes #36