addAccount method

SetonixData addAccount(
  1. SetonixAccount setonixAccount
)

Implementation

SetonixData addAccount(SetonixAccount setonixAccount) {
  final accountId = setonixAccount.name;
  return setAsset(
    '$kPackAccountsPath/$accountId.key',
    setonixAccount.privateKey,
  ).setAsset('$kPackAccountsPath/$accountId.pub', setonixAccount.publicKey);
}