Documentation
¶
Index ¶
Constants ¶
View Source
const ( // InvalidAddress intends to prevent empty address_to InvalidAddress string = "InvalidAddress" )
Variables ¶
This section is empty.
Functions ¶
func ValidNumber ¶
func ZeroKey ¶
func ZeroKey(k *ecdsa.PrivateKey)
Types ¶
type Account ¶
type Account struct {
Address string `json:"address"`
PrivateKey string `json:"private_key"`
PublicKey string `json:"public_key"`
}
Account is an Ethereum account
type RsaProvider ¶
type RsaProvider interface {
GenerateKeyPair(bits int) (*rsa.PrivateKey, *rsa.PublicKey)
PrivateKeyToBytes(priv *rsa.PrivateKey) []byte
PublicKeyToBytes(pub *rsa.PublicKey) []byte
BytesToPrivateKeyPacket(priv []byte) *packet.PrivateKey
BytesToPublicKeyPacket(pub []byte) *packet.PublicKey
EncryptWithPublicKey(msg []byte, pubKey []byte) []byte
DecryptWithPrivateKey(ciphertext []byte, privKey []byte) []byte
}
func NewRsaPgpProvider ¶
func NewRsaPgpProvider() RsaProvider
Click to show internal directories.
Click to hide internal directories.