Documentation ¶
Index ¶
- type BlobV1
- type KMSGCPBoxer
- type KMSGCPManager
- type KMSManager
- type PassphraseBoxer
- type PassthroughKeyManager
- type SecretBoxer
- type Vault
- func (v *Vault) AddPrivateKey(privateKey *ecc.PrivateKey) (pub ecc.PublicKey)
- func (v *Vault) NewKeyPair() (pub ecc.PublicKey, err error)
- func (v *Vault) Open(boxer SecretBoxer) error
- func (v *Vault) PrintPublicKeys()
- func (v *Vault) Seal(boxer SecretBoxer) error
- func (v *Vault) WriteToFile(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KMSGCPBoxer ¶ added in v0.6.8
type KMSGCPBoxer struct {
// contains filtered or unexported fields
}
func NewKMSGCPBoxer ¶ added in v0.6.8
func NewKMSGCPBoxer(keyPath string) *KMSGCPBoxer
func (*KMSGCPBoxer) WrapType ¶ added in v0.6.8
func (b *KMSGCPBoxer) WrapType() string
type KMSGCPManager ¶ added in v0.6.8
type KMSGCPManager struct {
// contains filtered or unexported fields
}
func NewKMSGCPManager ¶ added in v0.6.8
func NewKMSGCPManager(keyPath string) (*KMSGCPManager, error)
type KMSManager ¶ added in v0.6.8
type PassphraseBoxer ¶ added in v0.6.8
type PassphraseBoxer struct {
// contains filtered or unexported fields
}
func NewPassphraseBoxer ¶ added in v0.6.8
func NewPassphraseBoxer(password string) *PassphraseBoxer
func (*PassphraseBoxer) Open ¶ added in v0.6.8
func (b *PassphraseBoxer) Open(in string) ([]byte, error)
func (*PassphraseBoxer) Seal ¶ added in v0.6.8
func (b *PassphraseBoxer) Seal(in []byte) (string, error)
func (*PassphraseBoxer) WrapType ¶ added in v0.6.8
func (b *PassphraseBoxer) WrapType() string
type PassthroughKeyManager ¶ added in v0.6.8
type PassthroughKeyManager struct{}
func NewPassthroughKeyManager ¶ added in v0.6.8
func NewPassthroughKeyManager() *PassthroughKeyManager
type SecretBoxer ¶ added in v0.6.8
type SecretBoxer interface { Seal(in []byte) (string, error) Open(in string) ([]byte, error) WrapType() string }
func SecretBoxerForType ¶ added in v0.6.8
func SecretBoxerForType(boxerType string, keypath string) (SecretBoxer, error)
type Vault ¶
type Vault struct { Kind string `json:"kind"` Version int `json:"version"` Comment string `json:"comment"` SecretBoxWrap string `json:"secretbox_wrap"` SecretBoxCiphertext string `json:"secretbox_ciphertext"` KeyBag *eos.KeyBag `json:"-"` }
Vault represents an `eosc` wallet. It contains the encrypted material to load a KeyBag, which is the signing provider for signing transactions using the `eos-go` library (which includes the embedded keosd-compatible wallet).
func NewVaultFromKeysFile ¶
func NewVaultFromSingleKey ¶
func NewVaultFromWalletFile ¶
func (*Vault) AddPrivateKey ¶ added in v0.6.0
func (v *Vault) AddPrivateKey(privateKey *ecc.PrivateKey) (pub ecc.PublicKey)
func (*Vault) NewKeyPair ¶
NewKeyPair creates a new EOS keypair, saves the private key in the local wallet and returns the public key. It does NOT save the wallet, you better do that soon after.
func (*Vault) Open ¶ added in v0.6.8
func (v *Vault) Open(boxer SecretBoxer) error
func (*Vault) PrintPublicKeys ¶
func (v *Vault) PrintPublicKeys()
func (*Vault) Seal ¶ added in v0.6.8
func (v *Vault) Seal(boxer SecretBoxer) error
func (*Vault) WriteToFile ¶
WriteToFile writes the Vault to disk. You need to encrypt before writing to file, otherwise you might lose much :)
Click to show internal directories.
Click to hide internal directories.