UNPKG

@moosty/lisk-htlc

Version:

Hashed Time Lock Contract transaction for Lisk SDK based blockchain applications

10 lines (9 loc) 753 B
import { TransactionError } from "@liskhq/lisk-transactions"; import { HTLCLockAsset } from "./interfaces"; export declare const verifyContractAddress: (id: string, asset: HTLCLockAsset, sender: string) => TransactionError | undefined; export declare const getContractAddress: (asset: HTLCLockAsset, sender: string) => string; export declare const assetsToPublicKey: (asset: HTLCLockAsset, sender: string) => string; export declare const verifyKey: (hash: string, key: string, type?: string) => boolean; export declare const hashKey: (key: string, type?: string) => string; export declare const getTimeFromBlockchainEpoch: (givenTimestamp?: number | undefined) => number; export declare const getTimeWithOffset: (offset?: number | undefined) => number;