(size: number)
| 44 | * Generate secure random bytes |
| 45 | */ |
| 46 | export function getRandomBytes(size: number): Uint8Array { |
| 47 | return new Uint8Array(randomBytes(size)) |
| 48 | } |
| 49 | |
| 50 | export function libsodiumPublicKeyFromSecretKey(seed: Uint8Array): Uint8Array { |
| 51 | const hashedSeed = new Uint8Array(createHash('sha512').update(seed).digest()); |
no outgoing calls
no test coverage detected