is_content_id 0.1.0
is_content_id: ^0.1.0 copied to clipboard
Content addresses: names made by hashing bytes with sha256, as types, and the sha256 they are made with. No dependencies, and no dart:io.
example/is_content_id_example.dart
import 'dart:convert';
import 'package:is_content_id/is_content_id.dart';
void main() {
final id = ObjectId.of(utf8.encode('what went up'));
print('id: $id');
print('read back from its hex: ${ObjectId.parse(id.hex) == id}');
}