Skip to main content
Module

x/grm/src/mod.ts>AuthKey

MTProto API Client for Deno 🦕
Go to Latest
class AuthKey
Re-export
import { AuthKey } from "https://deno.land/x/grm@0.8.0/src/mod.ts";

Constructors

new
AuthKey(value?: Buffer, hash?: Buffer)

Properties

private
optional
_hash: Buffer
private
optional
_key: Buffer
private
optional
auxHash: bigInt.BigInteger
optional
keyId: bigInt.BigInteger

Methods

calcNewNonceHash(newNonce: bigInt.BigInteger, number: number): Promise<bigInt.BigInteger>
equals(other: AuthKey)
setKey(value?: Buffer | AuthKey)