sign method

void sign (
  1. KeyPair signer
)

Signs the transaction for the signer.

Implementation

void sign(KeyPair signer) {
  checkNotNull(signer, "signer cannot be null");
  Uint8List txHash = this.hash();
  _mSignatures.add(signer.signDecorated(txHash));
}