Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Remove references to tinkpb.Keyset (#1240)
Browse files Browse the repository at this point in the history
* Proto: authorizewd_keys -> authorized_keyset

* client.User

* rm core/api/type

* Read and Write []byte keysets
  • Loading branch information
gdbelvin committed Mar 11, 2019
1 parent 89d0f47 commit 4b99d01
Show file tree
Hide file tree
Showing 19 changed files with 290 additions and 773 deletions.
9 changes: 4 additions & 5 deletions cmd/keytransparency-client/cmd/post.go
Expand Up @@ -27,9 +27,8 @@ import (
"github.com/spf13/viper"
"google.golang.org/grpc"

"github.com/google/keytransparency/core/client"
"github.com/google/keytransparency/core/crypto/tinkio"

tpb "github.com/google/keytransparency/core/api/type/type_go_proto"
)

var (
Expand Down Expand Up @@ -99,10 +98,10 @@ User email MUST match the OAuth account used to authorize the update.
if err != nil {
return fmt.Errorf("updateKeys() failed: %v", err)
}
u := &tpb.User{
UserId: userID,
u := &client.User{
UserID: userID,
PublicKeyData: profileData,
AuthorizedKeys: authorizedKeys.Keyset(),
AuthorizedKeys: authorizedKeys,
}
timeout := viper.GetDuration("timeout")
cctx, cancel := context.WithTimeout(ctx, timeout)
Expand Down
43 changes: 0 additions & 43 deletions core/api/type/type.proto

This file was deleted.

0 comments on commit 4b99d01

Please sign in to comment.