@tat-protocol/utils
v1.1.1
Published
Utility functions for TAT Protocol
Downloads
74
Maintainers
Readme
@tat-protocol/utils
Shared cryptography, Nostr, data-serialization, and logging helpers.
Install
npm install @tat-protocol/utilsCommon Exports
- Crypto:
createHash,signMessage,verifySignature - Nostr helpers:
Wrap,Unwrap, NIP-44 wrappers - State helpers:
serializeData,deserializeData - Observability:
DebugLogger - Data structures:
BloomFilter
Example
import { DebugLogger, createHash } from "@tat-protocol/utils";
const Debug = DebugLogger.getInstance();
Debug.enableAll();
const hash = await createHash("hello");
Debug.log(`hash-bytes=${hash.length}`, "example");Notes
This package is intentionally low-level and reused by most protocol modules.
