package
3.0.3
Repository: https://github.com/niclabs/dtcnode.git
Documentation: pkg.go.dev

# Functions

DecodeECDSAKeyInitMessage decodes an array of bytes into a KeyInitMessage struct, using the golang gob decode.
DecodeECDSAKeyInitMessageList decodes an array of bytes into a KeyInitMessageList struct, using the golang gob decode.
DecodeECDSAKeyMeta decodes an array of bytes into a keymeta struct, using the golang gob decode.
DecodeECDSAKeyShare decodes an array of bytes into a keyshare struct, using the golang gob decode.
DecodeECDSARound1Message decodes an array of bytes into a Round1Message struct, using the golang gob decode.
DecodeECDSARound1MessageList decodes an array of bytes into a Round1MessageList struct, using the golang gob decode.
DecodeECDSARound2Message decodes an array of bytes into a Round2Message struct, using the golang gob decode.
DecodeECDSARound2Message decodes an array of bytes into a Round2Message struct, using the golang gob decode.
DecodeECDSARound3Message decodes an array of bytes into a Round3Message struct, using the golang gob decode.
DecodeECDSARound3MessageList decodes an array of bytes into a Round3MessageList struct, using the golang gob decode.
DecodeECDSASignature decodes an array of bytes into a signature struct, using the golang gob decode.
DecodeRSAKeyMeta decodes an array of bytes into a keymeta struct, using the golang gob decode.
DecodeRSAKeyShare decodes an array of bytes into a keyshare struct, using the golang gob decode.
DecodeRSASigShare decodes an array of bytes into a sigshare struct, using the golang gob decode.
EncodeECDSAKeyInitMessage encodes a KeyInitMessage struct into an array of bytes, using the golang gob encoder.
EncodeECDSAKeyInitMessageList encodes a KeyInitMessageList struct into an array of bytes, using the golang gob encoder.
EncodeECDSAKeyMeta encodes a keymeta struct into an array of bytes, using the golang gob encoder.
EncodeECDSAKeyShare encodes a keyshare struct into an array of bytes, using the golang gob encoder.
EncodeECDSARound1Message encodes a Round1Message struct into an array of bytes, using the golang gob encoder.
EncodeECDSARound1MessageList encodes a Round1MessageList struct into an array of bytes, using the golang gob encoder.
EncodeECDSARound2Message encodes a Round2Message struct into an array of bytes, using the golang gob encoder.
EncodeECDSARound2MessageList encodes a Round2MessageList struct into an array of bytes, using the golang gob encoder.
EncodeECDSARound3Message encodes a Round3Message struct into an array of bytes, using the golang gob encoder.
EncodeECDSARound3MessageList encodes a Round3MessageList struct into an array of bytes, using the golang gob encoder.
EncodeECDSASignature encodes a Signature struct into an array of bytes, using the golang gob encoder.
EncodeRSAKeyMeta encodes a keymeta struct into an array of bytes, using the golang gob encoder.
EncodeRSAKeyShare encodes a keyshare struct into an array of bytes, using the golang gob encoder.
EncodeRSASigShare encodes a sigshare struct into an array of bytes, using the golang gob encoder.
FromBytes transforms a raw array of array of bytes into a message, or returns an error if it can't transform the message.
GetRandomHexString returns a random hexadecimal string.
NewMessage creates a new message using the arguments provided, or returns an error if it cannot create the message object(related currently to a problem in the generation of message IDs).

# Constants

Encryption/Decryption errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Internal Errors (I/O).
Invalid message.
Signing Errors.
No description provided by the author
No description provided by the author
No description provided by the author
Network Errors.
No description provided by the author
No description provided by the author
No description provided by the author
Invalid error number (keep at the end).

# Variables

ErrorToString maps the error codes to string message.
No description provided by the author
No description provided by the author
TypeToString transforms a message type into a string.

# Structs

Message represents a generic message which is sent between server and nodes.
No description provided by the author

# Type aliases

NodeError represents an error code from the nodes.
Type enumerates the message types.