Skip to content

Commit

Permalink
closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
orpheuslummis committed Mar 5, 2022
1 parent 5ef0956 commit dc43d5f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions document/key/dockey.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ func (key DocKey) Bytes() []byte {
return append(buf, key.uuid.Bytes()...)
}

// Verify ensures that the given DocKey is valid as per the DefraDB spec
// to prevent against collions from both honest and dishonest validators
// TODO: Check into better utilizing or dropping context, since we don't recurse
// down
// Verify ensures that the given DocKey is valid as per the DefraDB spec to prevent against
// collisions from both honest and dishonest validators
func (key DocKey) Verify(ctx context.Context, data cid.Cid, peerID string) bool {
parent, ok := ctx.Value("parent").(uuid.UUID)
// if we have a parent then assume were operating on a sub key
Expand Down

0 comments on commit dc43d5f

Please sign in to comment.