Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventEmitter
    • ICryptoNote

Implemented by

Index

Constructors

constructor

  • new ICryptoNote(options?: EventEmitterOptions): ICryptoNote

Properties

Static defaultMaxListeners

defaultMaxListeners: number

Static Readonly errorMonitor

errorMonitor: unique symbol

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

Accessors

address

  • get address(): Address | undefined

config

  • get config(): ICoinConfig
  • set config(config: ICoinConfig): any

cryptoConfig

  • get cryptoConfig(): ICryptoConfig
  • set cryptoConfig(config: ICryptoConfig): any

Methods

Abstract absoluteToRelativeOffsets

  • absoluteToRelativeOffsets(offsets: BigInteger.BigInteger[] | string[] | number[]): number[]

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

Abstract calculateMinimumTransactionFee

  • calculateMinimumTransactionFee(txSize: number): number

Abstract completeTransaction

Abstract createIntegratedAddress

  • createIntegratedAddress(address: string, paymentId: string, prefix?: AddressPrefix | number): Promise<string>

Abstract createTransaction

  • createTransaction(outputs: GeneratedOutput[], inputs: Output[], randomOutputs: RandomOutput[][], mixin: number, feeAmount?: undefined | number, paymentId?: undefined | string, unlockTime?: undefined | number, extraData?: any): Promise<Transaction>

Abstract createTransactionStructure

  • createTransactionStructure(outputs: GeneratedOutput[], inputs: Output[], randomOutputs: RandomOutput[][], mixin: number, feeAmount?: undefined | number, paymentId?: undefined | string, unlockTime?: undefined | number, extraData?: any): Promise<IPreparedTransaction>

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

Abstract fetchKeys

  • fetchKeys(): Promise<void>

Abstract formatMoney

  • formatMoney(amount: BigInteger.BigInteger | number): string

Abstract generateKeyDerivation

  • generateKeyDerivation(transactionPublicKey: string, privateViewKey: string): Promise<string>

Abstract generateKeyImage

  • generateKeyImage(transactionPublicKey: string, privateViewKey: string, publicSpendKey: string, privateSpendKey: string, outputIndex: number): Promise<IKeyImage>
  • Parameters

    • transactionPublicKey: string
    • privateViewKey: string
    • publicSpendKey: string
    • privateSpendKey: string
    • outputIndex: number

    Returns Promise<IKeyImage>

Abstract generateKeyImagePrimitive

  • generateKeyImagePrimitive(publicSpendKey: string, privateSpendKey: string, outputIndex: number, derivation: string): Promise<IKeyImage>

Abstract generateTransactionOutputs

  • generateTransactionOutputs(address: string, amount: number): Promise<GeneratedOutput[]>

getMaxListeners

  • getMaxListeners(): number

Abstract init

  • init(): Promise<void>

Abstract isOurTransactionOutput

  • isOurTransactionOutput(transactionPublicKey: string, output: Output, privateViewKey: string, publicSpendKey: string, privateSpendKey?: undefined | string, generatePartial?: undefined | false | true): Promise<Output>
  • Parameters

    • transactionPublicKey: string
    • output: Output
    • privateViewKey: string
    • publicSpendKey: string
    • Optional privateSpendKey: undefined | string
    • Optional generatePartial: undefined | false | true

    Returns Promise<Output>

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

Abstract on

  • on(event: "user_confirm", listener: () => void): this
  • on(event: "transport_receive", listener: (data: string) => void): this
  • on(event: "transport_send", listener: (data: string) => void): this
  • Parameters

    • event: "user_confirm"
    • listener: () => void
        • (): void
        • Returns void

    Returns this

  • Parameters

    • event: "transport_receive"
    • listener: (data: string) => void
        • (data: string): void
        • Parameters

          • data: string

          Returns void

    Returns this

  • Parameters

    • event: "transport_send"
    • listener: (data: string) => void
        • (data: string): void
        • Parameters

          • data: string

          Returns void

    Returns this

once

  • once(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

Abstract prepareTransaction

  • prepareTransaction(outputs: GeneratedOutput[], inputs: Output[], randomOutputs: RandomOutput[][], mixin: number, feeAmount?: undefined | number, paymentId?: undefined | string, unlockTime?: undefined | number, extraData?: any, randomKey?: undefined | string): Promise<PreparedTransaction>

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

Abstract privateKeyToPublicKey

  • privateKeyToPublicKey(privateKey: string): Promise<string>

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

Abstract relativeToAbsoluteOffsets

  • relativeToAbsoluteOffsets(offsets: BigInteger.BigInteger[] | string[] | number[]): number[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

Abstract scanTransactionOutputs

  • scanTransactionOutputs(transactionPublicKey: string, outputs: Output[], privateViewKey: string, publicSpendKey: string, privateSpendKey?: undefined | string, generatePartial?: undefined | false | true): Promise<Output[]>
  • Parameters

    • transactionPublicKey: string
    • outputs: Output[]
    • privateViewKey: string
    • publicSpendKey: string
    • Optional privateSpendKey: undefined | string
    • Optional generatePartial: undefined | false | true

    Returns Promise<Output[]>

setMaxListeners

  • setMaxListeners(n: number): this

Abstract signMessage

  • signMessage(message: any, privateKey: string): Promise<string>

Abstract verifyMessageSignature

  • verifyMessageSignature(message: any, publicKey: string, signature: string): Promise<boolean>

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc