@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
11 lines (10 loc) • 476 B
TypeScript
import { Message } from 'google-protobuf';
import { ReadableMessageNames } from '../../types';
/**
* Returns a base64 encoded string of the provided message.
* @param type the type of the message. If message type is unsupported,
* update ReadableMessageNames in types.
* @param msg the message to convert to base64.
* @returns a base 64 string of the provided message
*/
export declare const createAnyMessageBase64: (type: ReadableMessageNames, msg: Message) => string;