diff --git a/src/ed25519.ts b/src/ed25519.ts index 603f400..c9c7850 100644 --- a/src/ed25519.ts +++ b/src/ed25519.ts @@ -12,10 +12,14 @@ export default class KeyPairEd25519 { public get publicKey(): Uint8Array { return concatBytes( Uint8Array.from([CID_HASH_TYPES.ED25519]), - ed25519.getPublicKey(this._bytes), + this.publicKeyRaw, ); } + public get publicKeyRaw(): Uint8Array { + return ed25519.getPublicKey(this._bytes); + } + public extractBytes(): Uint8Array { return this._bytes; }