Documentation ¶
Index ¶
- func DecodePrivateKey(s string) (ed25519.PrivateKey, error)
- func DecodePublicKey(s string) (ed25519.PublicKey, error)
- func Decrypt(b []byte, privateKey ed25519.PrivateKey) ([]byte, error)
- func Encode(values ...interface{}) ([]byte, error)
- func Encrypt(body []byte, privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey) ([]byte, error)
- func Pack(body, sig []byte) []byte
- func Scan(body []byte, dest ...interface{}) ([]byte, error)
- func Sign(body []byte, privateKey ed25519.PrivateKey) []byte
- func Unpack(b []byte) (body, sig []byte, err error)
- func Verify(body, sig []byte, publicKey ed25519.PublicKey) bool
- type RawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(s string) (ed25519.PrivateKey, error)
Types ¶
type RawMessage ¶
type RawMessage []byte
func (RawMessage) MarshalBinary ¶
func (r RawMessage) MarshalBinary() ([]byte, error)
func (*RawMessage) Scan ¶
func (r *RawMessage) Scan(src interface{}) error
func (*RawMessage) UnmarshalBinary ¶
func (r *RawMessage) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.