Created
April 29, 2020 15:22
-
-
Save abuiles/9b3dcbcac8f8de477bc9d41bfebde3d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare namespace xdr { | |
interface UINT { | |
readonly MAX_VALUE: 4294967295; | |
readonly MIN_VALUE: 0; | |
read(io: Buffer): number; | |
write(value: number, io: Buffer): void; | |
isValid(value: number): boolean; | |
toXDR(value: number): Buffer; | |
fromXDR(input: Buffer, format?: "raw"): number; | |
fromXDR(input: string, format: "hex" | "base64"): number; | |
} | |
class CryptoKeyType { | |
readonly name: "keyTypeEd25519" | "keyTypePreAuthTx" | "keyTypeHashX" | "keyTypeMuxedEd25519"; | |
readonly value: 0 | 1 | 2 | 256; | |
static keyTypeEd25519(): CryptoKeyType; | |
static keyTypePreAuthTx(): CryptoKeyType; | |
static keyTypeHashX(): CryptoKeyType; | |
static keyTypeMuxedEd25519(): CryptoKeyType; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: