Constructors
constructor
- new UserSecretKey(buffer: Uint8Array<ArrayBufferLike>): UserSecretKey
Parameters
- buffer: Uint8Array<ArrayBufferLike>
Methods
hex
- hex(): string
Returns string
sign
- sign(message: Buffer | Uint8Array<ArrayBufferLike>): Buffer
Parameters
- message: Buffer | Uint8Array<ArrayBufferLike>
Returns Buffer
valueOf
- valueOf(): Buffer
Returns Buffer
Static
fromPem
- fromPem(text: string, index?: number): UserSecretKey
Parameters
- text: string
- index: number = 0