Documentation ¶
Index ¶
- func Init(defMediaType string)
- type Pipe
- func (p Pipe) IsNull() bool
- func (p Pipe) Pack(src []byte) (dst []byte, vk string, err error)
- func (p Pipe) Sign(src []byte) (dst []byte, vk string, err error)
- func (p Pipe) SignAndStamp(src []byte) (data, dst []byte, vk string, err error)
- func (p Pipe) Unpack(src []byte) (dst []byte, vk string, err error)
- func (p Pipe) Verify(msg, signature []byte) (yes bool, vk string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pipe ¶
Pipe is a secure way to transport data between DID connection. All agent to agent communication uses it. For its internal structure we must define the direction of the pipe.
func (Pipe) Sign ¶
Sign sings the message and returns the verification key. Note! It throws err2 type of error and needs an error handler in the call stack.
func (Pipe) SignAndStamp ¶
SignAndStamp sings and stamps a message and returns the verification key. Note! It throws err2 type of error and needs an error handler in the call stack.
Click to show internal directories.
Click to hide internal directories.