Skip to content

Commit

Permalink
fix: misspelled proto message (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkobetic authored Apr 26, 2022
1 parent 8572daa commit fc27be6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/crypto/PublicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { sha256 } from './encryption'
// PublicKeys can be generated through PrivateKey.generate()
export default class PublicKey implements proto.PublicKey {
timestamp: number
secp256k1Uncompressed: proto.PublicKey_Secp256k1Uncompresed // eslint-disable-line camelcase
secp256k1Uncompressed: proto.PublicKey_Secp256k1Uncompressed // eslint-disable-line camelcase
signature?: Signature

constructor(obj: proto.PublicKey) {
Expand Down
4 changes: 2 additions & 2 deletions src/proto/messaging.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ message Signature {
// PublicKey represents a generalized public key,
// defined as a union to support cryptographic algorithm agility.
message PublicKey {
message Secp256k1Uncompresed {
message Secp256k1Uncompressed {
bytes bytes = 1; // uncompressed point with prefix (0x04) [ P || X || Y ], 65 bytes
}
uint64 timestamp = 1;
optional Signature signature = 2;
oneof union {
Secp256k1Uncompresed secp256k1Uncompressed = 3;
Secp256k1Uncompressed secp256k1Uncompressed = 3;
}
}

Expand Down
38 changes: 18 additions & 20 deletions src/proto/messaging.ts

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

0 comments on commit fc27be6

Please sign in to comment.