Dorian 0d073fa89e Add comprehensive installation and setup documentation
- Add GETTING_STARTED.md with quick start guide and development modes
- Add INSTALL.sh automated installation script
- Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md
- Add QUICK_REFERENCE.md for common commands
- Add SETUP_GUIDE.md with detailed setup instructions
- Update README.md with improved project overview
- Add did-wallet app dependencies and node_modules
2026-01-27 17:18:21 +00:00

62 lines
1.5 KiB
TypeScript

type TypedArray =
| Int8Array
| Uint8Array
| Uint8ClampedArray
| Int16Array
| Uint16Array
| Int32Array
| Uint32Array
| Float32Array
| Float64Array
| BigInt64Array
| BigUint64Array
type Encoding =
| 'utf-8'
| 'utf-16le'
| 'latin-1'
| 'ascii'
type HashType =
| 'hex'
| 'base64'
type HashAlgo =
| 'sha-1'
| 'sha-256'
| 'sha-384'
| 'sha-512'
type Uint8 = Uint8Array | Array<number>
type Hex = string
type Base64 = string
export function concat (chunks: (TypedArray | Array<number>)[], size?: number): Uint8Array
export function equal (a: Uint8, b: Uint8): boolean
export function arr2hex (data: Uint8): Hex
export function hex2arr (str: Hex): Uint8Array
export function arr2text (data: ArrayBuffer | Uint8Array, enc?: Encoding): string
export function arr2base (data: Uint8): Base64
export function base2arr (str: Base64): Uint8Array
export function text2arr (str: string): Uint8Array
export function hex2bin (str: Hex): string
export function bin2hex (str: string): Hex
export function hash (data: string | TypedArray | ArrayBuffer | DataView, format?: undefined, algo?: HashAlgo): Promise<Uint8Array>
export function hash (data: string | TypedArray | ArrayBuffer | DataView, format: HashType, algo?: HashAlgo): Promise<Hex | Base64>
export function hash (data: string | TypedArray | ArrayBuffer | DataView, format?: HashType, algo?: HashAlgo): Promise<Uint8Array | Hex | Base64>
export function randomBytes (size: number): Uint8Array