@cere-ddc-sdk/ddc / JsonSigner
Signer that uses a JSON object to create a keypair.
Example
const accountDataJson = {}; // Exported from Cere Wallet or other wallets
const jsonSigner = new JsonSigner(accountDataJson, { passphrase: '1234' });
const signature = await jsonSigner.sign('data');
console.log(signature);
-
↳
JsonSigner
▸ isSigner(signer
): signer is Signer
Checks if an object is a signer.
Name | Type | Description |
---|---|---|
signer |
unknown |
The object to check. |
signer is Signer
A boolean indicating whether the object is a signer.