UNPKG

@ledgerhq/hw-app-algorand

Version:
47 lines 1.81 kB
/// <reference types="node" /> /// <reference types="node" /> /******************************************************************************** * Ledger Node JS API * (c) 2017-2018 Ledger * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ********************************************************************************/ import type Transport from "@ledgerhq/hw-transport"; /** * Algorand API * * @example * import Algorand from "@ledgerhq/hw-app-algorand"; * const algo = new Algorand(transport) */ export default class Algorand { transport: Transport; constructor(transport: Transport); /** * get Algorant address for a given BIP 32 path. * @param path a path in BIP 32 format * @option boolDisplay optionally enable or not the display * @return an object with a publicKey, address and (optionally) chainCode * @example * cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address) */ getAddress(path: string, boolDisplay?: boolean): Promise<{ publicKey: string; address: string; }>; foreach<T, A>(arr: T[], callback: (arg0: T, arg1: number) => Promise<A>): Promise<A[]>; sign(path: string, message: string): Promise<{ signature: null | Buffer; }>; } //# sourceMappingURL=Algorand.d.ts.map