@dashevo/wallet-lib
Version:
Light wallet library for Dash
13 lines (9 loc) • 755 B
Markdown
**Usage**: `keychain.sign(transaction, privateKeys, sigType)`
**Description**: Allow to sign a transaction with private keys
Parameters:
| parameters | type | required | Description |
|-------------------|-------------|----------------| -------------------------------------------------|
| **object** | Transaction | yes | Enter a valid encryption method (one of: ['aes']) |
| **privateKeys** | PrivateKey | yes | The private keys used to sign |
| **sigtype** | String | no | Default: crypto.Signature.SIGHASH_ALL |
Returns : Signed Transaction.