diff --git a/ecosystem/typescript/sdk_v2/src/crypto/ed25519.ts b/ecosystem/typescript/sdk_v2/src/crypto/ed25519.ts index 6846b8c71db91..087aad930d194 100644 --- a/ecosystem/typescript/sdk_v2/src/crypto/ed25519.ts +++ b/ecosystem/typescript/sdk_v2/src/crypto/ed25519.ts @@ -160,7 +160,13 @@ export class Ed25519PrivateKey extends PrivateKey { return new Ed25519PrivateKey({ hexInput: keyPair.secretKey.slice(0, Ed25519PrivateKey.LENGTH) }); } - publicKey(): PublicKey { + + /** + * Derive the Ed25519PublicKey for this private key. + * + * @returns Ed25519PublicKey + */ + publicKey(): Ed25519PublicKey { const bytes = this.signingKeyPair.publicKey; return new Ed25519PublicKey({ hexInput: bytes }); }