UNPKG

eosjs-signature-provider-interface

Version:

An abstract class that implements the EOSJS SignatureProvider interface, and provides helper methods for interacting with an authenticator using the EOSIO Authentication Transport Protocol Specification.

10 lines (9 loc) 778 B
import { EnvelopeDataType, SignatureProviderRequestEnvelope, SignatureProviderResponseEnvelope } from './interfaces'; export declare type SignatureProviderEnvelope = SignatureProviderRequestEnvelope | SignatureProviderResponseEnvelope; export declare const packEnvelope: (envelope: SignatureProviderEnvelope) => string; export declare const unpackEnvelope: <TEnvelope extends SignatureProviderEnvelope>(packedEnvelope: string) => TEnvelope; export declare const envelopeDataType: (envelope: SignatureProviderEnvelope) => EnvelopeDataType; export declare const arrayToHex: (data: Uint8Array) => string; export declare const hexToArray: (hex: string) => Uint8Array; export declare const hexEncode: (str: string) => string; export declare const hexDecode: (hex: string) => string;