Documentation
¶
Index ¶
- type EncryptedP2PKeyExport
- type KeyV2
- func (key KeyV2) ID() string
- func (key KeyV2) PeerID() PeerID
- func (key KeyV2) Public() crypto.PublicKey
- func (key KeyV2) PublicKeyHex() string
- func (key KeyV2) Raw() internal.Raw
- func (key KeyV2) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error)
- func (key KeyV2) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
- type PeerID
- func (p PeerID) MarshalJSON() ([]byte, error)
- func (p *PeerID) MarshalText() ([]byte, error)
- func (p PeerID) Raw() string
- func (p *PeerID) Scan(value any) error
- func (p PeerID) String() string
- func (p *PeerID) UnmarshalJSON(input []byte) error
- func (p *PeerID) UnmarshalString(s string) error
- func (p *PeerID) UnmarshalText(bs []byte) error
- func (p PeerID) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedP2PKeyExport ¶
type EncryptedP2PKeyExport struct {
KeyType string `json:"keyType"`
PublicKey string `json:"publicKey"`
PeerID PeerID `json:"peerID"`
Crypto keystore.CryptoJSON `json:"crypto"`
}
func (EncryptedP2PKeyExport) GetCrypto ¶
func (x EncryptedP2PKeyExport) GetCrypto() keystore.CryptoJSON
type KeyV2 ¶
type KeyV2 struct {
// contains filtered or unexported fields
}
func MustNewV2XXXTestingOnly ¶
func (KeyV2) PublicKeyHex ¶
func (KeyV2) ToEncryptedJSON ¶
func (key KeyV2) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
type PeerID ¶
func MakePeerID ¶
func (PeerID) MarshalJSON ¶
func (*PeerID) MarshalText ¶
func (*PeerID) UnmarshalJSON ¶
func (*PeerID) UnmarshalString ¶
func (*PeerID) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.