OverviewFilesCommitsIssuesDocsReleasesPeers

autobase-doctor / node_modules / autobase / lib / caps.js

23 lines · javascript ref:
const crypto = require('hypercore-crypto')

const OPLOG_VERSION = 2
const DEFAULT_AUTOBASE_VERSION = 1 // default
const MAX_AUTOBASE_VERSION = 2 // optional fork support
const BOOT_RECORD_VERSION = 3

const [NS_SIGNER_NAMESPACE, NS_VIEW_BLOCK_KEY, NS_HASH_KEY, NS_ENCRYPTION] = crypto.namespace(
  'autobase',
  4
)

module.exports = {
  OPLOG_VERSION,
  DEFAULT_AUTOBASE_VERSION,
  MAX_AUTOBASE_VERSION,
  BOOT_RECORD_VERSION,
  NS_SIGNER_NAMESPACE,
  NS_VIEW_BLOCK_KEY,
  NS_HASH_KEY,
  NS_ENCRYPTION
}