Skip to content

Commit

Permalink
update to use the logverification module (#12)
Browse files Browse the repository at this point in the history
* update to use the logverification module

remove the copy stored in demos and update references

re AB#9586

* fixup! update to use the logverification module

---------

Co-authored-by: Henry Jewell <[email protected]>
  • Loading branch information
henry739 and Henry Jewell authored Jun 7, 2024
1 parent eeaab19 commit 3e6e5b8
Show file tree
Hide file tree
Showing 24 changed files with 12 additions and 1,511 deletions.
2 changes: 1 addition & 1 deletion completeness/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/datatrails/go-datatrails-common v0.16.1
github.com/datatrails/go-datatrails-demos/logverification v0.0.3
github.com/datatrails/go-datatrails-logverification v0.1.2
github.com/stretchr/testify v1.9.0
)

Expand Down
4 changes: 2 additions & 2 deletions completeness/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ github.com/datatrails/go-datatrails-common v0.16.1 h1:kaNOwyu8EmBbIR44daWDiUZxBt
github.com/datatrails/go-datatrails-common v0.16.1/go.mod h1:IEcuwUaFl+bI1tt30r+Ov2+nvpcAZH/kXmAPGFjkwT4=
github.com/datatrails/go-datatrails-common-api-gen v0.4.8 h1:IzrhGHi9TyEASjk06QjsayjtpXYCKuDt78+ffLuOCNM=
github.com/datatrails/go-datatrails-common-api-gen v0.4.8/go.mod h1:zlwFPJXYAK7yqgLtxKUgkF5gw9ddxoqWS+Ruhf+Ksw0=
github.com/datatrails/go-datatrails-demos/logverification v0.0.3 h1:P8DU8ZSVqOmMkm37LWhxpWXrBPwhExuGSXpJ+306LyE=
github.com/datatrails/go-datatrails-demos/logverification v0.0.3/go.mod h1:5uMSYrfH8l3RNtiu934BXhwym9TorhSp375O188MJrM=
github.com/datatrails/go-datatrails-logverification v0.1.2 h1:VohfbxpYzbV6nrW2JerUqy7bElyl0oR78ZXY8g80YYI=
github.com/datatrails/go-datatrails-logverification v0.1.2/go.mod h1:0n2sTXhR9LUT5w3+KxqXGMs5XIVRa7Ip2RJ6QgCWpVY=
github.com/datatrails/go-datatrails-merklelog/massifs v0.0.7 h1:844V2QxLhVmSkOISu00qHMxs4+XpGU2tHQ433S3akHY=
github.com/datatrails/go-datatrails-merklelog/massifs v0.0.7/go.mod h1:eNMW+ZfyGT4ttj/vAE56Ut1uWfdc9zW1W7yIIl2XF1k=
github.com/datatrails/go-datatrails-merklelog/mmr v0.0.1 h1:XggMVejsJ72cAL/msjPhQUSQNeElSh/O1zZcvX4d4JU=
Expand Down
2 changes: 1 addition & 1 deletion completeness/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/datatrails/go-datatrails-common/azblob"
"github.com/datatrails/go-datatrails-demos/logverification"
"github.com/datatrails/go-datatrails-logverification/logverification"
)

/**
Expand Down
8 changes: 4 additions & 4 deletions integrity/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ module github.com/datatrails/go-datatrails-demos/integrity

go 1.22

require github.com/datatrails/go-datatrails-common v0.16.1

require (
github.com/datatrails/go-datatrails-common v0.16.1
github.com/datatrails/go-datatrails-demos/logverification v0.0.3
github.com/datatrails/go-datatrails-logverification v0.1.2
github.com/stretchr/testify v1.9.0
)

require github.com/stretchr/testify v1.9.0

require (
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions integrity/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ github.com/datatrails/go-datatrails-common v0.16.1 h1:kaNOwyu8EmBbIR44daWDiUZxBt
github.com/datatrails/go-datatrails-common v0.16.1/go.mod h1:IEcuwUaFl+bI1tt30r+Ov2+nvpcAZH/kXmAPGFjkwT4=
github.com/datatrails/go-datatrails-common-api-gen v0.4.8 h1:IzrhGHi9TyEASjk06QjsayjtpXYCKuDt78+ffLuOCNM=
github.com/datatrails/go-datatrails-common-api-gen v0.4.8/go.mod h1:zlwFPJXYAK7yqgLtxKUgkF5gw9ddxoqWS+Ruhf+Ksw0=
github.com/datatrails/go-datatrails-demos/logverification v0.0.3 h1:P8DU8ZSVqOmMkm37LWhxpWXrBPwhExuGSXpJ+306LyE=
github.com/datatrails/go-datatrails-demos/logverification v0.0.3/go.mod h1:5uMSYrfH8l3RNtiu934BXhwym9TorhSp375O188MJrM=
github.com/datatrails/go-datatrails-logverification v0.1.2 h1:VohfbxpYzbV6nrW2JerUqy7bElyl0oR78ZXY8g80YYI=
github.com/datatrails/go-datatrails-logverification v0.1.2/go.mod h1:0n2sTXhR9LUT5w3+KxqXGMs5XIVRa7Ip2RJ6QgCWpVY=
github.com/datatrails/go-datatrails-merklelog/massifs v0.0.7 h1:844V2QxLhVmSkOISu00qHMxs4+XpGU2tHQ433S3akHY=
github.com/datatrails/go-datatrails-merklelog/massifs v0.0.7/go.mod h1:eNMW+ZfyGT4ttj/vAE56Ut1uWfdc9zW1W7yIIl2XF1k=
github.com/datatrails/go-datatrails-merklelog/mmr v0.0.1 h1:XggMVejsJ72cAL/msjPhQUSQNeElSh/O1zZcvX4d4JU=
Expand Down
4 changes: 2 additions & 2 deletions integrity/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/datatrails/go-datatrails-common/azblob"
"github.com/datatrails/go-datatrails-demos/logverification"
"github.com/datatrails/go-datatrails-logverification/logverification"
)

/**
Expand Down Expand Up @@ -98,7 +98,7 @@ func IntegrityDemo(eventJson []byte) (verified bool, err error) {
}

// now verify the public event is in the merklelog
return logverification.VerifyEvent(reader, []byte(eventNoPublicPrefix), logverification.WithTenantId(publicTenantID))
return logverification.VerifyEvent(reader, []byte(eventNoPublicPrefix), logverification.WithMassifTenantId(publicTenantID))

}

Expand Down
8 changes: 0 additions & 8 deletions logverification/consts.go

This file was deleted.

51 changes: 0 additions & 51 deletions logverification/consts_test.go

This file was deleted.

10 changes: 0 additions & 10 deletions logverification/eventhasher.go

This file was deleted.

82 changes: 0 additions & 82 deletions logverification/eventhelpers.go

This file was deleted.

62 changes: 0 additions & 62 deletions logverification/go.mod

This file was deleted.

Loading

0 comments on commit 3e6e5b8

Please sign in to comment.