Skip to content

Commit

Permalink
Merge pull request #146 from glouvigny/sigchain
Browse files Browse the repository at this point in the history
fix(sigchain): removed unused field SigChain.PublicKey from proto
  • Loading branch information
glouvigny committed Aug 21, 2018
2 parents 158c807 + a90f7b4 commit e4d39ce
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 94 deletions.
1 change: 0 additions & 1 deletion core/crypto/sigchain/sigchain.go
Expand Up @@ -96,7 +96,6 @@ func (m *SigChain) Init(cryptoImpl keypair.Interface, identityID string) error {
return err
}

m.PublicKey = publicKey
m.UserId = identityID
m.Events = []*SigEvent{&event}

Expand Down
132 changes: 41 additions & 91 deletions core/crypto/sigchain/sigchain.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions core/crypto/sigchain/sigchain.proto
Expand Up @@ -36,8 +36,7 @@ message SigEvent {

message SigChain {
string user_id = 1;
bytes public_key = 2; // See x509.MarshalPKIXPublicKey
repeated SigEvent events = 3;
repeated SigEvent events = 2;
}

message EventExtension {
Expand Down

0 comments on commit e4d39ce

Please sign in to comment.