Versions in this module Expand all Collapse all v1 v1.5.0 Jun 29, 2024 v1.4.0 Aug 9, 2022 Changes in this version + const IDDCCGeneral + const IDDCCStatusChange + const IDDCCSupportOpposition + const IDInvalid + const IDInvoiceGeneral + const IDInvoicePayment + const IDInvoiceStatusChange + const IDRecordStatusChange + const VersionDCCGeneral + const VersionDCCStatusChange + const VersionDCCSupposeOpposition + const VersionInvoiceGeneral + const VersionInvoicePayment + const VersionInvoiceStatusChange + const VersionRecordStatusChange + func DecodeRecordStatusChanges(payload []byte) ([]RecordStatusChangeV1, []RecordStatusChangeV2, error) + func DecodeVersion(payload []byte) (uint, error) + func EncodeDCCGeneral(md DCCGeneral) ([]byte, error) + func EncodeDCCStatusChange(md DCCStatusChange) ([]byte, error) + func EncodeDCCSupportOpposition(md DCCSupportOpposition) ([]byte, error) + func EncodeInvoiceGeneral(md InvoiceGeneral) ([]byte, error) + func EncodeInvoicePayment(md InvoicePayment) ([]byte, error) + func EncodeInvoiceStatusChange(md InvoiceStatusChange) ([]byte, error) + func EncodeRecordStatusChangeV1(rsc RecordStatusChangeV1) ([]byte, error) + func EncodeRecordStatusChangeV2(rsc RecordStatusChangeV2) ([]byte, error) + type DCCGeneral struct + PublicKey string + Signature string + Timestamp int64 + Version uint64 + func DecodeDCCGeneral(payload []byte) (*DCCGeneral, error) + type DCCStatusChange struct + AdminPublicKey string + NewStatus cms.DCCStatusT + Reason string + Signature string + Timestamp int64 + Version uint + func DecodeDCCStatusChange(payload []byte) ([]DCCStatusChange, error) + type DCCSupportOpposition struct + PublicKey string + Signature string + Timestamp int64 + Version uint64 + Vote string + func DecodeDCCSupportOpposition(payload []byte) ([]DCCSupportOpposition, error) + type InvoiceGeneral struct + PublicKey string + Signature string + Timestamp int64 + Version uint64 + func DecodeInvoiceGeneral(payload []byte) (*InvoiceGeneral, error) + type InvoicePayment struct + AmountReceived int64 + Timestamp int64 + TxIDs string + Version uint + func DecodeInvoicePayment(payload []byte) ([]InvoicePayment, error) + type InvoiceStatusChange struct + AdminPublicKey string + NewStatus cms.InvoiceStatusT + Reason string + Timestamp int64 + Version uint + func DecodeInvoiceStatusChange(payload []byte) ([]InvoiceStatusChange, error) + type RecordStatusChangeV1 struct + AdminPubKey string + NewStatus pd.RecordStatusT + StatusChangeMessage string + Timestamp int64 + Version uint + type RecordStatusChangeV2 struct + AdminPubKey string + NewStatus pd.RecordStatusT + Signature string + StatusChangeMessage string + Timestamp int64 + Version uint + func (r *RecordStatusChangeV2) VerifySignature(token string) error