Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedP2PKey ¶
type EncryptedP2PKey struct { ID int32 `gorm:"primary_key"` PeerID string PubKey []byte EncryptedPrivKey []byte CreatedAt time.Time UpdatedAt time.Time }
func (EncryptedP2PKey) Decrypt ¶
func (e EncryptedP2PKey) Decrypt(auth string) (k Key, err error)
Decrypt returns the PrivateKey in e, decrypted via auth, or an error
func (EncryptedP2PKey) TableName ¶
func (EncryptedP2PKey) TableName() string
type Key ¶
Key represents a libp2p private key
func (Key) ToEncryptedP2PKey ¶
func (k Key) ToEncryptedP2PKey(auth string) (s EncryptedP2PKey, err error)
type ScryptParams ¶
type ScryptParams struct{ N, P int }
Click to show internal directories.
Click to hide internal directories.