write method

Uint8List write(
  1. Uint8List secret,
  2. Uint8List key,
  3. RecordOp op,
  4. Uint8List value,
)

Signs and queues a record write from a 64 byte Ed25519 secret; the nonce is taken from the chain, so several writes can be queued at once.

Implementation

Uint8List write(
  Uint8List secret,
  Uint8List key,
  RecordOp op,
  Uint8List value,
) {
  final author = _bc.addressOf(secret.sublist(32));
  return addTx(
    _bc.signRecordTx(
      chainId: chainId,
      nonce: recordNonce(author),
      key: key,
      op: op,
      value: value,
      secret: secret,
    ),
  );
}