writeFromStore method

Uint8List writeFromStore(
  1. KeyStore store,
  2. Uint8List from,
  3. Uint8List key,
  4. RecordOp op,
  5. Uint8List value,
)

Signs a record write with the key store account at from (the secret stays in the engine) and queues it; the nonce comes from the chain.

Implementation

Uint8List writeFromStore(
  KeyStore store,
  Uint8List from,
  Uint8List key,
  RecordOp op,
  Uint8List value,
) => addTx(
  store.signRecord(
    chainId: chainId,
    from: from,
    nonce: recordNonce(from),
    key: key,
    op: op,
    value: value,
  ),
);