Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Mar 30, 2024
1 parent b0d9ff2 commit 8add5d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
6 changes: 1 addition & 5 deletions server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ module go.dedis.ch/hbt/server

go 1.21

replace go.dedis.ch/dela => ../../dela

//replace go.dedis.ch/purb-db => ../../purb-db

require (
github.com/gorilla/mux v1.8.1
github.com/rs/zerolog v1.31.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.8.4
go.dedis.ch/dela v0.0.0-20231011144949-4677467c030c
go.dedis.ch/dela v0.0.0-20240330091609-33fd2a361d2d
go.dedis.ch/kyber/v3 v3.1.1-0.20231024084410-31ea167adbbb
go.dedis.ch/purb-db v0.0.1
go.mongodb.org/mongo-driver v1.13.2
Expand Down
2 changes: 2 additions & 0 deletions server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsr
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.dedis.ch/dela v0.0.0-20240330091609-33fd2a361d2d h1:XZpqRPToitJS/siNEg0Ubbx48m0oCxehCWBcQFjAb74=
go.dedis.ch/dela v0.0.0-20240330091609-33fd2a361d2d/go.mod h1:uFDET0WctO22NxqycVcgZhJM6lH9n1wFiGn2GyMx/+I=
go.dedis.ch/fixbuf v1.0.3 h1:hGcV9Cd/znUxlusJ64eAlExS+5cJDIyTyEG+otu5wQs=
go.dedis.ch/fixbuf v1.0.3/go.mod h1:yzJMt34Wa5xD37V5RTdmp38cz3QhMagdGoem9anUalw=
go.dedis.ch/kyber/v3 v3.0.4/go.mod h1:OzvaEnPvKlyrWyp3kGXlFdp7ap1VC6RkZDTaPikqhsQ=
Expand Down
2 changes: 1 addition & 1 deletion server/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tmux new-window -t ${S} -n smc
./start_chain.sh -t ${L}
./start_registry.sh -t ${L}
./start_smc.sh -t ${L}
#tmux send-keys -t ${S}:smc.0 "./publish_roster.sh" C-m
tmux send-keys -t ${S}:smc.0 "./publish_roster.sh" C-m

# attach to session
tmux select-pane -t ${S}:blockchain.0
Expand Down
13 changes: 5 additions & 8 deletions server/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import (
const keySize = 32

func main() {
// create a secret symmetric key
symKey := key.NewSymetric(keySize)

// PRETEND TO BE A USER
// ---------------------------------------------------------

Expand All @@ -24,6 +21,9 @@ func main() {
doc := createDocument("John Doe", "12AB456789", 0, "./passport.jpg")
log.Info().Msg("SUCCESS! created new document")

// create a secret symmetric key
symKey := key.NewSymetric(keySize)

// add the document to the registry
log.Info().Msg("ADD document to the registry")
docid, err := user.RegistrationAdd(doc, symKey)
Expand Down Expand Up @@ -75,13 +75,10 @@ func main() {
log.Fatal().Msg("symmetric key mismatch")
}

// encrypt binary array with symmetric key
// and save it to the registry

// TODO: get the encrypted document from the registry
// TODO: decrypt the document - optional
// TODO: decrypt the document
// TODO: update the document status to registered
// TODO: encrypt the document - optional
// TODO: encrypt the document
// TODO: save the document back to the registry
}

Expand Down

0 comments on commit 8add5d7

Please sign in to comment.