mirror of https://github.com/waku-org/js-waku.git
The signature is an hex string, not utf-8
This commit is contained in:
parent
4b70af1039
commit
af2b2691f1
|
@ -24,7 +24,7 @@ export async function generateEthDmKeyPair(
|
|||
web3Signer: Signer
|
||||
): Promise<KeyPair> {
|
||||
const signature = await web3Signer.signMessage(Salt);
|
||||
const entropy = Buffer.from(toUtf8Bytes(signature));
|
||||
const entropy = Buffer.from(signature, 'hex');
|
||||
const keys = EthCrypto.createIdentity(entropy);
|
||||
return keys;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue