mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-04 15:25:11 +00:00
24 lines
663 B
C#
24 lines
663 B
C#
using System.Collections.Generic;
|
|
using PepperDash.Core.Intersystem.Tokens;
|
|
|
|
namespace PepperDash.Core.Intersystem.Serialization;
|
|
|
|
/// <summary>
|
|
/// Interface to determine XSig serialization for an object.
|
|
/// </summary>
|
|
public interface IXSigSerialization
|
|
{
|
|
/// <summary>
|
|
/// Serialize the sig data
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
IEnumerable<XSigToken> Serialize();
|
|
|
|
/// <summary>
|
|
/// Deserialize the sig data
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <param name="tokens"></param>
|
|
/// <returns></returns>
|
|
T Deserialize<T>(IEnumerable<XSigToken> tokens) where T : class, IXSigSerialization;
|
|
} |