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

Comments

Split VerifyRevision into Verify{LogRoot,MapRevision#1318

Merged
gdbelvin merged 2 commits intogoogle:masterfrom
gdbelvin:tracker2
Jul 16, 2019
Merged

Split VerifyRevision into Verify{LogRoot,MapRevision#1318
gdbelvin merged 2 commits intogoogle:masterfrom
gdbelvin:tracker2

Conversation

@gdbelvin
Copy link
Contributor

@gdbelvin gdbelvin commented Jul 11, 2019

This PR establishes a nice API pattern:
VerifyX(VerifiedDataFromPreviousStep, UnverifiedInputData) VerifiedDataForNextStep

It is also important because it allows us to verify a log root once, while verifying many map roots in VerifyListHistory.

By establishing a 1:1 relationship between sending requests and verifying log roots, we setup ourselves nicely for a refactoring of the log root tracker into a separate package.

@gdbelvin gdbelvin requested review from a team and thaidn as code owners July 11, 2019 13:02
@codecov

This comment has been minimized.

This enables a 1:1 mapping between log root requests and log root verifications
@gdbelvin gdbelvin requested a review from pav-kv July 15, 2019 19:29
@gdbelvin gdbelvin merged commit 0df7449 into google:master Jul 16, 2019
@gdbelvin gdbelvin deleted the tracker2 branch July 16, 2019 00:38
gdbelvin added a commit to gdbelvin/keytransparency that referenced this pull request Jul 18, 2019
* master: (106 commits)
  Remove unused logVerifier (google#1324)
  Verify Revisions in StreamRevisions (google#1323)
  Pair verifier functions (google#1322)
  Split VerifyRevision into Verify{LogRoot,MapRevision (google#1318)
  Make Previous hash check optional (google#1307)
  Remove VerifySignedMapRoot from VerifierInterface (google#1320)
  Remove trailing whitespace (google#1321)
  Encapsulate Client Verifier State in test vectors (google#1316)
  Pass along err message (google#1314)
  Remove unnessesary func() (google#1319)
  New test vector transcript format (google#1315)
  Track map revision inside mutation (google#1310)
  Move verifier to its own package (google#1312)
  go generate ./... (google#1306)
  Fix proto copying in revisions and paginator tests. (google#1309)
  Fix proto copying in server_test. (google#1308)
  go mod tidy (google#1305)
  Use new TrillianMapWrite API (google#1304)
  Configurable maximum queue depth for metric reporting. (google#1303)
  Proposal to refine docker deployment (google#1302)
  ...
gdbelvin added a commit to gdbelvin/keytransparency that referenced this pull request Jul 18, 2019
* master: (95 commits)
  Remove unused logVerifier (google#1324)
  Verify Revisions in StreamRevisions (google#1323)
  Pair verifier functions (google#1322)
  Split VerifyRevision into Verify{LogRoot,MapRevision (google#1318)
  Make Previous hash check optional (google#1307)
  Remove VerifySignedMapRoot from VerifierInterface (google#1320)
  Remove trailing whitespace (google#1321)
  Encapsulate Client Verifier State in test vectors (google#1316)
  Pass along err message (google#1314)
  Remove unnessesary func() (google#1319)
  New test vector transcript format (google#1315)
  Track map revision inside mutation (google#1310)
  Move verifier to its own package (google#1312)
  go generate ./... (google#1306)
  Fix proto copying in revisions and paginator tests. (google#1309)
  Fix proto copying in server_test. (google#1308)
  go mod tidy (google#1305)
  Use new TrillianMapWrite API (google#1304)
  Configurable maximum queue depth for metric reporting. (google#1303)
  Proposal to refine docker deployment (google#1302)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants