VAMMetadataOnlyReview class
Signed metadata-only review. DECISION validation MUST equal APPROVE_METADATA_ONLY; no candidate binary or CID fields exist. The metadata-review signed projection contains uppercase schema field names in schema declaration order: REVIEWER_ID; CAPABILITY_ID; REVIEWER_ROLE encoded as its unsigned enum integer; REPOSITORY; ISSUE_NUMBER; ENTITY_ID; VAM_ID; NONCE; DECISION encoded as its unsigned enum integer; CANDIDATE_ID; CANDIDATE_METADATA_SHA256; DECIDED_AT; REASONS; COMMENT when present; ANNOTATIONS; SIGNATURE_TYPE; and PREVIOUS_DECISION_SHA256 when present. Absent optional fields are omitted and arrays preserve order. A verifier reconstructs exactly this projection, applies RFC 8785 JCS, hashes the UTF-8 serialization bytes, compares ENVELOPE_SHA256, and verifies SIGNATURE over the raw 32-byte digest. ENVELOPE_SHA256 and SIGNATURE are excluded from the projection. The verifier must also enforce repository, issue, entity, and VAM equality; nonce single use; role authorization; exact metadata binding; and DECISION equal to APPROVE_METADATA_ONLY before trusting the decision.
Constructors
-
VAMMetadataOnlyReview(List<
int> bytes) -
factory
Properties
-
ANNOTATIONS
→ List<
VAMAnnotation> ? -
no setter
- CANDIDATE_ID → String?
-
no setter
- CANDIDATE_METADATA_SHA256 → String?
-
64 lowercase hexadecimal SHA-256 of the RFC 8785 JCS canonical JSON VAMSource projection using uppercase field names.
The VAMSource projection always includes SOURCE_RECORD_ID and SOURCE_URL; includes SOURCE_NAME, OBSERVED_AT, LICENSE_NAME, ATTRIBUTION, SOURCE_METADATA_SHA256, and NOTES only when present; and always includes LICENSE_CLASS, REDISTRIBUTION_PERMISSION, and DERIVATIVE_PERMISSION as unsigned enum integers. It contains no other fields.
A verifier reconstructs this projection from the candidate SOURCE and compares the digest before trusting DECISION.
no setter
- candidateId → String?
-
no setter
- candidateMetadataSha256 → String?
-
no setter
- CAPABILITY_ID → String?
-
no setter
- capabilityId → String?
-
no setter
- COMMENT → String?
-
no setter
- DECIDED_AT → String?
-
no setter
- decidedAt → String?
-
no setter
- DECISION → visualAssetDecisionKind
-
no setter
- ENTITY_ID → String?
-
no setter
- entityId → String?
-
no setter
- ENVELOPE_SHA256 → String?
-
no setter
- envelopeSha256 → String?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- ISSUE_NUMBER → String?
-
no setter
- issueNumber → String?
-
no setter
- NONCE → String?
-
no setter
- PREVIOUS_DECISION_SHA256 → String?
-
no setter
- previousDecisionSha256 → String?
-
no setter
-
REASONS
→ List<
String> ? -
no setter
- REPOSITORY → String?
-
no setter
- REVIEWER_ID → String?
-
no setter
- REVIEWER_ROLE → visualAssetReviewerRole
-
no setter
- reviewerId → String?
-
no setter
- reviewerRole → visualAssetReviewerRole
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
SIGNATURE
→ List<
int> ? -
no setter
- SIGNATURE_TYPE → String?
-
no setter
- signatureType → String?
-
no setter
- VAM_ID → String?
-
no setter
- vamId → String?
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
reader
→ const Reader<
VAMMetadataOnlyReview>