Functions
binaryToByte
- binaryToByte(bin: string): number
bytesToBinary
- bytesToBinary(bytes: any[]): string
deriveChecksumBits
- deriveChecksumBits(entropyBuffer: string | Buffer): string
Parameters
entropyBuffer: string | Buffer
Returns string
lpad
- lpad(str: string | any[], padString: string, length: number): string | any[]
Parameters
str: string | any[]
padString: string
length: number
Returns string | any[]
randomBytes
- randomBytes(n: number): Promise<Buffer>
Parameters
Returns Promise<Buffer>
verify
- verify(signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): Promise<boolean>
Parameters
signature: Uint8Array
message: Uint8Array
publicKey: Uint8Array
Returns Promise<boolean>