mirror of https://github.com/waku-org/js-waku.git
fix: use compress key
`marshal` return the compress key, `bytes` returned the protobuf serialized key.
This commit is contained in:
parent
fd030e0fbb
commit
5d5e035edb
|
@ -82,5 +82,9 @@ export async function createKeypairFromPeerId(
|
|||
? await unmarshalPrivateKey(peerId.privateKey)
|
||||
: undefined;
|
||||
|
||||
return createKeypair(keypairType, privateKey?.bytes, publicKey?.bytes);
|
||||
return createKeypair(
|
||||
keypairType,
|
||||
privateKey?.marshal(),
|
||||
publicKey?.marshal()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue