Documentation ¶
Index ¶
- func ApplySha256(record string) string
- func AverageInt64(xs []int64) float64
- func Compress(s []byte) []byte
- func Decompress(s []byte) ([]byte, error)
- func GenerateKey() (*ecdsa.PrivateKey, error)
- func GenerateSignature(transactionId string) (string, error)
- func GetKeyFromPEMKey() (*ecdsa.PrivateKey, error)
- func GetKeyStringFromPEMKey() (string, error)
- func GetPublicIP() (string, error)
- func GetPublicKeyFromPublicPEMKey() (*ecdsa.PublicKey, error)
- func GetPublicKeyStringFromPublicPEMKey() (string, error)
- func ImportPEMKey(keyHexString string) (*ecdsa.PrivateKey, error)
- func ReadInput() string
- func SavePEMKey(key *ecdsa.PrivateKey) error
- func SavePublicPEMKey(pubkey *ecdsa.PublicKey) error
- func VerifySignature(publicKey *ecdsa.PublicKey, transactionId string, signature string) (bool, error)
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySha256 ¶
func AverageInt64 ¶
func Decompress ¶
func GenerateKey ¶
func GenerateKey() (*ecdsa.PrivateKey, error)
func GenerateSignature ¶
func GetKeyFromPEMKey ¶
func GetKeyFromPEMKey() (*ecdsa.PrivateKey, error)
func GetKeyStringFromPEMKey ¶
func GetPublicIP ¶
func ImportPEMKey ¶
func ImportPEMKey(keyHexString string) (*ecdsa.PrivateKey, error)
func SavePEMKey ¶
func SavePEMKey(key *ecdsa.PrivateKey) error
func SavePublicPEMKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.