Documentation ¶
Overview ¶
Package keys could be it's own thing between go-ssb and this but not today
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretPerms = os.FileMode(0600)
Functions ¶
func EncodeKeyPairAsJSON ¶
EncodeKeyPairAsJSON serializes the passed Keypair into the writer w
func IsValidFeedFormat ¶
IsValidFeedFormat checks if the passed FeedRef is for one of the two supported formats, legacy/crapp or GabbyGrove.
func SaveKeyPair ¶
SaveKeyPair serializes the passed KeyPair to path. It errors if path already exists.
Types ¶
type KeyPair ¶
type KeyPair struct { Feed refs.FeedRef Pair secrethandshake.EdKeyPair }
KeyPair contains a seret handshake keypair and the assosicated feed
func LoadKeyPair ¶
LoadKeyPair opens fname, ignores any line starting with # and passes it ParseKeyPair
func NewKeyPair ¶
NewKeyPair generates a fresh KeyPair using the passed io.Reader as a seed. Passing nil is fine and will use crypto/rand.
Click to show internal directories.
Click to hide internal directories.