Skip to main content

is_journal 0.7.0 copy "is_journal: ^0.7.0" to clipboard
is_journal: ^0.7.0 copied to clipboard

discontinuedreplaced by: is_logbook

An add-only journal of bytes: each entry chained to the one before it, naming the bytes and the hash of the code that wrote it.

example/is_journal_example.dart

import 'dart:convert';
import 'dart:io';

import 'package:is_journal/is_journal.dart';

void main() {
  final dir = Directory.systemTemp.createTempSync('journal');
  final journal = Journal.open(dir);
  if (journal == null) {
    print('this build has no source for the journal to hash');
    return;
  }
  final checked = journal.approved().contains(journal.codeHash);
  print('code ${journal.codeHash} is ${checked ? 'approved' : 'unreviewed'}');

  final id = journal.add(utf8.encode('hello'));
  print('stored as $id');
  print('read back: ${utf8.decode(journal.get(id)!)}');
  print('journal intact: ${journal.check() is Intact}');
  journal.close();
}
0
likes
0
points
830
downloads

Publisher

verified publisherenspyr.co

Weekly Downloads

An add-only journal of bytes: each entry chained to the one before it, naming the bytes and the hash of the code that wrote it.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

is_content_id

More

Packages that depend on is_journal