Skip to main content
Module

x/grm/mod.ts>crypto.AuthKey

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

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)