Versions in this module Expand all Collapse all v1 v1.0.1 Nov 17, 2023 Changes in this version + func Marshal(val interface{}) ([]byte, error) + func MarshalWithParams(val interface{}, params string) ([]byte, error) + func Unmarshal(b []byte, val interface{}) ([]byte, error) + func UnmarshalWithParams(b []byte, val interface{}, params string) ([]byte, error) + func VerifySignature(pubKey crypto.PublicKey, data []byte, sig DigitallySigned) error + type DigitallySigned struct + Algorithm SignatureAndHashAlgorithm + Signature []byte + func CreateSignature(privKey crypto.PrivateKey, hashAlgo HashAlgorithm, data []byte) (DigitallySigned, error) + func (d DigitallySigned) String() string + type Enum uint64 + type HashAlgorithm Enum + const MD5 + const None + const SHA1 + const SHA224 + const SHA256 + const SHA384 + const SHA512 + func (h HashAlgorithm) String() string + type SignatureAlgorithm Enum + const Anonymous + const DSA + const ECDSA + const RSA + func SignatureAlgorithmFromPubKey(k crypto.PublicKey) SignatureAlgorithm + func (s SignatureAlgorithm) String() string + type SignatureAndHashAlgorithm struct + Hash HashAlgorithm + Signature SignatureAlgorithm + type Uint24 uint32