mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-23 10:28:15 +00:00
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)
|
? await unmarshalPrivateKey(peerId.privateKey)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
return createKeypair(keypairType, privateKey?.bytes, publicKey?.bytes);
|
return createKeypair(
|
||||||
|
keypairType,
|
||||||
|
privateKey?.marshal(),
|
||||||
|
publicKey?.marshal()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user