Properties
Optional keyId
keyId?: BigInteger
Constructors
constructor
- new AuthKey(value?: Buffer, hash?: Buffer): AuthKey
Parameters
Optional value: Buffer
Optional hash: Buffer
Methods
setKey
- setKey(value?: Buffer | AuthKey): Promise<void>
Parameters
Returns Promise<void>
waitForKey
- waitForKey(): Promise<void>
getKey
- getKey(): undefined | Buffer
Returns undefined | Buffer
calcNewNonceHash
- calcNewNonceHash(newNonce: BigInteger, number: number): Promise<BigInteger>
Parameters
newNonce: BigInteger
number: number
Returns Promise<BigInteger>
equals
- equals(other: AuthKey): undefined | boolean
Parameters
Returns undefined | boolean
Calculates the new nonce hash based on the current class fields' values