Versions in this module Expand all Collapse all v1 v1.10.17 Oct 18, 2021 Changes in this version type EncryptedP2PKeyExport + KeyType string type Key + func (k Key) PeerID() PeerID + func (k Key) ToV2() KeyV2 + type KeyV2 struct + func FromEncryptedJSON(keyJSON []byte, password string) (KeyV2, error) + func MustNewV2XXXTestingOnly(k *big.Int) KeyV2 + func NewV2() (KeyV2, error) + func (key KeyV2) GoString() string + func (key KeyV2) ID() string + func (key KeyV2) PeerID() PeerID + func (key KeyV2) PublicKeyHex() string + func (key KeyV2) Raw() Raw + func (key KeyV2) String() string + func (key KeyV2) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error) + type Raw []byte + func (raw Raw) GoString() string + func (raw Raw) Key() KeyV2 + func (raw Raw) String() string v1.10.16 Oct 18, 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)