Versions in this module Expand all Collapse all v0 v0.0.5 Dec 31, 2021 v0.0.4 Nov 21, 2021 v0.0.3 Oct 26, 2021 v0.0.2 Oct 11, 2021 Changes in this version + type EncryptedP2PKey struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + EncryptedPrivKey []byte + ID int32 + PeerID 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) + type EncryptedP2PKeyExport struct + Crypto keystore.CryptoJSON + PeerID PeerID + PublicKey PublicKeyBytes + func (export EncryptedP2PKeyExport) DecryptPrivateKey(auth string) (k *Key, err error) + type Key struct + func CreateKey() (Key, error) + func (k Key) GetPeerID() (PeerID, error) + func (k Key) MustGetPeerID() 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 PeerID peer.ID + func (p *PeerID) Scan(value interface{}) error + func (p *PeerID) UnmarshalJSON(input []byte) error + func (p *PeerID) UnmarshalText(bs []byte) error + func (p PeerID) MarshalJSON() ([]byte, error) + func (p PeerID) Raw() string + func (p PeerID) String() string + func (p PeerID) Value() (driver.Value, 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)