Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In
These docs are for v0.24.0. Click to read the latest docs for v0.25-redirect.

Signing encrypt

Obtain account

const account = await client.wallet.getAccount();

Sign a Transaction

const tx = new Dash.Core.Transaction({
  // ...txOpts
});
const signedTx = account.sign(tx);

Encrypt a message

  const message = 'Something';
  const signedMessage = account.encrypt('AES', message, 'secret');

Decrypt a message

const encrypted = 'U2FsdGVkX19JLa+1UpbMcut1/QFWLMlKUS+iqz+7Wl4=';
const message = account.decrypt('AES', encrypted, 'secret');