@signumjs/core
Version:
Principal package with functions and models for building Signum Network applications.
49 lines (48 loc) • 1.14 kB
TypeScript
/**
* Original work Copyright (c) 2018 PoC-Consortium
* Modified work Copyright (c) 2019 Burst Apps Team
*/
/**
* Attachment class
*
* The attachment class is used to appended to transaction where appropriate.
* It is a super class for Message and EncryptedMessage.
*
*/
export declare class Attachment {
type: string;
constructor(type: string);
}
interface AttachmentMessageArgs {
messageIsText: boolean;
message: string;
}
/**
* Message class
*
* The Message class is used to model a plain message attached to a transaction.
*
*/
export declare class AttachmentMessage extends Attachment {
messageIsText: boolean;
message: string;
constructor(data: AttachmentMessageArgs);
}
interface AttachmentEncryptedMessageArgs {
data: string;
nonce: string;
isText: boolean;
}
/**
* EncryptedMessage class
*
* The EncryptedMessage class is a model for a encrypted message attached to a transaction.
*
*/
export declare class AttachmentEncryptedMessage extends Attachment {
data: string;
nonce: string;
isText: boolean;
constructor(data: AttachmentEncryptedMessageArgs);
}
export {};