Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Footer ¶
type Footer struct {
}func CreateFooter ¶
func CreateFooter(key SignatureKey, data []byte) (Footer, error)
type Header ¶
func CreateHeader ¶
type Post ¶
type SignatureKey ¶
type SignatureKey struct { PrivateKey *rsa.PrivateKey // !!! THIS CAN BE A NIL POINTER, BE CAREFUL !!! PublicKey *rsa.PublicKey }
func CreateSignatureKey ¶
func CreateSignatureKey() (SignatureKey, error)
func LoadKeypair ¶
func LoadKeypair(privateKeyData string) (SignatureKey, error)
func (*SignatureKey) Export ¶
func (s *SignatureKey) Export() (string, error)
func (SignatureKey) GetID ¶
func (k SignatureKey) GetID() string
func (SignatureKey) MarshalJSON ¶
func (k SignatureKey) MarshalJSON() ([]byte, error)
func (*SignatureKey) UnmarshalJSON ¶
func (k *SignatureKey) UnmarshalJSON([]byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.