mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 23:24:22 +01:00
- Add project structure with TypeScript, React, and Vite - Implement nostr authentication using browser extension (NIP-07) - Add NIP-51 compliant bookmark fetching and display - Create minimal UI with login and bookmark components - Integrate applesauce-core and applesauce-react libraries - Add responsive styling with dark/light mode support - Include comprehensive README with setup instructions This is a minimal MVP for a nostr bookmark client that allows users to view their bookmarks according to NIP-51 specification.
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
/// <reference types="web" />
|
|
import type { Pointer, WasmImports, WasmExports } from '../types.js';
|
|
export interface WasmImportsExtension extends WasmImports {
|
|
}
|
|
export interface WasmExportsExtension extends WasmExports {
|
|
sha256_initialize: Function;
|
|
sha256_write: Function;
|
|
sha256_finalize: Function;
|
|
context_create: Function;
|
|
xonly_pubkey_parse: Function;
|
|
xonly_pubkey_serialize: Function;
|
|
keypair_create: Function;
|
|
keypair_xonly_pub: Function;
|
|
schnorrsig_sign32: Function;
|
|
schnorrsig_verify: Function;
|
|
}
|
|
export declare const map_wasm_imports: (g_imports: WasmImportsExtension) => {
|
|
a: {
|
|
a: () => void;
|
|
f: <nb_size extends number>(ip_dst: Pointer<nb_size>, ip_src: Pointer<nb_size>, nb_size: nb_size) => Uint8Array;
|
|
d: (nb_size: number) => void;
|
|
e: () => number;
|
|
c: () => number;
|
|
b: (i_fd: number, ip_iov: Pointer<number>, nl_iovs: number, ip_written: Pointer<number>) => 0;
|
|
};
|
|
};
|
|
export declare const map_wasm_exports: <g_extension extends WasmExportsExtension = WasmExportsExtension>(g_exports: WebAssembly.Exports) => g_extension;
|