@dstanesc/o-o-o-o-o-o-o
Version:
O-O-O-O-O-O-O is a collection of content addressed persistent data structures
22 lines • 716 B
TypeScript
import { Link } from './types';
interface Signer {
sign: (root: Link) => Promise<Uint8Array>;
exportPublicKey: () => Promise<string>;
}
declare const signerFactory: ({ subtle, privateKey, publicKey, }: {
subtle: SubtleCrypto;
privateKey: CryptoKey;
publicKey: CryptoKey;
}) => Signer;
declare const verify: ({ subtle, publicKey, root, signature, }: {
subtle: SubtleCrypto;
publicKey: CryptoKey;
root: Link;
signature: Uint8Array;
}) => Promise<boolean>;
declare const importPublicKey: ({ subtle, key: keyString, }: {
subtle: SubtleCrypto;
key: string;
}) => Promise<CryptoKey>;
export { signerFactory, Signer, verify, importPublicKey };
//# sourceMappingURL=trust.d.ts.map