Skip to content

Commit

Permalink
fix(apollo): fix typo in public method (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
milosh86 authored Mar 8, 2023
1 parent 6371d27 commit 59cd862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apollo/Apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class Apollo implements ApolloInterface {
value: secp256k1PublicKey.getEncodedCompressed(),
};
}
compressedPublicKeyFromCompresedData(
compressedPublicKeyFromCompressedData(
compressedData: Uint8Array
): CompressedPublicKey {
const secp256k1PublicKey =
Expand Down
2 changes: 1 addition & 1 deletion castor/did/prismDID/PrismDIDPublicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class PrismDIDPublicKey {

switch (proto.key_data) {
case "compressed_ec_key_data":
keyData = apollo.compressedPublicKeyFromCompresedData(
keyData = apollo.compressedPublicKeyFromCompressedData(
proto.compressed_ec_key_data.data
).uncompressed;
break;
Expand Down
2 changes: 1 addition & 1 deletion domain/buildingBlocks/Apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default interface Apollo {
createKeyPairFromKeyCurve(seed: Seed, curve: KeyCurve): KeyPair;
createKeyPairFromPrivateKey(seed: Seed, privateKey: PrivateKey): KeyPair;
compressedPublicKeyFromPublicKey(publicKey: PublicKey): CompressedPublicKey;
compressedPublicKeyFromCompresedData(
compressedPublicKeyFromCompressedData(
compressedData: Uint8Array
): CompressedPublicKey;
publicKeyFromPoints(curve: KeyCurve, x: Uint8Array, y: Uint8Array): PublicKey;
Expand Down

0 comments on commit 59cd862

Please sign in to comment.