Versions in this module Expand all Collapse all v0 v0.0.2 Mar 12, 2021 Changes in this version + type EncryptedP2PKey struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + EncryptedPrivKey []byte + ID int32 + PeerID models.PeerID + PubKey PublicKeyBytes + UpdatedAt time.Time + func (EncryptedP2PKey) TableName() string + func (ep2pk *EncryptedP2PKey) SetID(value string) error + func (ep2pk EncryptedP2PKey) Decrypt(auth string) (k Key, err error) + func (ep2pk EncryptedP2PKey) GetID() string + type EncryptedP2PKeyExport struct + Crypto keystore.CryptoJSON + PeerID models.PeerID + PublicKey PublicKeyBytes + func (export EncryptedP2PKeyExport) DecryptPrivateKey(auth string) (k *Key, err error) + type Key struct + func CreateKey() (Key, error) + func (k Key) GetPeerID() (models.PeerID, error) + func (k Key) MustGetPeerID() models.PeerID + func (k Key) ToEncryptedExport(auth string, scryptParams utils.ScryptParams) (export []byte, err error) + func (k Key) ToEncryptedP2PKey(auth string, scryptParams utils.ScryptParams) (s EncryptedP2PKey, err error) + type PublicKeyBytes []byte + func (PublicKeyBytes) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (PublicKeyBytes) GormDataType() string + func (pkb *PublicKeyBytes) Scan(value interface{}) error + func (pkb *PublicKeyBytes) UnmarshalJSON(input []byte) error + func (pkb PublicKeyBytes) MarshalJSON() ([]byte, error) + func (pkb PublicKeyBytes) String() string + func (pkb PublicKeyBytes) Value() (driver.Value, error)