Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicKey ¶
func GetPublicKey(private *secec.PrivateKey) (string, error)
GetPublicKey returns a string representation of the public key that corresponds to the given private key.
func ParsePrivateKey ¶
func ParsePrivateKey(s string) (*secec.PrivateKey, error)
ParsePrivateKey parses hex-encoded string into a private key.
func Sign ¶
func Sign(ctx context.Context, key *secec.PrivateKey, entry *comatproto.LabelDefs_Label) error
Sign adds a signature to the entry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.