Documentation ¶ Index ¶ Constants type Client type PKClient func FromUrl(pkurl string) (*PKClient, error) func New(hsmPath string, slotId uint, pin string, id string, label string) (*PKClient, error) func (c *PKClient) Close() error func (c *PKClient) DeriveNoise(_ []byte) ([]byte, error) func (c *PKClient) GetPubKey() ([]byte, error) func (c *PKClient) SignASN1(data []byte) ([]byte, error) func (c *PKClient) Test() error Constants ¶ View Source const NoiseKeySize = 32 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client interface { io.Closer GetPubKey() ([]byte, error) DeriveNoise(peerPubKey []byte) ([]byte, error) Test() error } type PKClient ¶ type PKClient struct { } func FromUrl ¶ func FromUrl(pkurl string) (*PKClient, error) func New ¶ func New(hsmPath string, slotId uint, pin string, id string, label string) (*PKClient, error) func (*PKClient) Close ¶ func (c *PKClient) Close() error func (*PKClient) DeriveNoise ¶ func (c *PKClient) DeriveNoise(_ []byte) ([]byte, error) func (*PKClient) GetPubKey ¶ func (c *PKClient) GetPubKey() ([]byte, error) func (*PKClient) SignASN1 ¶ func (c *PKClient) SignASN1(data []byte) ([]byte, error) func (*PKClient) Test ¶ func (c *PKClient) Test() error Source Files ¶ View all Source files pkclient.gopkclient_stub.go Click to show internal directories. Click to hide internal directories.