greenweb.util.serializers#

serialize#

Serializes a given object.

public serialize<T>(object: T): string {
    return Serializer.serialize(object).toString('hex');
}

deserialize#

Deserializes a given object.

public deserialize<T>(classType: new (...args: any[]) => T, data: string): T {
    return Serializer.deserialize<T>(classType, data);
}

fields#

Contains a list of fields that can be used by serializable objects. See this file for more info.

types#

Contains a list of serializable objects used by the wallet protocol. See this file for more info.