refactor: add publicKeyRaw method to ed25519
This commit is contained in:
parent
437c8c0dcb
commit
b91f33fb65
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue