mirror of
https://github.com/dergigi/boris.git
synced 2025-12-25 10:34:28 +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.
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
/**
|
|
* SHA2-512 a.k.a. sha512 and sha384. It is slower than sha256 in js because u64 operations are slow.
|
|
*
|
|
* Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and
|
|
* [the paper on truncated SHA512/256](https://eprint.iacr.org/2010/548.pdf).
|
|
* @module
|
|
* @deprecated
|
|
*/
|
|
import {
|
|
SHA384 as SHA384n,
|
|
sha384 as sha384n,
|
|
sha512_224 as sha512_224n,
|
|
SHA512_224 as SHA512_224n,
|
|
sha512_256 as sha512_256n,
|
|
SHA512_256 as SHA512_256n,
|
|
SHA512 as SHA512n,
|
|
sha512 as sha512n,
|
|
} from './sha2.ts';
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const SHA512: typeof SHA512n = SHA512n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const sha512: typeof sha512n = sha512n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const SHA384: typeof SHA384n = SHA384n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const sha384: typeof sha384n = sha384n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const SHA512_224: typeof SHA512_224n = SHA512_224n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const sha512_224: typeof sha512_224n = sha512_224n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const SHA512_256: typeof SHA512_256n = SHA512_256n;
|
|
/** @deprecated Use import from `noble/hashes/sha2` module */
|
|
export const sha512_256: typeof sha512_256n = sha512_256n;
|