UNPKG

@atproto/repo

Version:

atproto repo and MST implementation

16 lines 1.2 kB
import { Keypair } from '@atproto/crypto'; import { LexValue, RepoRecord } from '@atproto/lexicon'; import { DataDiff } from './data-diff'; import { Commit, LegacyV2Commit, RecordCreateDescript, RecordPath, RecordWriteDescript, UnsignedCommit } from './types'; export declare const diffToWriteDescripts: (diff: DataDiff) => Promise<RecordWriteDescript[]>; export declare const ensureCreates: (descripts: RecordWriteDescript[]) => RecordCreateDescript[]; export declare const parseDataKey: (key: string) => RecordPath; export declare const formatDataKey: (collection: string, rkey: string) => string; export declare const metaEqual: (a: Commit, b: Commit) => boolean; export declare const signCommit: (unsigned: UnsignedCommit, keypair: Keypair) => Promise<Commit>; export declare const verifyCommitSig: (commit: Commit, didKey: string) => Promise<boolean>; export declare const cborToLex: (val: Uint8Array) => LexValue; export declare const cborToLexRecord: (val: Uint8Array) => RepoRecord; export declare const cidForRecord: (val: LexValue) => Promise<import("multiformats/cid").CID>; export declare const ensureV3Commit: (commit: LegacyV2Commit | Commit) => Commit; //# sourceMappingURL=util.d.ts.map